Questions tagged [dpkg]

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.

Dpkg is the Debian core package management tool. It manipulates installed packages and performs installation of packages in .deb format. Dpkg originates from the Debian Linux distribution and is used by others such as and .

Dpkg manipulates individual package files. It is rarely used for day-to-day package management; for that, programs based on the APT suite are preferable as they understand package dependencies and can automatically download packages.

776 questions
1156
votes
9 answers

How to install a deb file, by dpkg -i or by apt?

I have a deb package for installation. Shall I install by dpkg -i my.deb, or by apt? Will both handle the software dependency problem well? If by apt, how can I install from the deb by apt?
Tim
  • 98,580
  • 191
  • 570
  • 977
189
votes
12 answers

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

For whatever reasons, I've always used RPM based distributions (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 get a coherent answer (usually get some…
Evan
  • 2,041
  • 2
  • 13
  • 8
175
votes
5 answers

I deleted /bin/rm. How do I recover it?

Just for fun, I thought I would use this command on my Raspberry Pi running Raspbian: sudo rm -f /bin/rm I thought I could just reinstall coreutils: I was wrong! apt-get install --reinstall coreutils gives an error from dpkg, saying it couldn't…
user60684
  • 1,753
  • 2
  • 12
  • 18
137
votes
2 answers

How to uninstall a .deb installed with dpkg?

I installed Unified Remote using dpkg: dpkg -i urserver.deb How do I uninstall it so I can reinstall from scratch?
Tomblarom
  • 2,007
  • 4
  • 15
  • 18
67
votes
5 answers

dpkg cannot find ldconfig/start-stop-daemon in the PATH variable

I was trying to install bsd-mailx utility the package got installed however I am wondering about the error. This is the error I get: Preconfiguring packages ... dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning:…
user87142
  • 679
  • 1
  • 5
  • 4
52
votes
6 answers

What are .deb and .rpm and how are they 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?
deathholes
  • 807
  • 1
  • 6
  • 11
38
votes
3 answers

Installing a .deb package in home directory

Is it possible to install a .deb package completely under my home directory at debian?
free_easy
  • 541
  • 1
  • 4
  • 6
36
votes
6 answers

Feeding input values to dpkg-reconfigure in a 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 (http://www.firebirdsql.org/manual/ubusetup.html), that when using…
Peter Butkovic
  • 559
  • 1
  • 6
  • 14
33
votes
4 answers

Right way to get the list of installed packages matching a pattern?

I'm on system running a (fairly recent-)Debian-based distribution. I'd like to generate a plain list of all installed packages matching a certain pattern. I can do that by, running, say, apt list --installed "linux-image-*" | cut -d/ -f1 but I get…
einpoklum
  • 8,772
  • 19
  • 65
  • 129
33
votes
1 answer

"E: Sub-process /usr/bin/dpkg returned an error code (1) " What does this mean?

I've seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, is possible to solve it? (Reading database ... 81657 files and…
Braiam
  • 35,380
  • 25
  • 108
  • 167
31
votes
2 answers

dpkg: error: cannot remove architecture 'i386' currently in use by the database

I used this command to add i386 arch: sudo dpkg --add-architecture i386 And then immediately after without installing any packages I tried to remove the i386 arch like so: sudo dpkg --remove-architecture i386 And i got the error: dpkg: error:…
olfek
  • 711
  • 3
  • 7
  • 20
29
votes
7 answers

Is it possible to build a Linux distro supporting both RPM and .deb packages?

I am wondering if it is theoretically possible to build a Linux distro that can both support rpm and debian packages. Are there any distros live out there that support both? And if not is it even possible?
alkabary
  • 1,429
  • 5
  • 19
  • 37
27
votes
11 answers

Upgrading nodejs on Ubuntu: How to fix broken pipe error?

Trying to upgrade nodejs on ubuntu 20.10. Ran the official installation instructions: curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejs Got the following error: The following packages will be upgraded: …
Patrick Moriarty
  • 271
  • 1
  • 3
  • 3
27
votes
2 answers

Where to find logs/information about unattended-upgrades (apt)?

Where can I find infos about when the unattend updates/upgrades run and what ist done (or IF something was done)? I want to enable the unattended-upgrades (for security updates) on a debian virtual server and, yeah, on my RaspberryPi, too. Do I have…
MacMartin
  • 2,844
  • 2
  • 18
  • 22
24
votes
2 answers

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?

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 packages priorities, but it doesn't seem to be the case, cause there are packages of all the…
Boris Burkov
  • 3,931
  • 4
  • 25
  • 37
1
2 3
51 52