dpkg is the package format used by Debian, Ubuntu and other popular GNU/Linux distributions as well as the tools used to work with dpkg packages.
Questions tagged [dpkg]
175 questions
5
votes
3 answers
syntax error: unknown user 'munin' in statoverride file
Server running Ubuntu 12.04 lts
I installed munin the other day on a server. I decided later to remove it with apt-get.
I noticed that not everything was removed from the installation so manually removed the munin web directory and also removed the…

John
- 887
- 4
- 15
- 25
5
votes
1 answer
skipping dpkg-genchange step (Debian)
I'm building binary only package:
dpkg-buildpackage -b -us -uc
The build actually runs successfully, but I have deleted previous version of the package and now dpkg-genchanges complains:
dh_builddeb
dpkg-deb: building package `zzz' in…

LetMeSOThat4U
- 1,371
- 2
- 17
- 35
5
votes
1 answer
On a Debian system, how is the 'installed-size' field of the control file used?
One of the fields included in the control file of a .deb package is the 'Installed-Size', which should inform of the final disk occupation (in kB) of the package in question.
My question is when/how is this information typically used?
Is it e.g.…

bitwelder
- 216
- 3
- 7
4
votes
1 answer
Debian: Get list of installed packages while in rescue mode
How can I get a a list of installed packages from a debian setup which is mounted to /mnt/ while using a rescue mode?
Scenario: Server crashed, only rescue mode possible. Setting up a new server, migrate data from old server to new with rsync.
But…

Xairoo
- 165
- 1
- 4
4
votes
1 answer
Permission Mystery - apt-get and other system utilities have 000 permissions
I'm trying to track down this strange behavoir for years now.
Always after installing software-updates the permissions of a lot of system-tools are broken as you can see below. I am reasonable convinced that the machine is not owned by someone…

kei1aeh5quahQu4U
- 445
- 5
- 22
4
votes
3 answers
Stopping dpkg from removing symlink on package upgrade
I have a debian package that installs a file to /usr/local/java/jre/lib/ext, where /usr/local/java is a symlink to where the jvm is actually installed, in this case /usr/lib/jvm/java-6-sun.
The new version of this package installs the jar elsewhere.…

ryanm
- 141
- 2
4
votes
2 answers
Chef recipe to install varnish 3.0 on ubuntu lucid?
Here's my problem. I want Varnish 3.0, but Lucid only has the 2.1 package available.
So using Chef, I need to make an install recipe that adds the varnish-cache.org repository to the apt sources and installs the varnish-3.0 package.
(I have the…

Mojo
- 955
- 2
- 9
- 24
4
votes
1 answer
How can I install a third-party .deb package in an arbitrary base dir?
I have a .deb which politely installs itself in /opt. For my purposes I would prefer it acted like a first-class citizen and installed itself in the regular filesystem locations.
Is there a way to do this?
This is Ubuntu 10.04.4
update
I have tried…

John Bachir
- 2,364
- 7
- 29
- 37
4
votes
4 answers
Generating a list of installed packages in Ubuntu
I want to backup my list of manually selected packages in Ubuntu, without listing packages installed as dependencies. For example,
dpkg --get-selections
returns a complete list of all installed packages, manually selected as well as dependencies.…

Johan
- 756
- 5
- 20
4
votes
2 answers
Jenkins installation fails on Ubuntu 20.04 with dpkg: error processing package jenkins (--configure)
I was trying to install Jenkins in my server Ubuntu 20.04 with the following commands
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >…

Shahrear Bin Amin
- 155
- 1
- 2
- 8
3
votes
1 answer
Is Debian package ifenslave really necessary for bonding?
This piece of Debian documentation states that package ifenslave is necessary for bonding:
First install the ifenslave package, necessary to enable bonding
Yet I know of two Debian 7.10 (wheezy) hosts where dpkg --get-selections | grep ifenslave…

rookie099
- 375
- 3
- 14
3
votes
1 answer
Whence /etc/php/7.0/apache2/php.ini in Ubuntu 16.04?
Where does the /etc/php/7.0/apache2/php.ini file come from on Ubuntu 16.04?
dpkg -S /etc/php/7.0/apache2/php.ini
returns nothing.
dpkg -S /etc/php/7.0/apache2/
shows that the directory is installed by the libapache2-mod-php7.0 package,…

Jeffrey Froman
- 158
- 6
3
votes
1 answer
ubuntu using "force-yes" with `dpkg -i`
I have an update script for my system that updates from deb files:
find /packages/apt/ -type f -name "*.deb" -exec dpkg --force-depends -i {} \+
The problem is that nginx has a configuration file that was changed - so it prompts:
Configuration file…

Boaz
- 405
- 1
- 11
- 16
3
votes
1 answer
Installing a package to an alternate location using 'dpkg' without root privileges fails with permissions errors
The command line I am using is
dpkg --force-not-root --root /some/other/location -i the_package.deb
but I get an error
dpkg: could not open log '/var/log/dpkg.log': Permission denied
I would have expected the log to have been written…

user993269
- 43
- 1
- 5
3
votes
2 answers
Hook into installation of Debian package
When installing packages with daemons, they often restart that service during installation/upgrade on Debian.
I got a daemon that has some options that can only be set on runtime, not configured. If the Debian package was under my control, I'd…

Izzy
- 795
- 2
- 8
- 31