The base software for Debian/Ubuntu/Mint package management. Use this tag for questions about dpkg and its companion utilities and the .deb file format.

learn more… | top users | synonyms

93
votes
12answers
31k views

What are the pros/cons of deb vs. rpm?

For whatever reasons, I've always used RPM based distros (Fedora, Centos and currently openSUSE). I have often heard it stated that deb is better than rpm, but when asked why, have never been able to ...
16
votes
6answers
911 views

What's .deb and .rpm and how is it different from .msi?

What are these file formats and how do they differ from the .msi format in Windows? Also what are the pros and cons of these package management schemes?
9
votes
3answers
8k views

Installing a .deb package in home directory

Is it possible to install a .deb package completely under my home directory at debian?
9
votes
4answers
749 views

How can I reliably “hold” a package in Debian?

I have a package in Debian that has been manually patched (not ideal, I know) that I must hold at its current version so upgrades don't overwrite the patched changes (I will manually inspect and apply ...
7
votes
2answers
134 views

Re-installing apps after a fresh install?

I'm on Debian and I want to re-partition my drive and reinstall. Is there an easy way to restore all currently installed packages after a fresh installation? I'm thinking of doing it by making a ...
7
votes
1answer
1k views

How to make dpkg faster?

Package (un)installation on a Debian system is horribly slow, partly because it works with a whole bunch of (small) files. Short of getting a faster storage, how do I speed it up? I'm thinking maybe ...
5
votes
1answer
388 views

Conflict? dpkg, apt, apt-get, aptitude, and synaptic

So, I ssh into a (very) remote Ubuntu 10.4 server to do some admin and web dev+design. And I was looking through the various package manager options. There's a lot. The big ones are dpkg, apt, ...
5
votes
2answers
7k views

Not able to lock /var/lib/dpkg/lock (read only)

I was trying to install ruby on my remote server(this is a vm machine(debian) in a esxi server . ) I got this error: The Command: sudo apt-get install ruby1.8 Error : W: Not using locking for read ...
5
votes
4answers
152 views

Install a .deb completely 'by hand'

So, I recently acquired a brand new Nokia N900 phone off of an online auction site for a fairly reasonable price. The N900 is a Linux phone, and it came out a long time ago, but it's only just now ...
5
votes
1answer
412 views

Firefox circular-dependency hell on Linux Mint 13

Having difficulty re-installing Firefox, after an installation to resolve places.sqlite issues. It appears that I'm trapped in circular dependency hell. Need to resolve firefox dependency hell to ...
4
votes
3answers
719 views

How to list currently not installed packages?

I'd like to output a list of all, currently not installed, packages (they are visible in Synaptic for example) using only shell commands. How do I do this?
4
votes
2answers
2k views

I cannot install new packages: “Could not get lock /var/lib/dpkg/lock”

I am new to Linux (installed Ubuntu for the first time yesterday), and have never dealt with any unix-based OS. I started using Linux for the sole purpose of collaborating code with my partners via ...
4
votes
2answers
425 views

feeding input values to dpkg-reconfigure in non-interactive way

I would like to configure ubuntu package via dpkg-reconfigure with all the values supplied via non-interactive mode (in the script). In fact my case is firebird confiiguration ...
4
votes
2answers
133 views

Does Debian's dpkg store the time/date of package changes (.i.e. installation/purges)?

I know that dpkg and dpkg-query are good tools to find out about packages currently installed on a Debian system. Besides the information logged to the files /var/log/dpkg.log.* is there any other ...
4
votes
1answer
2k views

How to fix zramswap error?

I installed zramswap-enabler on Ubuntu 11.10 using the ppa but when installing programs or running system upgrades I get this error: Setting up zramswap-enabler (0.2.1-0~12~oneiric1) ... start: Job ...
4
votes
1answer
72 views

Sharing code between dpkg scripts

What is the standard way to share code between the dpkg scripts (preinst, postinst, prerm, postrm)? I can see how to share code between just postinst and prerm (by installing it as part of the ...
3
votes
2answers
1k views

What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?

It's a very simple question, but I wonder, is there a term to refer to the subset of packages that is automatically installed by Debian distribution? I though that it had something to do with ...
3
votes
3answers
62 views

List all software installed from particular component (non-free, contrib)

Is there a way to list all non-free and contrib software installed in Debian via apt? /etc/apt/sources.list is as follows deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib deb-src ...
3
votes
1answer
100 views

Why does grep change the length of output lines?

I often use dpkg or aptitude combined with grep when I want to list certain packages available or installed on my system, but I noticed that when I add | grep, the output lines look a little bit ...
3
votes
1answer
1k views

Is dpkg available for Cygwin?

I don't use Windows all that often, but I've found my self in a position where I'm stuck in front of one quite a bit temporarily. So I've been investigating Cygwin. My question is dpkg available for ...
3
votes
2answers
317 views

Install downloaded packages with dependencies

I sometimes download .deb packages from the internet and install them with dpkg -i package.deb If the packages have unmet dependencies. How can I install the dependencies automatically (similar to ...
3
votes
1answer
32 views

Flag a package as being configured on Debian even if it's not

For various reasons, I have a package on my Debian system which cannot configure itself properly. I know why and I don't want to correct the problem right now. However, I want to avoid apt trying to ...
3
votes
3answers
100 views

Can removed Debian packages have leftover files?

I noticed a weird thing in my /etc/init.d files and tried to look a bit what was going on. Here's my problem: # apt-file search /etc/init.d/minissdpd minissdpd: /etc/init.d/minissdpd # ...
3
votes
2answers
53 views

Naming conventions / translation between dpkg and apt packages?

I've been trying to figure out package management in debian a little better. I figured out that you can list all the packages on your system by using the "apt-cache pkgnames" command: ...
3
votes
2answers
248 views

Debian dpkg broken after apt-get upgrade

I have been running Debian Wheezy for a long time. Today I ran a dpkg upgrade, which has somehow broken things badly. The upgrade aborted, and now apt-get and dpkg are not running. # dpkg dpkg: error ...
3
votes
2answers
50 views

Ubuntu 12.04: updating package message

When ever I updated packages, (they update) I receive the following message about TeXLive: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 2888 package 'texlive-local': missing ...
3
votes
1answer
62 views

Installed using apt-get, then ran out of storage

I attempted to install a large package, forgetting that I had little space left, and now I am a little stuck. When I attempt to remove any packages I get the following error: E: dpkg was ...
3
votes
4answers
7k views

debian: Remove or reinstall package in a very bad inconsistent state

I'm having a package management problem: At some point, I must have interrupted an update or something, because the bluez package has broken. I've tried removing and/or reinstalling, but I get ...
3
votes
1answer
686 views

listing packages in Debian, a la `dpkg -l`, but including the package origin/source

I want to list all packages of the form $ dpkg -l libav\* but in addition to this output, I would like the origin/source (I'm not sure of the preferred term) of each package. If the package doesn't ...
2
votes
4answers
4k views

dpkg: new pre-installation script returned error exit status 1

I ended up dealing with a software meant to be deployed using dpkg. The .deb package works fine on the test env but fail on staging. Both are running the same version of Ubuntu but I am not 100% sure ...
2
votes
3answers
407 views

Can't install dpkg on Linux 2.6.18

I have a virtual machine that I am trying to use. It doesn't seem to have dpkg or apt-get, so I downloaded the source from http://packages.debian.org/sid/dpkg-dev. If I run ./configure followed by ...
2
votes
3answers
621 views

How to install StackApplet on Debian?

I would love to install StackApplet on Debian 6.0.2! I downloaded 'stackapplet_1.4.0_all.deb' and ran following command: root@debian:/home/dagrevis/Downloads# dpkg -i stackapplet_1.4.0_all.deb ...
2
votes
2answers
984 views

Why did 'apt-get install ffmpeg' fail?

I dont understand how or why apt-get install failed. It mentions ssmtp which is simple smtp which i use to send mail from my server to my google apps account. I dont understand what is wrong or how to ...
2
votes
1answer
304 views

Prompting for input in post-install script in dpkg

I am writing a debian package and need to prompt the user for some textual details(default password, etc), as well as some one-of-many choices("Pick one of the following: foo, bar"). Will shell ...
2
votes
2answers
319 views

List of installed programs without running a program in the system

My Linux Mint 15 broke and there seems to be no way to fix it. I cannot boot it so I haven't got access to the terminal. What I'm going to do is make a backup of /home with a flash disk running Mint ...
2
votes
1answer
46 views

How can I know the dependency packages for an installed package?

Let's say I installed foo. The foo package depends on bar, so bar was installed to satisfy foo's dependency. How can I get Ubuntu/APT/dpkg to tell me that bar is installed because foo is installed? ...
2
votes
2answers
635 views

Can I determine what changed in an upgraded package using apt or dpkg on Debian 6?

I just did an apt-get upgrade on my Debian 6 development server and noticed that a certain package named tinyproxy was upgraded. I have a particular interest in seeing precisely what changed in that ...
2
votes
1answer
140 views

Where is tcl-doc man page stored?

I installed tcl-doc. Prior to installation "man tcl" gave nothing. Now it gives a page. When I do "dpkg -L tcl-doc" I get /. /usr /usr/share /usr/share/doc /usr/share/doc/tcl-doc ...
2
votes
1answer
312 views

How to custom build debian's busybox?

I'm building an embedded system based on debian 7, and I'd like to make the most out of busybox that comes with debian. The problem is default busybox build in debian seems quite minimal, for example ...
2
votes
1answer
195 views

Replacing Multiple Debian Packages from Compiled Source

I've had to download and install a version of a library from its source code repository. The problem is is that other packages from the Kubuntu package manager require this library to be installed. ...
2
votes
1answer
349 views

Is my apt-get dependency tree corrupted?

I wanted to uninstall the libboost libraries. I wrote in the console: sudo apt-get remove libboost-* But looking more precisely at the console output, I noticed apt-get was ready to remove several ...
2
votes
1answer
486 views

Apt-get refuses to stop trying to install Acroreader

I'm using Mint 13 if that matters. And I'm new. Anyway, I tried installing Adobe Reader 9 using their installer from: http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Unix ...
2
votes
2answers
27 views

Diff dpkg files with local copies

Is there a way of diffing the dpkg files with the one that are actually installed? Or barring that a way to find ones that have been modified?
2
votes
1answer
660 views

error while using apt-get install for any package

I have tried to install texlive-full with apt-get and the installation stopped due to some errors. Later I removed all folders and files related to texlive, texmf manually. Since then I get the ...
2
votes
1answer
144 views

Aptitude Search reports package installed, while Aptitude Show reports it not installed - how is that possible?

me@friedly_server:~$ aptitude search samba-tools i samba-tools - Samba testing utilities me@friendly_server:~$ aptitude show samba-tools ...
2
votes
2answers
548 views

How to fix “ambiguous package name 'libglib2.0-0'” problem?

Using Ubuntu 11.10 64 bit, whenever I try apt-get [anything] or dpkg [anything] I get this error: dpkg: error: el fichero de registros de disparadores menciona un nombre de paquete ilegal ...
2
votes
1answer
52 views

What means “unable to make backup link of /binary before installing new version: No such file or directory”?

I'm trying to upgrade some package in a VM, but I dpkg refuses to apply the upgrades due the following: dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.5ubuntu2.2_amd64.deb (--unpack): ...
2
votes
1answer
60 views

debian: remove all packages installed on a specific day

I have to remove all packages installed on a specific day. My solution is to look up the file /var/log/dpkg.log, find out the entry with the right date, extract the names of the packages and remove ...
2
votes
1answer
65 views

understanding Debian dpkg package version numbers

When I type dpkg -l | grep xserver-xorg, I get list of installed packages and their versions: ii xserver-xorg 1:7.7+3~deb7u1 ii xserver-xorg-core 2:1.12.4-6 ii ...
2
votes
2answers
343 views

How can I purge old kernel packages in Elementary OS?

On my Elementary OS system, dpkg reports a number of kernel packages that aren't installed. (I did an apt-get purge on them previously.) I'd like to have them forgotten about entirely, but I can't ...