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.

Filter by
Sorted by
Tagged with
202 votes
6 answers
255k 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 ...
missingfaktor's user avatar
1174 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 ...
La Ode Adam Saputra's user avatar
89 votes
3 answers
543k 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 ...
Hunter Burnette's user avatar
275 votes
5 answers
741k 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 ...
GoodNite's user avatar
  • 2,751
4 votes
1 answer
19k views

Dependency errors prevent all APT commands from running, "Package libappstream-glib8:amd64 is not configured yet"

I'm using Ubuntu 16.04 and I've been getting an error of Sub-process /usr/bin/dpkg returned an error code when trying to install new apps or update the system. This seems to be happening since i ...
nettl's user avatar
  • 43
581 votes
12 answers
810k 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 ...
Lenik's user avatar
  • 10.4k
560 votes
6 answers
783k 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/...
Anupam Gupta's user avatar
  • 5,723
147 votes
4 answers
128k 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/...
theTuxRacer's user avatar
  • 16.2k
6 votes
1 answer
5k views

Package linux-image-generic is not configured yet

Long story short, my Ubuntu 12.04 VM ran out of space and an update failed. I then increased the disk space but am no longer able to update anything using apt-get. This is the output of apt-get ...
user254948's user avatar
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 (...
Barun's user avatar
  • 725
109 votes
10 answers
457k 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 ...
reidar's user avatar
  • 1,241
21 votes
1 answer
29k views

What process created the /var/lib/dpkg/lock-frontend file in Ubuntu?

I have just booted my clean Ubuntu 18.04 LTS VM and tried to install some application with sudo apt install. But got error message: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: ...
N0rbert's user avatar
  • 100k
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-...
user3345331's user avatar
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 ...
Mini John's user avatar
  • 2,335
33 votes
2 answers
19k views

How to fake a package version installed?

Being an early adopter and using 11.04 daily builds I sometimes meet a situation when some packages require earlier versions of other packages than those I have installed. Usually newer (but refused) ...
Ivan's user avatar
  • 57.1k
22 votes
5 answers
23k views

"Unable to connect to Upstart" error when installing git-all

I am using 15.04. So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great ...
Electronicks's user avatar
119 votes
10 answers
433k 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 ...
Bijak's user avatar
  • 1,619
46 votes
8 answers
122k 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):...
Mostafa Norzade's user avatar
77 votes
7 answers
391k 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 ...
raz7588's user avatar
  • 771
47 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 ...
Jan's user avatar
  • 3,608
16 votes
1 answer
7k views

How to debug an unmet dependencies problem?

Note about possible duplicate: AFAIK, This is not a duplicate of How do I resolve unmet dependencies after adding a PPA? otherwise please prove it by solving the test problem I mention below using ...
user.dz's user avatar
  • 48.1k
9 votes
1 answer
3k views

What is more reliable - apt-mark or APT-pin (/etc/apt/preferences.d/pin) for version locking?

Usually on my Ubuntu 16.04 LTS, I lock package versions with APT-pin functionality. For example if I want to pin meld to version 1.5.3-1ubuntu1 I create the following pin-file: cat <<EOF | ...
N0rbert's user avatar
  • 100k
25 votes
5 answers
58k views

Steam Install Error on 14.04 Ubuntu 64bit

I have tried some of the solutions posted elsewhere in the support forum, one seemed like it worked but after a steam update i found myself back at square one I am a new Linux user and am already at ...
Wes Young's user avatar
  • 261
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?
Aniket Thakur's user avatar
29 votes
8 answers
86k views

How do I rebuild a corrupt dpkg status file?

Whenever I type sudo apt-get remove and then press the Tab key for auto-completion I get the following message: grep-status: /var/lib/dpkg/status:15945: expected a colon . I don't see anything ...
Ramón's user avatar
  • 1,637
8 votes
2 answers
6k views

Lost/Deleted dpkg (package manager for Debian). How do I get it back?

OS: Ubuntu 12.04 Accidentally deleted dpkg. Now, packages can't be installed. So, needs an dpkg installer which installs packages.
Raghu G's user avatar
  • 945
5 votes
1 answer
18k views

dpkg: dependency problems prevent configuration of linux-headers-generic

I ran out of inodes during an update which I think resulted in unmet dependencies. The system recommended I issue 'apt-get -f install' to fix. However I could not issue the command because of lack of ...
jaambros's user avatar
  • 111
7 votes
2 answers
9k views

Files list file for package missing -- dpkg warning

I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is: Selecting previously unselected package oracle-java8-installer. dpkg: warning: files list ...
Mert Saygı's user avatar
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-...
Thomas Ward's user avatar
  • 74.9k
8 votes
5 answers
18k views

Why does apt output "WARNING: The following essential packages will be removed." and prompt me to enter the full phrase when purging a package?

Don't try this command. While I'm trying to purge the package login, the package manager asks me to enter the whole text rather than [Y/n]. avinash@avinash-VirtualBox:~$ sudo apt-get purge login ...
Avinash Raj's user avatar
  • 78.6k
48 votes
1 answer
79k 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/+...
UsAaR33's user avatar
  • 736
18 votes
1 answer
42k views

How to correctly install libpng12-0 on the Ubuntu 19.10?

For ScreenLets application I need to install libpng12-0 package on the Ubuntu 19.10 system. I know that it is available only for Ubuntu 16.04 LTS. So I have decided to download this package manually ...
N0rbert's user avatar
  • 100k
10 votes
4 answers
22k views

I get this error: dpkg: unrecoverable fatal error, aborting: files list file for package `fonts-tlwg-kinnari' contains empty filename

When I try to install I get this error: dpkg: unrecoverable fatal error, aborting: files list file for package `fonts-tlwg-kinnari' contains empty filename E: Sub-process /usr/bin/dpkg returned an ...
Adrian Cid Almaguer's user avatar
9 votes
1 answer
15k views

dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed

I just installed Ubuntu (12.04.4) and I upgraded to 13.10 I have no idea how to fix this :/ $ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state ...
Terho's user avatar
  • 101
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 ...
segue_segway's user avatar
18 votes
7 answers
10k views

apt-get autoremove dangerous?

I was compiling a tool called Rejoystick so I installed a few packages and dependencies. But now I don't need it any more so I removed those packages. Running apt-get shows that I have some packages ...
Shantanu Bedajna's user avatar
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 ...
Don A's user avatar
  • 571
9 votes
1 answer
4k views

How can I reproduce the error "package... needs to be reinstalled, but I can't find an archive for it" for testing?

From time to time, Ubuntu users encounter errors from apt or apt-get, of the form: The package some-package needs to be reinstalled, but I can't find an archive for it. I want to know what causes ...
Zanna's user avatar
  • 70.5k
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 ...
0xC0000022L's user avatar
  • 5,720
14 votes
2 answers
104k views

Can't run "dpkg --add-architecture i386" on 12.04 64-bit to run eclipse ADT

Running ubuntu 12.04 64 bit. I am trying to follow the steps written at the end of this page under the Heading: Installing Android SDK compat libraries. I am doing it in order to solve this problem. ...
Sunil Kumar's user avatar
24 votes
2 answers
41k views

dpkg: error: parsing file '/var/lib/dpkg/available' near line 0

Been trying to install git-core package for almost more than half a day now. Every time I do, I get this error: dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name `...
Nitin Venkatesh's user avatar
21 votes
1 answer
47k views

dpkg exit with error parsing file `/var/lib/dpkg/status`, what to do?

When I try to install any software, I encounter this error, and therefore I cannot update. Preconfiguring packages ... dpkg: error: parsing file '/var/lib/dpkg/status' near line 51245 package 'oracle-...
Charindu's user avatar
  • 211
20 votes
4 answers
25k views

Upgrading Firefox fails. lzma error: compressed data is corrupt

Firefox fails to update due to corrupted download (deb) Preparing to unpack .../firefox_32.0+build1-0ubuntu0.14.04.1_i386.deb ... Unpacking firefox (32.0+build1-0ubuntu0.14.04.1) over (31.0+build1-...
Elder Geek's user avatar
14 votes
2 answers
109k views

How to fix dpkg error [2]?

Every time I try to install or remove a package, I get this error. I thought maybe it was the hard disk, but a disk check gave me a clean bill of health. dpkg: unrecoverable fatal error, aborting: ...
RolandiXor's user avatar
  • 51.5k
8 votes
2 answers
20k views

Ubuntu 16.04 Completely broken python3 + dpkg + apt-get!

Maybe somebody can help me through this hell: It all began as I encountered this error: https://askubuntu.com/a/1034266/570817 and I tried to somehow remove the ppa:jonathonf/python-3.6 installation ...
ElectRocnic's user avatar
50 votes
5 answers
255k 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 ...
zlounes's user avatar
  • 503
30 votes
7 answers
114k views

dpkg: unrecoverable fatal error, aborting: files list file for package 'linux-generic' is missing final newline

Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apt apt-transport-https apt-utils dpkg ...
Johnny Wong's user avatar
20 votes
9 answers
115k views

Can't install Skype 4.3 on Ubuntu 14.04 64 bit

First of all, I think this question is not duplicated, because I have tried all other solutions I found here, but nothing solved my problem. I use Ubuntu 14.04 64 bit. I have tried until now: sudo ...
z_inx's user avatar
  • 309
16 votes
1 answer
36k views

How to install Scratch 2 on Ubuntu 16.10. or 17.04 (64bit)?

I need to install Adobe Air on Ubuntu 16.10/17.04 with offline Scratch 2. Air is many years unsupported on Linux, so there are several workarounds. One which worked for me up to Ubuntu 16.04 (using ...
Martin's user avatar
  • 481
15 votes
3 answers
190k views

How can I fix E: Sub-process /usr/bin/dpkg returned an error code (2)?

I received this error after trying to download the icedtea plugin. After trying sudo apt-get upgrade I got the same exact error: Preconfiguring packages ... dpkg: unrecoverable fatal error, ...
TheUnicornCow's user avatar

1
2 3 4 5
13