The Debian package management system that powers most software installs.

learn more… | top users | synonyms

186
votes
14answers
556k 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 ...
150
votes
1answer
235k 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) ... ...
119
votes
5answers
119k 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: ...
93
votes
7answers
99k 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 ...
59
votes
2answers
21k 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?
37
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 ...
32
votes
4answers
27k 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: ...
32
votes
2answers
16k 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 | ...
30
votes
3answers
48k 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 ...
26
votes
7answers
18k 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 ...
26
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 ...
24
votes
3answers
6k 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, ...
23
votes
3answers
13k 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 ...
20
votes
1answer
6k 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 ...
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 ...
18
votes
3answers
8k 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.
15
votes
3answers
10k 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 ...
15
votes
8answers
33k 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 ...
13
votes
2answers
21k 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 ...
13
votes
6answers
29k 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: ...
13
votes
1answer
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) ...
12
votes
3answers
4k 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 ...
12
votes
4answers
39k 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 ...
12
votes
2answers
9k 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 ...
12
votes
2answers
4k 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 ...
11
votes
2answers
29k 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 ...
11
votes
3answers
4k views

'trying to overwrite file already in shotwell-common package' while installing shotwell from the PPA

I am trying to update my version of Shotwell. Well, my Ubuntu system is. I am getting the following apt-get error. Can anyone tell me how to resolve it? I have tried a few different things so now ...
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 ...
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 ...
10
votes
5answers
11k views

How to resolve E: Internal Error when using apt-get remove?

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 ...
10
votes
1answer
15k 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 -- ...
10
votes
4answers
961 views

Does installing packages manually with dpkg prevent a future upgrade path?

I manage a private network which has no internet connectivity due to the security policy of the customer. This network has a single Ubuntu 10.04 LTS Server installation (soon to be several more) and ...
10
votes
3answers
19k 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 ...
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 ...
10
votes
2answers
29k 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 ...
10
votes
1answer
93 views

What classifies an application as 'installed' in Ubuntu?

I would like to know what causes Ubuntu and/or Synaptic to recognize a program as being installed. Is there an equivalent of the Windows registry that an application has to have a entry in? Does a ...
10
votes
0answers
24k views

Installation Error, “Unable to lock the administration directory” [duplicate]

Whenever I try to install any software through Terminal or Software on my Ubuntu 11.04, I'm getting this response: In Terminal: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource ...
9
votes
3answers
5k views

What is dpkg for?

My question is simple -- I want to know more about dpkg -- what does it do?
9
votes
2answers
2k views

What is the difference between dependencies and pre-depends?

Can some one explain me what is meant by dependencies, pre-depends and the difference between those 2 type of package requirements when I am installing something in Ubuntu?
9
votes
3answers
23k 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 ...
9
votes
1answer
44k 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 ...
9
votes
2answers
5k 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, ...
8
votes
5answers
7k views

Script to only execute during first install of a package

I recently started packaging up some of my software and publishing it on Launchpad. The installation and removal works fine, but upgrading the package form one version to the next version is ...
8
votes
4answers
6k 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 ...
8
votes
2answers
15k views

How can I find Boost version?

I just want to know how I can find the version of boost installed in my ubuntu 12.04? I am having trouble with the current precise and thinking of reverting back to 8.04. What is the boost version in ...
8
votes
3answers
16k 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-- ...
8
votes
6answers
2k 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 ...
8
votes
1answer
20k views

How to force remove a package if dpkg removal script fails?

I'm trying to remove a package where I deleted the /etc/init.d/disco-master file (in an attempt to remove the package manually). I want to remove the disco-master package. How do I do this now? This ...
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 ...
8
votes
3answers
11k views

apt-get fails to upgrade, install, remove etc

I upgraded from 11.10 to 12.04, had no issues that I noticed. Recently tried to install something via software center, but it was throwing errors. Changed to trying to sudo apt-get install instead but ...