Questions related to dpkg, the system that powers most software installs. (Note: apt-get is a very similar tag.)
42
votes
11answers
83k views
How do I fix a “Could not get lock /var/lib/dpkg/lock” problem?
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 another process using it? How can I fix ...
11
votes
2answers
3k 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
| ...
12
votes
5answers
12k 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 ...
24
votes
1answer
1k 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 ...
2
votes
2answers
2k 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 ...
4
votes
3answers
14k views
How do I fix dpkg errors after a failed upgrade?
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
1answer
4k 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 ...
4
votes
1answer
6k views
dpkg: error: parsing file '/var/lib/dpkg/status' near line 6449
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:
...
0
votes
0answers
291 views
dpkg: error: parsing file '/var/lib/dpkg/available' near line 13 package 'python-pkg-resources error
I got frustraded and re-installed ubuntu server. I'm at the point in the cmd line:
sudo apt-get update .. done
sudo apt-get upgrade .. done
sudo apt-get install linux-image-server ...
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 ...
2
votes
1answer
7k 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 ...
11
votes
1answer
4k 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
2answers
3k 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 ...
9
votes
3answers
1k 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:
...
12
votes
6answers
9k views
How to install MySQL 5.6?
I just installed Ubuntu 12.10 (amd64), and want to install a recent version of MySQL 5.6.
If possible, I would like to install (not upgrade) it the "Debian Way' (i.e., using apt-get or dpkg).
The ...
4
votes
1answer
948 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
1answer
293 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 ...
4
votes
1answer
3k 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:
...
3
votes
3answers
2k 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
2k 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
1answer
3k 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 ...
3
votes
1answer
1k views
Update/Installs fails with unrecoverable dpkg fatal error because libc6-i386 is missing
I keep receiving this error every-time I try to do some updates.
I tried sudo dpkg --configure, sudo apt-get update and sudo apt-get install -f but they failed on me.
installArchives() failed: ...
2
votes
2answers
3k 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?
1
vote
1answer
2k views
dpkg returned an error code(1) for libc6:i386 and libtinfo5:i386 while trying to install anything
When I try to install anything through apt-get or synaptic I keep on getting this
...
Fetched 23.6 MB in 1min 10s (336 kB/s)
debconf: DbDriver "config": ...
0
votes
1answer
1k 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 ...
0
votes
2answers
15k views
How to fix “Could not open lock file” because “Permission denied”?
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 ...
0
votes
1answer
6k views
dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
murphy@murphy-Compaq-Presario-C700-Notebook-PC:~$ sudo apt-get install clipgrab
[sudo] password for murphy:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the ...
5
votes
3answers
5k views
How to remove a half-installed package? (Sun JDK - Java)
I've tried installing Sun JDK from sudo add-apt-repository ppa:eugenesan/java, it failed with the following:
Downloading...
--2012-05-05 15:50:09-- ...
16
votes
3answers
3k views
apt-get vs. aptitude .vs synaptic compatibility
I had been a Debian user for almost 3 years... but memories have gone really fuzzy...
I "kind of" remember that I should only use one of the package managers...
Either apt-get, aptitude, or synaptic, ...
12
votes
3answers
891 views
How to find the number of packages needing update from the command line?
I'm working on some system admin automation using fabric and I'd like to be able to monitor the number of packages that need upgrading on a given machine. This is the same information that I can see ...
9
votes
1answer
1k 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) ...
10
votes
2answers
2k views
How can I install 'Revenge of the Titans'?
Revenge of the Titans is one of the games from the Humble Indie Bundle. I downloaded the i386 .deb file (I'm on a 32bit installation) and tried to install it using the Software Centre. However, when ...
4
votes
2answers
2k views
apt changelog for to-be installed packages
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 ...
3
votes
1answer
73 views
How to get a list of files for a package I haven't installed yet?
apt-cache search returns list of available packages. In my case I would like to look at the list of files that would be installed on my PC in case I install the package usb-creator-gtk.
Something ...
3
votes
2answers
2k views
Why this dpkg error: ambiguous package name 'libglib2.0-0' …?
I have some weird errors while trying to install packages with software center or even when I try to upgrade packages with sudo apt-get install upgrade:
dpkg: error: file triggers record mentions ...
2
votes
1answer
696 views
Is there a way to see what exactly the “processing triggers” does per-package basis?
As I've understood, the usual "Processing triggers for < packagename >" does some package- and system-specific tasks such as add items to a launch menu or update a configuration file. Is there an ...
2
votes
3answers
3k views
E: Internal Error, No file name for libssl1.0.0
I use:
apt-get remove
To remove some software, but it displays:
error:E: Internal Error, No file name for libssl1.0.0 .
I also try this to resolve the error:
wget ...
1
vote
2answers
2k 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 ...
1
vote
2answers
339 views
dpkg: error processing linux-headers-3.2.0-35
Whenever I install, update or uninstall a program in the terminal, this comes up
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... ...
0
votes
2answers
579 views
How to solve dpkg-source source problem when building a package?
Has anyone here had some experience creating a Debian / Ubuntu package? I am trying to backport the lammps package (http://packages.ubuntu.com/quantal/lammps) from Ubuntu 12.10 (Quantal) to Ubuntu ...
0
votes
3answers
1k 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 ...
0
votes
2answers
562 views
dpkg: How to remove a package and all other packages depend on it?
I tried to remove KDE from my system.
When I run ' dpkg -r kdebase-bin', it says 'kdebase-data' depends on it. So how can I remove all the packages related to KDE?
5
votes
2answers
203 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 ...
5
votes
1answer
2k views
Can't upgrade packages, it gets stuck on openjdk-6-jre-headless
I am using Ubuntu Maverick (server).
When I run:
apt-get upgrade
it gets stuck on:
Setting up openjdk-6-jre-headless (6b20-1.9.7-0ubuntu1) ...
Why? And what can I do to stop it?
I tried ...
4
votes
2answers
1k views
How to trick apt dependencies? [duplicate]
Possible Duplicate:
How to create a meta-package that automatically installs other packages?
I want to use Frescobaldi (an editor for Lilypond), but the packaged release of lilypond ...
3
votes
2answers
382 views
Cannot use apt-get/dpkg — Input/output error
I have bumped into an issue that doesn't allow me to do anything related to apt-get: install, remove, etc. Whenever I try to do something (e.g. sudo apt-get install firefox -f) it gives me the same ...
2
votes
1answer
791 views
apt-get errors after TeX Live 2012 update with tlmgr
I am running TeX Live 2012 on Ubuntu Precise. For the installation I followed this tutorial. Yesterday, I updated the packages (about 40 items) for Tex Live 2012 using the following tool.
$ sudo ...
2
votes
1answer
927 views
After force-installing a 32-bit deb failed, how can I install the 64-bit version?
I tried to dpkg -i --force-architecture google-earth-stable_i386.deb and it failed.
But now when I try to install the amd64.deb it fails saying
dpkg: error processing ...
2
votes
1answer
71 views
Can Synaptic sort packages by time?
I know Software Center can do this (in the "History" section), but I've yet to find a filter/column in Synaptic that will sort the packages by the time they were installed/removed. I could really use ...
1
vote
1answer
8k 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 ...

