Questions tagged [dpkg]
Dpkg is the Debian package management utility that performs lower-level tasks in software installation and removal. This tag should be used for questions about using and troubleshooting the dpkg utility.
4,151
questions
1172
votes
25
answers
3.6m
views
Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
I get this error when trying to use apt-get:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is ...
582
votes
12
answers
806k
views
How to let `dpkg -i` install dependencies for me?
Say, I have foo-1.2.3.deb which depends on perl and python, however, running command:
dpkg -i ./foo-1.2.3.deb
won't install these dependencies. So I must apt-get install perl python by hand.
How to ...
559
votes
6
answers
780k
views
How do I get a list of installed files from a package?
I want to know where I can find my installed application when I installed it on Ubuntu using package manager.
I installed RabbitMQ and ran locate rabbitmq which gave me following result:
/home/...
273
votes
5
answers
728k
views
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
I'm trying to run this command in the terminal:
sudo apt install software-properties-common
This is the error message I get:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource ...
223
votes
6
answers
469k
views
Installed Teamviewer using a 64-bit system, but I get a dependency error
I was trying to install Teamviewer, but I was getting a dependency error. I tried to install the required packages, but with no luck.
I'm getting this error:
Unpacking teamviewer (from ...
201
votes
6
answers
254k
views
dpkg error: "trying to overwrite file, which is also in..."
For example:
$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The ...
201
votes
3
answers
280k
views
How do I get details about a package which isn't installed?
How can I get some details about a package without installing it, (eg. the description and version number) like in Synaptic or Aptitude. The command
dpkg -s PACKAGE
does not work, with this error. ...
155
votes
4
answers
91k
views
What is the difference between dpkg and aptitude/apt-get?
When installing a software via dpkg -i packageA.deb, will the dependencies required by packageA be downloaded and installed automatically? How is this different from using apt-get or aptitude?
147
votes
4
answers
127k
views
What do the various dpkg flags like 'ii' 'rc' mean?
I frequently need to check which packages are installed, and I use the following command:
dpkg -l | grep foo
which gives the following output
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/...
121
votes
13
answers
181k
views
Is it possible to install a .deb from a URL?
Is there a way to install a deb package directly from a URL, using a shell?
Something like
dpkg -i http://domain.com/path/to/package.deb
(I know I could use wget and then dpkg, I'm just wondering if ...
119
votes
10
answers
432k
views
How to remove/install a package that is not fully installed?
I went to install bsnes the other day and, for whatever reason, the installation failed. Now, I cannot update, install new packages, or do basically any apt-get commands as they all try to process ...
112
votes
6
answers
157k
views
How can I find the version number of an installed package via dpkg?
I use the dpkg -l command to find out what version of a package I have installed. For example:
dpkg -l network-manager
returns the information on the package:
Desired=Unknown/Install/Remove/Purge/...
109
votes
10
answers
456k
views
dpkg: error: dpkg status database is locked by another process
I just wondered if somebody could tell me what this means:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
reidsr@ubuntu:~$ sudo dpkg --configure -a
...
105
votes
2
answers
221k
views
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
On Ubuntu 18.04 I am getting this when I want to install the recommended Nvidia driver.
sudo apt install nvidia-340
Reading package lists... Done
Building dependency tree
Reading state ...
92
votes
2
answers
64k
views
Can not install 'openjdk-9-jdk' because it tries to overwrite file aready included in 'openjdk-9-jdk-headless' [duplicate]
I'm running Ubuntu 16.04 Xenial desktop, 64 bit, and wanted to install openjdk-9-jdk (Java 9 development kit). The version available from the universe repository is 9~b114-0ubuntu1.
Running the ...
89
votes
3
answers
540k
views
E: dpkg was interrupted... run 'sudo dpkg --configure -a'
I was running an upgrade with the apt-get command, and it was taking an exceptionally long time because half way through my ISP hit me in the face with their fair usage policy.
After sitting outside ...
77
votes
7
answers
390k
views
How to resolve "dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb"?
Update Manager will not update even though I have over 100 updates to install. I get a error message like this:
installArchives() failed:
Extracting templates from packages: 29%%
Extracting ...
77
votes
3
answers
73k
views
How to get information about a package before installation in the terminal?
I was wondering how to get the information about a package in the terminal, before installation with apt install so that I can decide whether to install it, based on the description.
Thanks!
76
votes
6
answers
141k
views
Problem installing .deb in Software Install Ubuntu 20.04
I tried to install some .deb files in Ubuntu 20.04 from GitHub and other internet sources, but when I open it with Software Install it gives me this problem (Failed to install file: not supported). ...
65
votes
3
answers
243k
views
Installing BLAS and LAPACK packages
How to install BLAS & LAPACK in Ubuntu 14.04? When I am trying to install these packages with apt-get install BLAS:
Error occurred
Unable to lock the administration directory (/var/lib/dpkg/), ...
63
votes
9
answers
123k
views
Nginx installation error in Ubuntu 16.04
:~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full*
Reading package lists... Done
Building dependency tree
Reading state information... Done
After this operation, 5,579 kB of ...
61
votes
1
answer
19k
views
How to create a meta-package that automatically installs other packages?
I'd like to be able to create a package that doesnt contain any code or programs itself, but instead installs other packages that exist in the repositories onto a computer, sort of how the ubuntu-...
59
votes
4
answers
85k
views
dpkg: error: parsing file '/var/lib/dpkg/updates/0045' near line 0:
I am getting this error in Ubuntu 12.04 , while doing the below operation.
frank@august:~$ sudo apt-get install ttf-mscorefonts-installer
[sudo] password for frank:
E: dpkg was interrupted, you ...
57
votes
1
answer
92k
views
Unable to find expected entry 'main/binary-i386/Packages - Chrome [duplicate]
I recently noticed while installing some packages and using the command apt-get update that I ran into the following error:
Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release ...
57
votes
4
answers
94k
views
How to update software installed via .deb file
There are so many software which we installed via .deb file because official ubuntu repo has very old version of it. But I was just wondering how to update packages install via .deb file.
One ...
55
votes
6
answers
130k
views
Fix half-installed package
I am getting error while using sudo apt-get upgrade stating:
dpkg: error processing libgfortran3:amd64 (--configure):
package libgfortran3:amd64 is not ready for configuration
cannot configure (...
54
votes
3
answers
25k
views
Sub-process /usr/bin/dpkg returned an error code (1) while upgrading python3.10
apt upgrade:
$ sudo apt-get full-upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct ...
52
votes
2
answers
143k
views
How force remove when post-installation script always fail
I have a custom package installed on my Ubuntu 10.10, and trying to remove it, I got:
$ sudo dpkg -r package
sub-process script post-installation installed returne an error state 127
(the message ...
52
votes
3
answers
55k
views
dpkg --get-selections shows packages marked "deinstall"
Executing dpkg --get-selections shows packages with one of the markers install or deinstall.
Some packages I could remove completely with apt-get remove.
What does deinstall mean?
What can be done ...
51
votes
4
answers
26k
views
How to list packages from a ppa/source in command line?
I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that?
dpkg --list lists all files or just the filename.
50
votes
5
answers
254k
views
How can I Resolve dpkg dependency?
administrator@zlounes:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct ...
48
votes
3
answers
149k
views
How can I find Boost version?
I just want to know how I can find the version of boost installed in my ubuntu 12.04? I am having trouble with the current precise and thinking of reverting back to 8.04. What is the boost version in ...
48
votes
1
answer
78k
views
Force apt-get to overwrite file installed by another package
(I realize a similar question was asked before but the answers there don't handle these details)
I'm on Ubuntu 10.10 and need both python2.5 (coming from deadnsakes -- https://launchpad.net/~fkrull/+...
47
votes
5
answers
94k
views
apt-get: No space left on device (12.04)
I have read every thread I could find -- even the ones that say that the question has been answered elsewhere but none of them address the specific issue I am having. Update Manager ran and produced ...
46
votes
8
answers
121k
views
ModuleNotFoundError: No module named 'apt_pkg' error
I run below command on ubuntu 16.4 :
sudo add-apt-repository ppa:noobslab/apps
of below question:
How to install PlayOnLinux on Ubuntu 16.04
and get below error:
Traceback (most recent call last):...
46
votes
5
answers
45k
views
How to purge previously only removed packages? [duplicate]
I have a list of packages on my system, that were installed and removed again, but not purged, i.e. there are still a lot of conffiles etc. laying around.
The output of dpkg --get-selections | grep ...
46
votes
5
answers
57k
views
Find (and reinstall) packages with corrupted files (without breaking anything)
I usually prefer to fix a Linux system than to reinstall from scratch. My computers have seen many distribution upgrades and a list of PPAs or third-party repositories. APT usually makes sure that ...
45
votes
2
answers
31k
views
Restoring all data and dependencies from dpkg --set-selections '*'
So I can run on one machine:
dpkg --get-selections '*' > selection.txt
On another machine:
dpkg --set-selections < selection.txt
... followed by either of the following:
aptitude install
...
41
votes
9
answers
91k
views
Unknown user in statoverride file
I had an application installed on my htpc running ubuntu server called mediatomb, a few months ago I uninstalled it and replaced it with a Plex install. At the weekend when querying existing users on ...
41
votes
4
answers
111k
views
dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured [duplicate]
dpkg --configure -a
Setting up linux-image-3.13.0-35-generic (3.13.0-35.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling ...
41
votes
6
answers
506k
views
Dependency errors after installing and attempting to remove Google Chrome
So ubuntu worked perfectly for me for a while. I tried to download Google Chrome and accidentally downloaded the 32 bit version. Went back and tried to download the 64-bit (stupidly without deleting ...
40
votes
2
answers
175k
views
Message 'E:dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.'
Whenever I am trying to get the update I am getting the error at the last line:
Ign http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-...
40
votes
2
answers
85k
views
"gzip: stdout: No space left on device" while upgrading the kernel [duplicate]
I see the following error while trying run the command shown below. I read somewhere that my /boot partition is low on disk space. How can I increase the size of the /boot partition so I can install ...
38
votes
3
answers
95k
views
How to recover deleted "dpkg" directory?
Unfortunately I've deleted dpkg directory while removing the lock. By mistake I typed
root@sam:~$ rm -r /var/lib/dpkg
Now when I am trying to install/uninstall packages it shows me following error.
...
38
votes
4
answers
19k
views
How can I tell which package an executable came from? [duplicate]
I'm answering a question with a suggestion to use rename, and I realize I don't know what package it comes from (as part of the answer, I imagine saying something like "if you don't have rename, it's ...
38
votes
2
answers
31k
views
apt changelog for to-be installed packages [duplicate]
GUI update-manager is able to show the "changelog" of packages to-be installed (not downloaded yet).
I also found out how to provide the .changelog files in the right place for update-manager to show ...
38
votes
1
answer
30k
views
How to create a .deb file from installed package?
You can install a .deb package file onto a system by using dpkg -i filename.deb.
Is it possible to do the reverse? By reverse, I mean create a .deb package file from an installed package given a ...
37
votes
6
answers
207k
views
Errors were encountered while processing: man-db
I get this error when I use apt-get upgrade & apt-get autoremove and on every apt-get [Something].. and when I try to install applications too:
Errors were encountered while processing:
man-db
E: ...
37
votes
4
answers
119k
views
Unmet dependencies. Libc6 The package system is broken
Whenever I try to upgrade or install a new package i get the following
ibc6-dbg: Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed \
libc6-dev: Depends: libc6 (= 2.31-0ubuntu9.2) but ...
36
votes
2
answers
18k
views
Where is virtualenvwrapper.sh?
I don't know what's more embarrassing: that I don't know how to go about finding the answer to this question myself, or that it has to be asked at all in the first place, but...
where does apt-get ...