Questions tagged [dpkg]

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.

169 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
  • 877
  • 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,159
  • 2
  • 14
  • 29
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
  • 65
  • 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
  • 4
  • 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
  • 925
  • 1
  • 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,344
  • 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
  • 746
  • 5
  • 20
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
  • 345
  • 2
  • 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,…
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
  • 786
  • 2
  • 8
  • 29
3
votes
1 answer

Prevent update-manager from overwriting my Configs

After installing a package with apt-get and then overwriting some package specific config files, whenever the system upgrades itself it tries to overwrite my custom configs with the package default ones. Is there a better way to specific custom…
Alix Axel
  • 2,653
  • 6
  • 28
  • 28
3
votes
1 answer

What to do when local usernames conflict with network usernames

We use Puppet to manage our Linux desktop machines and SSSD to authenticate our users against a central authentication system. Recently when setting up a few new machines we found that puppet was halting in the middle of installing software…
OEP
  • 183
  • 9
1 2
3
11 12