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.

175 questions
2
votes
2 answers

How can I configure exim4 with a smarthost via puppet?

I have tried to automate the exim setup via puppet. I followed the approach described here, whiched worked for me for a few packages, but for exim I had a problem: one selection was not correctly applied on a fresh system. When setting up exim or…
Kariem
  • 541
  • 2
  • 6
  • 14
2
votes
1 answer

How to get notified by installed/removed packages from dpkg/apt/aptitude?

I'm writing a Python system script and I need to be notified when a program gets installed/upgraded/removed. First of all, I thought to interface my application to an apt-dbus daemon. Unluckily I've not found it, and while I'm waiting for its…
Markon
  • 143
  • 1
  • 1
  • 7
2
votes
1 answer

How to force ansible apt upgrade to install new configuration files (force-confnew)

I have an Ubuntu 18 LTS host which I want to upgrade via ansible and force apt-get dist-upgrade to install any new configurations available overwriting any existing ones, as if I was there pressing the first option of that dialog: I'm looking into…
cherouvim
  • 794
  • 3
  • 21
  • 37
1
vote
1 answer

docker | unknown environment `bash` | sub process /usr/bin/dpkg returned an error code(1)

My goal is to get a docker container running with nordvpn installed and connected. Get docker container going sudo docker pull ubuntu:latest sudo docker run -it ubuntu bash // now im in the docker container apt install update apt install wget wget…
ma77c
  • 115
  • 5
1
vote
1 answer

Configuration of self-made .deb package

I'm trying to make my own debian package to deploy some scripts. I need some parameters from the user, I'm gathering them using debconf. So I made a DEBIAN subfolder, and put control, templates and config files into it. Then I build my package with…
mooky
  • 43
  • 4
1
vote
0 answers

Reinstalling broken kernel 4.9.0.9 on Debian Stretch

Following recent Intel chip bugs I upgraded my Debian Stretch server. Microcode updated OK, but update-initramfs was hanging. So I killed it and tried to remove the kernel before trying to reinstall it. The removal process is hanging too: % dpkg…
LetMeSOThat4U
  • 1,371
  • 2
  • 17
  • 35
1
vote
1 answer

Ubuntu's `dpkg` ignores `Replaces` field of a package

I'm building a newer replacement for a package, libgpg-error. Ubuntu also has a libgpg-error0, which is depended upon by system packages (such as systemd). My package provides everything libgpg-error0 does, therefore I list the following: Package:…
smaslennikov
  • 196
  • 6
1
vote
1 answer

How dpkg check config files when upgrading packages

I'm building .deb packages for my internal tools. And would like to find a right way how to deal with configuration files on upgrade. Currently when I install package-0.2.deb over package-0.1.deb, using apt install ./package-0.2.deb it replaces my…
1
vote
1 answer

Is the snmp source package of correct version missing from security.debian.org?

I'm trying to build the newest snmp packages on debian jessie. However, https://packages.debian.org/jessie/snmp seems to show conflicting information. The page heading reads: Package: snmp (5.7.2.1+dfsg-1+deb8u1 and others) [security] And the link…
Peter V. Mørch
  • 852
  • 7
  • 15
1
vote
1 answer

Sortable list of all packages (dpkg)

I want to dump all installed packages on a system which uses dpkg. Up to now I use dpkg -l. But it has one draw back: Sorting the result does not make sense. Head: root@aptguettler:~# LANG=C dpkg-query -l| sort |…
guettli
  • 3,591
  • 17
  • 72
  • 123
1
vote
1 answer

Debian - Broken package cannot be installed or removed

I have an HP Microserver (Gen8) running Debian Jessie. When I first set it up, I installed the optional HP daemons to see what benefit they gave. One, hp-health, interfaces with the onboard iLO controller. I have since disabled the iLO because it…
Gargravarr
  • 493
  • 5
  • 14
1
vote
0 answers

Avoid Death by dpkg-triggers?

You don't really need to know anything about the technologies I'm using to answer my question. You only need to understand dpkg and its triggers. I'm using an orchestration tool (mcollective) to trigger configuration management (puppet 3) on some…
1
vote
1 answer

How to clear apt-conf list options in apt-get command line options

I'm trying to use the apt-conf #clear syntax to clear the DPkg::Pre-Install-Pkgs options on command-line apt-get, but I haven't had any luck. I've tried stuff like apt-get -o DPkg::Pre-Install-Packages='#clear' Any advice?
StephenG
  • 183
  • 1
  • 7
1
vote
3 answers

Dependency problems while installing Webmin

I'm having problems when installing Webmin for Debian Wheezy. It turns out that, while installing the dependencies which are mentioned on these instructions from Webmin website, I receive the following error when installing apt-show-versions: $…
ivanleoncz
  • 1,643
  • 6
  • 19
  • 32
1
vote
3 answers

Is there an Ubuntu server package for PHP 5.3

It's been some time now since the release of PHP 5.3. I can't wait to work with it, but the Ubuntu developers have decided not to include it in the APT repository until 10.04. I don't want to wait that long, it's ridiculous. What I find strange is…
Bart van Heukelom
  • 1,199
  • 6
  • 21
  • 41