The Debian package management system that powers most software installs.

learn more… | top users | synonyms

314
votes
14answers
888k 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 ...
192
votes
5answers
201k 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/...
176
votes
1answer
310k 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) ... ...
152
votes
9answers
157k 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 ...
81
votes
2answers
34k 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?
76
votes
7answers
154k views

How to automatically fetch missing dependencies when installing software from .deb? [duplicate]

I'm trying to install MySQL Workbench on my Ubuntu box (11.04). The website has a Ubuntu .deb available for download (for 10.10 and 10.04 so I chose 10.10). However, sudo dpkg -i mysql-workbench-...
52
votes
4answers
82k views

How do I change my timezone to UTC/GMT?

Currently when I execute the date command from bash I get the following displayed Thu May 17 12:21:00 IST 2012 Below is my timezone config based on executing dpkg-reconfigure tzdata Current ...
51
votes
5answers
47k 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: Desired=Unknown/Install/Remove/Purge/...
48
votes
3answers
27k 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/...
43
votes
1answer
7k 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-...
38
votes
8answers
31k views

Is it possible to install a .deb from a URL?

Is there a way to install a deb package directly from a URL, using a shell? Something like dpkg -i http://domain.com/path/to/package.deb (I know I could use wget and then dpkg, I'm just wondering ...
33
votes
1answer
20k 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 ...
32
votes
1answer
29k views

Unable to find expected entry 'main/binary-i386/Packages - Chrome [duplicate]

I recently noticed while installing some packages and using the command apt-get update that I ran into the following error: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release ...
31
votes
2answers
29k views

How do I get details about a package which isn't installed?

How can I get some details about a package without installing it, (eg. the description and version number) like in Synaptic or Aptitude. The command dpkg -s PACKAGE does not work, with this error. ...
30
votes
1answer
9k views

Where is virtualenvwrapper.sh?

I don't know what's more embarrassing: that I don't know how to go about finding the answer to this question myself, or that it has to be asked at all in the first place, but... where does apt-get ...
30
votes
3answers
19k views

dpkg --get-selections shows packages marked “deinstall”

Executing dpkg --get-selections shows packages with one of the markers install or deinstall. Some packages I could remove completely with apt-get remove. What does deinstall mean? What can be done ...
29
votes
4answers
20k 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 ...
28
votes
1answer
3k views

Will Ubuntu replace dpkg with snappy?

My apologies for being uninformed, but I couldn't find the answer through Google or read/understand a definite answer out of Mark's announcement. Are there plans to replace dpkg in its entirety with ...
27
votes
3answers
11k views

How to list packages from a ppa/source in command line?

I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that? dpkg --list lists all files or just the filename.
27
votes
3answers
7k views

apt-get vs. aptitude .vs synaptic compatibility

As a former Debian user, I "kind of" remember that I should only use one of the package managers... Either apt-get, aptitude, or synaptic, but not the three in combination 'cause there may be ...
20
votes
2answers
23k 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 `....
20
votes
5answers
38k 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 ...
19
votes
8answers
43k 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 ...
18
votes
3answers
20k 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 ...
18
votes
5answers
55k 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 ...
18
votes
3answers
281 views

Prevent Ubuntu from shutdown before background automatic updates complete

So there is a situation were I have installed a (x)Ubuntu 14.04 on a friend's PC. Automatic updates are set "download and automatic install updates". The problem is after some months of use, it ...
17
votes
2answers
58k 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-...
17
votes
1answer
83k views

remove package with apt-get or dpkg [duplicate]

I am just wondering if I want to remove a package from my system say google-chome-stable, i have two ways of doing it: sudo apt-get remove google-chrome-stable and dpkg -r google-chrome-stable ...
16
votes
1answer
21k 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/+...
16
votes
2answers
31k views

How do I list all installed packages with specific version numbers?

I would like to list all the installed packages, with specific version numbers on my system. I checked out dpkg --get-selections (How to list all installed packages?) but it doesn't show me what I ...
16
votes
2answers
5k 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) ...
15
votes
9answers
90k 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 ...
15
votes
2answers
13k views

apt changelog for to-be installed packages [duplicate]

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 ...
15
votes
2answers
17k 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 ...
15
votes
4answers
17k 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 (...
15
votes
2answers
43k views

How force remove when post-installation script always fail

I have a custom package installed on my Ubuntu 10.10, and trying to remove it, I got: $ sudo dpkg -r package sub-process script post-installation installed returne an error state 127 (the message ...
15
votes
3answers
2k views

gpg: keyblock resource ‘/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg’: resource limit

No matter what I do, I get the following error: gpg: keyblock resource ‘/etc/apt/trusted.gpg.d//webupd8team-sublime-text-3.gpg’: resource limit The original error(Dutch) Original Dutch sudo apt-...
14
votes
3answers
5k views

Why do some packages conflict with themselves?

After an upgrade to Oneiric I have had some troubles with the package manager (it wanted to remove half of my system, including libc6, zlib1g packages etc). During the fight with aptitude I've noticed ...
14
votes
4answers
42k views

Do Dpkg and apt-get install dependencies?

I've been wondering, is there a way to tell dpkg or apt-get that when I want to install a package also install all the dependencies it requires? I installed a package using dpkg but it complained ...
14
votes
7answers
46k 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: ...
14
votes
2answers
11k views

How can I downgrade packages without removing their dependants?

I have a number of mesa packages that I had upgraded to a PPA version, before purging the PPA so I could upgrade my system. The differences in the versions are minor (they are technically the same, ...
13
votes
2answers
45k 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 ...
13
votes
3answers
10k views

“Unmet dependencies” When trying to install KDE Plasma 5.3 on Ubuntu 15.04

I'm trying to install the latest KDE Plasma here but I'm getting You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: kde-telepathy-minimal: ...
13
votes
1answer
142k views

How can I solve Unable to lock the administration directory (/var/lib/dpkg/) [duplicate]

I am really New to UBUNTU 14.04 and whenever I try to update or install anything I get this error: sudo apt-get update [sudo] password for trojanfm: E: Could not ge lock /var/lib/apt/lists/lock - ...
13
votes
2answers
5k views

Can I rebuild a package without recompiling the source?

I am building a new .deb and want to fix lintian errors in the packaging. However, every time I rebuild, the rules file does a 'make clean' and thus starts compiling again. Is there a way to ...
13
votes
1answer
951 views

How to tell if my system is “multiarch”?

Per the LTS Enablement Stack wiki, "to install the newer HWE kernel derived from 15.10 (Wily)" there is a different set of packages to install depending on whether a system is multiarch or not. How ...
12
votes
4answers
12k 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 ...
12
votes
3answers
45k views

E: Mysql-server-5.5 Installation Error [closed]

I have unsuccessfully been attempting to install mysql-server for a while on my ubuntu vps During a fresh install (Fully purged all mysql related packages) partway through the installation it asks ...
12
votes
4answers
26k 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 ...
12
votes
2answers
4k views

Can not install 'openjdk-9-jdk' because it tries to overwrite file aready included in 'openjdk-9-jdk-headless'

I'm running Ubuntu 16.04 Xenial desktop, 64 bit, and wanted to install openjdk-9-jdk (Java 9 development kit). The version available from the universe repository is 9~b114-0ubuntu1. Running the ...