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

learn more… | top users | synonyms

98
votes
15answers
268k 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 ...
50
votes
2answers
58k 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) ... ...
13
votes
7answers
22k 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 ...
28
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 ...
0
votes
1answer
604 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 ...
15
votes
2answers
7k 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 | ...
29
votes
2answers
7k 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?
19
votes
7answers
34k views

How to install MySQL 5.6?

EDIT #2 Per oerdnj's answer below, I was able to successfully perform an unattended install of MySQL 5.6 on a 64-bit raring system using the following script: dpkg -s mysql-client >/dev/null ...
15
votes
2answers
9k 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 ...
6
votes
1answer
4k 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: ...
3
votes
1answer
2k 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
28k 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 ...
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 ...
38
votes
7answers
44k 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 ...
3
votes
1answer
23k 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 ...
3
votes
4answers
17k 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 ...
7
votes
2answers
15k 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 ...
2
votes
4answers
43k 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
5k 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?
0
votes
2answers
374 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 ...
16
votes
1answer
9k 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 ...
5
votes
4answers
5k 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 ...
5
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 ...
4
votes
3answers
8k 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 ...
4
votes
3answers
8k 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
8k 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 ...
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 ...
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 ...
4
votes
4answers
4k 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 ...
1
vote
3answers
3k views

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

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
367 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
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 ...
53
votes
6answers
42k 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: ...
17
votes
4answers
8k 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: ...
3
votes
1answer
282 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: ...
1
vote
2answers
515 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 ...
1
vote
1answer
2k views

internal gzip read error

I have a Dell Optiplex 755 Core 2 Duo that I made a fresh install of 12.04. There is no Winows OS on the machine. It has been running mostly fine for over a week. I do keep getting system crashes due ...
5
votes
1answer
4k views

How to recover dpkg from corrupted downloads?

I just upgraded to the 10.10 RC earlier and had a few problems with graphic drivers (x didnt start) But i have remedied that now. When i run 'sudo apt-get install -f' i get this: ...
4
votes
4answers
28k views

Cannot open lock file /var/lib/dpkg/lock permission denied--even using sudo

I recently installed a fresh version of Ubuntu LTS 12.04. I had been using LTS 10.4 and saved my package.list and was planning on using $> sudo dpkg --set-selections < package.list ...
4
votes
1answer
379 views

Recompile all packages and trigger on updates

I am using Ubuntu on a bespoke router and after seeing the latency drops capable with custom compiling on Gentoo, I would like to recompile all packages with CFLAGS="-march=atom". The guide for this ...
3
votes
3answers
3k views

How to get dpkg working again?

i tried to install sqlite3 on ubuntu 10.04 by typing: sudo apt-get install sqlite3 this gave me the message E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the ...
3
votes
2answers
3k views

Package dependency problem (offline install of wireless drivers)

I have a friend wanting to install Ubuntu 10.10 as a dual-boot with Windows through Wubi. Unfortunately, he has a wireless card with a Broadcom chipset, and needs to install the drivers. There is no ...
0
votes
2answers
33k views

Unable to fix broken packages with sudo apt-get install -f

Here's my result, of sudo apt-get install -f. i have Ran it twice and got negative result. I believe there is an error at "error in Version string '0:3.6.1-dates for language English Translation ...
5
votes
2answers
632 views

sudo dpkg error - blank line in value of field 'Maintainer'

I am running on Ubuntu 12.04 LTS and am trying to install NX. When using a sudo dpkg command for the plugin (nxplugin_3.5.0-6_i386.deb) I get an error. I have tried a number of things. Other ...
4
votes
2answers
548 views

list all suggested packages for currently installed packages

Every time I install a package: sudo apt-get install <pkg> apt-get displays a list of suggested packages. I have simply ignored these so far, but some of these suggestions are actually good ...
4
votes
4answers
8k 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 ...