Questions related to dpkg, the system that powers most software installs. (Note: apt-get is a very similar tag.)

learn more… | top users | synonyms

122
votes
15answers
342k 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 ...
1
vote
1answer
2k 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 ...
76
votes
2answers
99k views

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

I was trying to install Teamviewer, but I was getting a dependencies error. I tried to install them but with no luck. I'm getting this Error: Unpacking teamviewer (from teamviewer_linux_x64.deb) ... ...
14
votes
7answers
25k 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 ...
9
votes
3answers
5k 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 ...
6
votes
1answer
30k 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 ...
29
votes
1answer
3k 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 ...
17
votes
2answers
9k 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 | ...
17
votes
2answers
11k 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 ...
21
votes
1answer
11k 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 ...
38
votes
2answers
10k 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?
6
votes
1answer
5k 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 ...
5
votes
0answers
10k views

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

Good evening. 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: ...
2
votes
3answers
4k 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 ...
3
votes
1answer
4k 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 ...
7
votes
3answers
30k 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 ...
52
votes
7answers
57k 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 ...
9
votes
2answers
19k 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 ...
3
votes
2answers
10k 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 ...
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 ...
2
votes
3answers
4k 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. ...
2
votes
4answers
53k 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 ...
4
votes
1answer
4k 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
6k 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
6answers
3k 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 ...
0
votes
2answers
854 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 ...
6
votes
1answer
2k 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 ...
5
votes
4answers
6k 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 ...
10
votes
1answer
3k 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
10k 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 ...
4
votes
3answers
2k 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 ...
1
vote
3answers
4k 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. ...
4
votes
3answers
11k views

dpkg: error: dpkg status database is locked by another process

I just wondered if somebody could tell me what this means: E: dpkg ble avbrutt. Du må kjøre «sudo dpkg --configure -a» manuelt for å rette problemet, reidsr@ubuntu:~$ sudo dpkg --configure -a dpkg: ...
2
votes
3answers
16k views

How to fix “*:i386 cannot be configured because *:amd64 is in a different version”? [duplicate]

I've managed to break apt-get, I think it had something to do with competing versions of libqt between supercollider and skype. Now when I try to install anything, I get the following: You might ...
2
votes
1answer
8k views

error Sub-process /usr/bin/dpkg returned an error code (1) while running sudo apt-get install -f [duplicate]

Possible Duplicate: error occured while running sudo apt-get install -f [sudo] password for rahul: Reading package lists... Done Building dependency tree Reading state ...
2
votes
2answers
3k views

trying to overwrite '*', which is also in package faenza-icon-theme 0.8

I have Docky installed on Ubuntu 10.10 64bit and noticed after a recent upgrade my 'Helpers' are no longer available. After some research I found that Dockmanager is no longer installed either. I am ...
0
votes
1answer
4k views

How do I downgrade nvidia drivers in 12.04?

I am experiencing a problem described in this topic, which I now suspect is due to a bug in the 295.40 version of the nvidia drivers. Are there any builds available for Ubuntu 12.04 precise based on ...
5
votes
4answers
6k 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 ...
4
votes
4answers
11k views

How to reinstall a package

I am getting this while installing libebml3: Errors were encountered while processing: libebml3:i386 Error in function: dpkg: error processing libebml3:i386 (--configure): Package is in a very bad ...
2
votes
1answer
601 views

How do you find the licenses for everything installed on your system?

I want to write a script that outputs the license for every software package installed on my system. Using dpkg --get-selections I am able to get list of everything installed. However, I don't see a ...
1
vote
4answers
3k views

Package operation failed Errors were encountered while processing: xserver-common-lts-raring [duplicate]

Before starting with my problem description, I would like to say that this is my very first time using Ubuntu or anything related to Linux! Now my question! I have installed the very last ...
1
vote
1answer
2k views

I encountered a gconf2 error while installing some packages, what should I do?

I got this error when installing some software: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not ...
0
votes
2answers
2k views

Install Brother MFC295CN drivers to Ubuntu

I'm trying to get the drivers for my printer going, and not doing well. I tried the following: http://ubuntuforums.org/showthread.php?t=1377270 and the sudo dpkg -i PACKAGE.deb format. It installs the ...
66
votes
5answers
61k 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: ...
21
votes
4answers
12k 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: ...
4
votes
0answers
280 views

segmentation fault when installing librsvg2-common and libgdk-pixbuf2.0 [closed]

If you are also affected, upvote the question so it causes more attention. My system is ubuntu 12.04 on Linux 3.8.0-37-generic. I got some crash report after a system update today (seemly from ...
1
vote
3answers
4k views

How to set the package selection status to the current status?

I have made a dpkg --clear-selections command and found that all my packages are selected for removal. As the man pages is saying --clear-selections : Set the requested state of every ...
3
votes
1answer
343 views

Rhythmbox updates failing

I am having trouble updating with Rhythmbox. I'm using ubuntu 13.10 I have purged it and did a new install and I keep getting an error message: When I attempt an upgrade: ...
2
votes
2answers
6k 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 ...
1
vote
2answers
746 views

Error while installing Catalyst 13.12 on Ubuntu 13.10 32 bit

I have downloaded Catalyst drivers from amd site, unpacked it and created a package with $ sudo ./amd-catalyst-13.12-linux-x86.x86_64.run --buildpkg Ubuntu/saucy Created directory ...