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.

793 questions
148
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,117
38
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…
9
votes
1 answer

How to install libxcb

I'm trying to install Awesome's dependencies, specificall libxcb (using Ubuntu 16.04.1). What I did is run: cd ~/Downloads apt-get source libxcb sudo apt-get build-dep libxcb cd libxcb-1.11.1/ dpkg-buildpackage -us -uc Is this the right procedure…
Hölderlin
  • 1,186
6
votes
2 answers

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): unable to make backup link of `./sbin/ifquery'…
Braiam
  • 35,991
4
votes
1 answer

Where do temporary files go while installing a .deb package?

I am creating a .deb package that needs a MySQL database. I am building the package using dpkg-deb --build. While installing I want my post install script to execute an SQL script to set up the database like so: cat setup.sql | mysql -u root -p I…
AlastairG
  • 151
3
votes
1 answer

ERROR: Conf apache2-doc does not exist! When installing libpng12-0

For some reason I'm getting a weird error when trying to install libpng12-0 from a .deb file. Command: dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb; apt-get install -f Error: Setting up apache2 (2.4.25-3+deb9u2) ... info: Executing deferred…
Stefan
  • 35
3
votes
2 answers

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 `libglib2.0-0' (en el fichero …
3
votes
0 answers

parse error in /var/lib/dpkg/status: `Depends' field, invalid package name `python:any'

How can I fix the following error? sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: …
3
votes
1 answer

"../../src/filesdb.c:683: findnamenode: Assertion `(*pointerp)->name[0] == '/'' failed."

I have been trying to update Ubuntu 12.04 on the command line by using the two commands sudo apt-get update sudo apt-get dist-upgrade which ends with the following error: (Reading database ... 70%dpkg: ../../src/filesdb.c:683: findnamenode:…
Alex
  • 5,700
2
votes
1 answer

dpkg -p is not working for some packages (like vim)

I am studying for LPIC exam and one of the tasks in the lab is to find details about package with dpkg -p, concretely about vim with dpkg -p vim. In the solution, the command produces information about the package, but my output is: root@home:~#…
Pan Vi
  • 125
2
votes
1 answer

Behavior of files defined in conffiles

I have created a debian package which I install using sudo dpkg -i package.deb. This works fine and all my files and configurations in the root of the packaged folder get extracted. I then uninstall it using sudo dpkg -r package, the file is still…
jokarl
  • 187
2
votes
1 answer

Behavior of dpkg -S when the argument starts with a slash

dpkg -S /usr/share/doc/tasksel-data # fine dpkg -S usr/share/doc/tasksel-data # fine dpkg -S /share/doc/tasksel-data # not found dpkg -S share/doc/tasksel-data # fine dpkg -S are/doc/tasksel # fine Why on Earth…
Ray Andrews
  • 2,347
1
vote
1 answer

How to build a chroot environment with dpkg --root

I'm trying to build an extremely minimal chroot environment and / or docker base image with strictly only the packages installed to support the one binary I want to run inside. I'm not interested in tools like deboostrap as these seem to force me…
1
vote
1 answer

Use dpkg -i without updating the already installed package

How can I use dkpg -i and it does not update the package if already installed.
1
vote
1 answer

How to make a debian package only installable by specifying the version

I would like my CI/CD to automatically build .deb of my package for each commit, with for instance the version containing the commit hash (e.g. my-package-662b98b), so we can install a specific version by just specifying the version when…
Hugal31
  • 189
1
2 3