Hot answers tagged

59

Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did: sudo dpkg -i /path/to/filename.deb If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run sudo apt-get -f install This will install the dependencies (assuming they're available ...


51

Yes, the command you proposed is correct. sudo apt-get install ./package.deb or sudo apt install ./package.deb will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get feature is not documented in the man page. See https://askubuntu.com/a/...


45

You can also install .deb file using gdebi.Run the below commands to install gdebi, sudo apt-get install gdebi-core Install .deb packages with gdebi, sudo gdebi /path/to/filename.deb It also fix dependencies.


45

Quick & EASY Solution: I have had the same issue, several times. Do NOT do sudo apt-get dist-upgrade first. Very important. ****NOTE: This solution is for Debian based machines but will not work on KDE Neon. To update KDE Neon, you must use sudo pkcon update.**** Why? It can make your system very unstable, programs can crash and you can lose a lot ...


38

Felix Krull also maintained (as in unmaintained now) a PPA with the latest Python 2.7 release for Ubuntu Precise, Trusty and Utopic. You can use the same process like krondor describes, but use instead or additionaly this PPA: ppa:fkrull/deadsnakes-python2.7. sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7 sudo apt-get update sudo apt-get install ...


36

According to the Debian man page for apt-get, you can use the --allow-unauthenticated option like this: apt-get update --allow-unauthenticated As the man page entry for --allow-unauthenticated explains: Ignore if packages can't be authenticated and don't prompt about it. This can be useful while working with local repositories, but is a huge security ...


33

I understand bjanssen's point, but it seems ridiculous for a package manager to allow --force-depends for a single package install, but not allow force-depends-forever-and-stop-warning-me-about-this-dependency. I had a similar problem with a package which depended on a libcairo version slightly higher than the one currently available in Debian. For my ...


26

Executed below 2 commands and then I was able to install the packages. sudo apt update sudo apt install python3-pip Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/


23

I would go with this: apt-get download PACKAGE && apt-cache depends -i PACKAGE | awk '/Depends:/ {print $2}' | xargs apt-get download Then you can install it with dpkg -i *.deb in the directory you downloaded these.


21

You can edit the post install script at /var/lib/dpkg/info/astah-community.postinst to comment out a portion that is failing. Or you can just rename/remove that file to prevent dpkg from running it at all. Once you've done one of those you can use dpkg --configure astah-community to have dpkg retry the configuration process, and hopefully have that succeed.


17

One option is to install apt-show-versions. For example, to find packages installed from unstable: $ apt-show-versions | grep unstable Also, the following script might be of interest: A script to check how mixed your system is.


14

EDIT: *As @Anthon has pointed out in the comments, this PPA does not include Python 2.7 for Ubuntu 12.04 (Precise). See funky-future's answer below, which I don't believe existed when I originally responded. The preferred "Ubuntu" way to deal with packages not included in their universe by default is to use a PPA (third party repository), rather than ...


12

What does this mean? The following packages have been kept back: The answer is here This means that there are new versions of these packages which will not be installed for some reason. Possible reasons are broken dependencies (a package on which it depends doesn't have a version available for download) or new dependencies (the package has come to ...


11

The wget command in your question text is not matching the command in your screenshot. Here is the command in your screenshot: sudo wget -O http://www.inetsim.org/inetsim.org-archive-signing-key.asc | apt-key add - Here is the command in your example text; also check the command used in the official INetSim installation instructions: sudo wget -O - http://...


10

You should tell apt it's a trusted source: deb [trusted=yes] file:/media/cdrom0 kali-rolling main contrib non-free


10

On the PostgreSQL: Linux downloads (Ubuntu) page, you chose "Bionic (18.04)"1, which does not match your actual Ubuntu version, "Xenial (16.04)". Assuming this is the only error you made while following the instructions on that page, you can fix this by opening the file /etc/apt/sources.list.d/pgdg.list as root and changing every mention of bionic to xenial....


10

Am I missing something? When you invoke apt install … the command is apt, not install. man install will show you the manual for install which is a different command. The right place to start is man apt. Some commands in a form foo bar anything … may have manuals available under man foo-bar. E.g. man btrfs-subvolume runs well, but btfrs-subvolume (as a ...


9

Is falling back to lower-level tool such as dpkg an option? dpkg --remove foo bar libperl-dev dpkg: warning: ignoring request to remove foo which isn't installed dpkg: warning: ignoring request to remove bar which isn't installed (Reading database ... 169132 files and directories currently installed.) Removing libperl-dev ... To remove packages config ...


9

Since Jessie — the now stable release (Debian 8.0). Note that this wrapper, while useful, does not yet cover 100% of what older apt-whatever programs do; namely there's no apt cache currently.


7

The best way I've found is to run: apt-get install mypackage myotherpackage apt-mark auto mypackage myotherpackage If you have aptitude installed, you can also do: aptitude -o Aptitude::Delete-Unused=false install mypackage+M myotherpackage+M


7

I use apt-get remove --purge (aka apt-get purge) for the dependency following with a list of packages. To handle packages that don't exist I filter out packages that are not installed with the following script. pkgToRemoveListFull="cups-dbg bogus-package" pkgToRemoveList="" for pkgToRemove in $(echo $pkgToRemoveListFull); do $(dpkg --status $pkgToRemove &...


7

try this: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' sudo apt-get update sudo apt-get install postgresql-9.3 pgadmin3 It worked fine for me. Source: How to: Install ...


7

Try to reinstall the package containing libperl.so.5.14. That package is "perl-base". Try apt-get --reinstall install perl-base If this also fails, you can try to reinstall the package file (perl-base_5.14....deb). You can download it from the mirror manually or it might even still be cached from the last upgrade in /var/cache/apt/archives. ...


7

To find the reverse dependencies you can install the apt-rdepends package: sudo apt-get install apt-rdepends You can then search for reverse dependencies using: $ apt-rdepends --state-follow=Installed --state-show=Installed -r firefox Reading package lists... Done Building dependency tree Reading state information... Done firefox Reverse Depends: ...


6

Using aptitude you can run the following command: $ aptitude versions '~VCURRENT (~Aunstable|~Aexperimental) !~Atesting' --group-by=none This will list all packages whose currently installed version (~VCURRENT) comes from the unstable or experimental archives (~A) and are not present in the testing archive (!~A). The --group-by=none option serves to ...


6

Take a look at this answer: Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.): grep " install " /var/log/dpkg.log You could run this command to list only the recently installed package names, awk '$3~/^install$/ {print $4;}' /var/log/dpkg.log


6

The Git stable releases PPA has the most current stable version of Git for Ubuntu. Open the terminal and type: sudo add-apt-repository ppa:git-core/ppa sudo apt update sudo apt install git These commands will install git 2.3.0 (the current stable version of Git) on your system for all currently supported Ubuntu releases. A short time after a new ...


6

Your archive-keyring package is out of date, so you need to add the new repository key to your system: wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add


6

System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux. I ran this command: sudo apt-get install dos2unix I had this error: E: Unable to locate package dos2unix I then ran: sudo apt-get update and then: sudo apt-get install dos2unix and it installed properly.


5

Strangely, it seems asked even with --force-yes: apt-get remove -y --force-yes systemd However, echo 'Yes, do as I say!' | apt-get remove systemd worked neatly.


Only top voted, non community-wiki answers of a minimum length are eligible