The Debian package management system that powers most software installs.

learn more… | top users | synonyms

197
votes
14answers
582k 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 ...
15
votes
3answers
11k 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 ...
156
votes
1answer
242k views

Installed Teamviewer using a 64-bits system, but I get a dependency error

I was trying to install Teamviewer, but I was getting a dependency error. I tried to install them, but with no luck. I'm getting this error: Unpacking teamviewer (from teamviewer_linux_x64.deb) ... ...
9
votes
1answer
47k 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 ...
15
votes
8answers
34k 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 ...
1
vote
1answer
3k 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 ...
124
votes
5answers
126k 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: ...
34
votes
2answers
17k 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 | ...
19
votes
2answers
16k 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. Everytime i do, I get this error: dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name ...
5
votes
1answer
8k views

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

When I go to install a software, I encounter this error..Therefore I cannot get update.. Preconfiguring packages ... dpkg: error: parsing file '/var/lib/dpkg/status' near line 51245 package ...
96
votes
7answers
104k 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 ...
61
votes
2answers
22k 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?
38
votes
1answer
5k 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 ...
27
votes
1answer
16k 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 ...
6
votes
1answer
8k views

Unmet dependencies: linux-generic

Today I went over to my grandma because she had some problems with her computer, running Xubuntu 12.04LTS. After fixing 'the problem' (Firefox was set fullscreen..) I ran the usual apt-get update ...
3
votes
3answers
6k views

Unable to install any packages due to unrecoverable fatal error /var/lib/dpkg/diversions

I am currently unable to install any packages. I receive the following error: dpkg: unrecoverable fatal error, aborting: too-long line or missing newline in `/var/lib/dpkg/diversions I have ...
11
votes
2answers
12k 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 ...
7
votes
9answers
64k 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 ...
10
votes
3answers
20k 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 ...
4
votes
2answers
18k 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. ...
5
votes
0answers
10k views

dpkg: error: parsing file '/var/lib/dpkg/status' near line 6449 [duplicate]

This problem occured when trying to update using the update manager. A problem occured so I cleared all the cache and tried to update once again this time in terminal, and it spat out: dpkg: error: ...
5
votes
3answers
6k views

“/etc/grub.d/README: 6: Syntax error: ”(“ unexpected” while upgrading grub package

I am facing a problem while installing any program. I get an error of Sub-process /usr/bin/dpkg returned an error code (1). Following is log of the output of apt-get -f install. Any idea what's wrong ...
8
votes
6answers
3k views

Deleted the python binary, and can't recover using apt-get, what can I do?

Well. Yep. Wanted a fresh start because I was having dependency confusions, so I ran "whereis python" and literally erased all of the files and directories that came up. Then when I go to run apt-get ...
7
votes
3answers
31k views

error: parsing file '/var/lib/dpkg/status' near line 55497 package 'indicator-displex'

After running an upgrade from Ubuntu 11.10 (Oneiric Ocelot) to 12.04LTS (Precise Pangolin), a window popped up saying that the upgrade failed and that I should run sudo dpkg --configure -a. Running ...
11
votes
2answers
30k 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 ...
8
votes
4answers
9k 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 ...
6
votes
2answers
18k views

dpkg: error: unable to access dpkg status area: Read-only file system

I am a newbie in this operating system I installed Ubuntu 12.10 and I found it very interesting to use. Then once I install chromn from ubuntu software I got I/O Error After that I could not ...
5
votes
1answer
12k views

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) nginx

The Software up-to-date Option automatically download the upgrade for nginx. but While installing it's giving me the following error: Reading package lists... Done Building dependency tree ...
4
votes
2answers
6k views

How do I recreate a deleted '/var/lib/dpkg' directory?

Yesterday I had some problem with /var/lib/dpkg/lock during update. I knew that in such cases removing lock file could solve problem. So I tried to do it, but by mistake I removed all DPKG directory. ...
3
votes
4answers
18k views

update-alternatives: error: alternative path /lib/plymouth/themes/Lmint/Lmint.plymouth doesn't exist

When I use sudo apt-get install I get the following errors when installing any package: (This example is while installing Gnome extensions) Reading package lists... Done Building dependency tree ...
10
votes
4answers
9k 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 ...
13
votes
2answers
4k 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) ...
4
votes
3answers
6k 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 ...
4
votes
3answers
18k views

Broken dependencies due to libjackd

So I proudly updated my Linux distro for the first time and thereafter got a problem. I'm running Ubuntu Unity 2D (usually) 12.04 (since today) on a 64 bit computer. Indeed, the first upgrade -- I ...
3
votes
4answers
85k views

How to fix “Could not open lock file” because “Permission denied”? [duplicate]

Whenever trying to install any software and update manger, I get an error stating Package operation failed The installation or removal of a software package failed When I run sudo apt-get update ...
3
votes
1answer
321 views

Help: “aptd” is maxing out my CPU?

I am running Ubuntu 12.04 and have a "aptd" process running as root (which I understand is correct) but eating 95% CPU (which is definitely not right). As per one of the answers here How to stop ...
3
votes
4answers
7k views

Update manager can not open due to missing /var/lib/dpkg/status

Update manger won't open saying E: could not open file/var/lib/dpkg/status - open(2: No such file or directory), E:the package lists or status file could not be parsed or opened. what to do?
2
votes
1answer
9k views

E: Could not open file /var/lib/dpkg/status - open (2: No such file or directory)

When I use sudo apt-get update I get following error. E: Could not open file /var/lib/dpkg/status - open (2: No such file or directory) E: The package lists or status file could not be parsed or ...
2
votes
1answer
2k views

trying to overwrite 'file', which is also in package '*', how to solve? [duplicate]

I'm not able to update anything. I'm on 13.10. When I try to install updates I get this: dpkg: error processing /var/cache/apt/archives/librhythmbox-core7_3.0.1-0~13.10~ppa1_amd64.deb (--unpack): ...
1
vote
3answers
3k views

How to solve “dpkg: error: 1 expected program not found in PATH or not executable”?

I have installed the LAMP Server using the command sudo apt-get install lamp-server^. Thereafter, whenever I open the terminal the following error started to appear: bash: /home/gaja/.bashrccu: No ...
4
votes
2answers
9k 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 ...
6
votes
1answer
3k views

Permanently change keyboard layout

I am using Xmonad and LXDE, so I don't want to use gnome-settings-daemon. But there is a problem - without it I cannot switch into or type in Cyrillics. I found some temporary solution - when I enter ...
13
votes
6answers
30k 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: ...
7
votes
4answers
20k 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 this ...
6
votes
4answers
11k views

dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured

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 ...
4
votes
4answers
3k views

Grub-pc installing error

Trying to fix my apt-get upgrade, it always stopped at setting up grub-pc... I read somewhere that I should purge remove my grub2 and then reinstall it. I did that and after lots of paying around i ...
2
votes
3answers
6k views

Debconf errors when configuring mysql-server

When I try to run sudo apt-get upgrade I get the error below. I also get similar error when running sudo reconfigure postfix, which I relly need to run since outgoing e-mail is not working any more. ...
6
votes
3answers
3k views

“Ignoring /etc/texmf/texmf.d/*.cnf during generation of texmf.cnf” when installing tex-common

Im having a lot of problems with my Ubuntu after the update from the 12.04 LTS to 14.04 LTS. Every time I start the system, it shows a lot of dialogs saying that the system encountered problems, and ...
5
votes
4answers
15k views

How to fix E: Internal Error, No file name for libc6

How to fix E: Internal Error, No file name for libc6, Like that will show If I do: $ sudo apt-get upgrade or $ sudo apt-get install package This is example : $ sudo apt-get upgrade Reading ...
4
votes
3answers
7k views

Can't remove kernels “run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1”

Yesterday I upgraded Ubuntu from 12.04 to 12.10. However, the linux kernel has not upgraded from 3.2 to 3.5 as I would have expected. $ uname -r 3.2.0-32-generic $ uname -a Linux tony-b ...