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 ...


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/...


Another alternative: $ dpkg -S /bin/bash bash: /bin/bash On my Ubuntu at least, both seem to be in the dpkg package, so no real advantage to any specific one...


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.


Sometimes you need to restore config files too! not just reinstall. sudo apt-get install --reinstall xxxx Reinstall the application, keeps the config files. This could be helpful, but sometimes you need to start fresh, so what I use is this: sudo dpkg -r xxxx //to remove that xxxx package sudo dpkg -P xxxx //to purge all related files then sudo apt-...


You can specify a repository with -t option. As an example, I have added the following repository to /etc/apt/sources.list to install Iceweasel latest release: deb http://mozilla.debian.net/ squeeze-backports iceweasel-release As you know there is a same package iceweasel in the official Debian repository. If I want install Iceweasel from this specific ...


Installation generated files will not be found by dpkg -S, as mentioned at: https://askubuntu.com/a/667227/52975 For example, /bin/nc appears when you install the package netcat-openbsd. But upon: dpkg -S /bin/nc we get dpkg-query: no path found matching pattern /bin/nc. This happens because /bin/nc is generated by the update-alternatives call in the ...


Using aptitude, in order to look for installed packages outside of the stable branch, you can use: aptitude search "?narrow(?installed,?not(?archive(stable)))" To see versions as well as package-names (and instead of descriptions) you can use the command with the format option (-F for short), as follows. aptitude search -F "%p %V %v" "?narrow(?installed,?...


sudo apt-get install libevent-dev Will do it.


I had this exact problem and solved it like this: apt-get install -o APT::Immediate-Configure=false -f apt python-minimal apt-get -f install dpkg --configure -a apt-get dist-upgrade This solution comes from a combination between the following 2 solutions: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740 http://ubuntuforums.org/...


In case you did add some other architecture that you forgot, like i386 to an amd64 system, you can check it by: dpkg --print-foreign-architectures Source: https://wiki.debian.org/Multiarch/HOWTO


Other command can be: apt-show-versions It also gives you info about the package state (up to date, upgradable, ...) and about the origin distribution (wheezy, jessie, ...). One can easily filter out packages which came from backports or other exotic repositories. This program is packaged separately. Install it first with: apt-get install apt-show-...


You should use apt-get If you care about uninstalling gems with their dependencies. RubyGems will not uninstall unused dependencies. See do-i-have-to-manually-uninstall-all-dependent-gems. If you care about uninstalling gems as a group, rvm is also an option (see below). If that gem would or should install executables in /usr/bin. If you want to upgrade ...


Not so well known, but there is also ip moo: _ __ ___ ___ ___ | '_ ` _ \ / _ \ / _ \ | | | | | | (_) | (_) | |_| |_| |_|\___/ \___/ P.S. no real cows were harmed for this moo Cows have been hidden as easter eggs in pinball games.


python 2 and 3 are in separate packages so for normal python 2.7.6 sudo apt-get install cython and for python3 sudo apt-get install cython3


Linux distros keep a release file in the directory /etc. Unfortunately, it is not the same for all distros, so that the simplest thing to do is to run ls -d /etc/* | grep release On my Arch Linux system, for instance, this produces the following output: # ls -d /etc/* | grep release /etc/arch-release /etc/os-release the file arch-releade is empty, ...


There is an online version, or offline in the aptitude-doc-en package that will put the docs in /usr/share/doc/aptitude/html (you also have for example aptitude-doc-fr for French documentation, and others).


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


I found Wajig... wajig whichpackage /path/to/file eg. wajig whichpackage /etc/apt/sources.list Wajig is a handy command line or console tool which wraps all the apt-get, dpkg goodness that you never wanted to learn. . To install wajig use: apt-get install wajig That command 'whichpackage' itself depends on apt-file you will still need to update ...


I had to do this today on my Debian system. First, I identified the time range when the offending upgrade happened, and retrieved the log entries giving the old and new version numbers of the upgraded packages: $ awk '$1=="2016-03-20" && $3=="upgrade"' /var/log/dpkg.log 2016-03-20 16:58:22 upgrade libwebkitgtk-3.0-0:amd64 2.4.9-3 2.4.10-1 2016-03-20 ...


Not being familiar with Debian, I was baffled when I tried this: kearnsp@xubuntuvb:~$ dpkg -S /usr/bin/vncviewer dpkg-query: no path found matching pattern /usr/bin/vncviewer kearnsp@xubuntuvb:~$ A bit of investigation and I found the package: kearnsp@xubuntuvb:~$ ls -l /usr/bin/vncviewer lrwxrwxrwx 1 root root 27 May 28 15:49 /usr/bin/vncviewer -> /...


On Ubuntu (17) I did apt purge samba samba-common followed by apt install system-config-samba which worked for me.


The following command lists the packages with their versions, and additionally it lets you set up a system with the same packages and versions later, using the pkg-selections.txt file generated here: aptitude -q -F "%?p=%?V %M" --disable-columns search \~i > pkg-selections.txt Each line will contain package name, version and an optional "A" if the ...


While inspecting around it ,just have a look at the easter-eggs


I also had to undo an package upgrade today on a couple of Debian servers. I successfully reverted the packages to the last version by using aptitute, whereas the following awk command was very helpful. (In the below command replace the date string with the date of the day from which on you want to revert the upgrades) awk 'BEGIN{ start="0" } { if($0 ~ /...


this problem has been described and offered solution to on the www.debian.com specifically on https://www.debian.org/releases/wheezy/armhf/release-notes/ch-upgrading.en.html Chapter 4.5 4.5. Possible issues during upgrade The following sections describe known issues that might appear during an upgrade to wheezy. 4.5.1. Dist-upgrade fails ...


cat >> /etc/apt/apt.conf.d/98ignore_extensions << \EOF # Follow the pattern to add more extensions to ignore. Dir::Ignore-Files-Silently:: "\.gz$"; Dir::Ignore-Files-Silently:: "\.save$"; Dir::Ignore-Files-Silently:: "\.distUpgrade$"; Dir::Ignore-Files-Silently:: "\.list_$"; EOF


Most packages do not put configuration files in users' home directories - after all, apt-get install is run as root; how would it know whom to give the configuration file to? The application itself generally writes a configuration when it is run the first time and finds none. Most often, one can find example templates in /usr/share/packagename for ...


You don't need to pipe the output to any other command. You can change the output format of aptitude with the -F switch. To just print the package names use -F%p. aptitude search foo -F%p


Ran into this on an upgrade from squeeze-> wheezy, specifically with: Could not perform immediate configuration on 'mysql-server-5.5 Tried upgrading libc6 etc by hand, but my eventual solution was: apt-get install mysql-server-5.5 libc6-dev Which appears to have let my dist upgrade complete.

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