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.

Filter by
Sorted by
Tagged with
0
votes
1answer
50 views

Ubuntu 18.04 to 20.04 : Broken Update

I upgraded from 18.04 to 20.04 using : do-release-upgrade After downloading all the packages it asked me if I wanted to keep my version of an existing config file. Trying to exit out of the file, I ...
0
votes
0answers
21 views

Debian: PHP broken, Apache unable to start: libphp7.2.so dissapeared

I tryed to install php7.2-gd and something was broken in the process. Before that I had Apache and PHP working properly. I installed GD library with this command: apt install php7.2-gd (then removed ...
-2
votes
1answer
32 views

Problems after trying to upgrade Python

I am still able to run Anaconda, but the Python installation is suffering some issues after accidentally creating a wrong symbolic link and then trying to upgrade Python version The following ...
0
votes
1answer
20 views

sa-compile update error with rule compilation

I have an install of Ubuntu 18.04.5 and I'm trying to update the sa-compile (version 3.4.2) package because I have a file server set up on it which uses spamassassin (version 3.4.2). Every time I try ...
0
votes
1answer
22 views

apt: list packages with the repositories they are coming from

I've found dpkg-query --showformat="\${Package}\t\${Version}\n" --show \* but it can't show the repo can it? Probably that info is only known to apt. But which apt command to use? I'd ...
0
votes
0answers
273 views

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://...
0
votes
1answer
72 views

Debian package set keep old conffile - not over apt globally

I want to update a own debian-package on different servers. I would like to keep the old conf file, if it exists and not to say always no if prompt is asking what I want to do : The default action is ...
0
votes
0answers
27 views

'confold' options for dpkg and apt ignored

I have a package sudo which has been repackaged with dpkg-repack as follows: sudo dpkg-repack --arch=amd64 sudo The configuration file, /etc/sudoers for this package contains the following custom ...
0
votes
1answer
102 views

Ubuntu: install only a signed verified deb package

What the final goal is: Install a given package securely for a series of servers. We have servers running on different cloud data centers. We install our app on them as deb file. Currently we upload ...
0
votes
2answers
1k views

How to install ProtonMail on Ubuntu Server 20.04?

I have a PRO account at ProtonMail and I want to use it for my web server. I found a tutorial here : https://pychao.com/2018/10/13/use-protonmail-bridge-on-headless-linux-machines/#comment-6612 ...
0
votes
1answer
91 views

debconf-set-selection for openssh-server “disable root login” prompt

I'm trying to set up a non-interactive upgrade (Wheezy to Jessie). I get a prompt to disable root login over ssh, and I want to answer "no". Can I preseed that using debconf-set-selection? How can I ...
0
votes
3answers
205 views

How to remove old kernel on Ubuntu operating system

I am wondering how can I do remove old kernel from Ubuntu operating system. Please refer image screenshot taken. Please advice. Many thanks. list of linux kernel
2
votes
1answer
534 views

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 ...
1
vote
1answer
396 views

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

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 ...
1
vote
1answer
55 views

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 ...
1
vote
0answers
504 views

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 ...
0
votes
1answer
328 views

Installed self-compiled Python 3.7.0 as “python”, how to remove it?

I have made a huge mistake on my Ubuntu 16.04 server. I compiled and installed Python 3.7.0 from source using make altinstall, but I did not include all of the core dependencies I needed, so I was ...
0
votes
1answer
273 views

How to reinstall/fix specific perl module on ubuntu 16.04

During an update, apt and dkpg returned the following error: dpkg: error processing package libperl5.22:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it ...
0
votes
1answer
33 views

How can I check the release of a package in debian?

I am planning to do an upgrade on my system and I have a mix of three releases, there are some packages from wheezy, some from jessie and some of stretch. I would like to get the list of the packages ...
1
vote
1answer
56 views

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 ...
0
votes
1answer
127 views

dpkg: cannot see preinst script output

I faced a problem: dpkg says that preinst script fails with exit code 1 but I see no output. I looked into script itselt (dpkg -e) and found what's wrong. But if there were output of preinst script, ...
0
votes
1answer
226 views

Backup upgradable packages with dpkg-repack on debian

I want to list upgradable packages and automatically repack them to .debs. My try: fakeroot -u dpkg-repack `apt list --upgradable | cut -f1 -d"/" | awk '{if(NR>2)print}'` So it gets package names,...
0
votes
0answers
1k views

Docker don't allow to install using dpkg command

I am trying to install docker cron package in running prometheus docker container. I downloaded cron package but somehow it is not allowing me do that. I downloaded cron package using wget command. ...
1
vote
1answer
221 views

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, ...
1
vote
1answer
67 views

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
vote
1answer
217 views

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-...
-1
votes
1answer
214 views

What is the dpkg equivalent of “rpm -i”?

I have a package installed on an Ubuntu machine, and I need to list the metadata of that installed package to determine where it came from. On a Redhat based machine, "rpm -i [packagename]" will give ...
1
vote
1answer
217 views

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 ...
2
votes
1answer
779 views

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) ...
4
votes
1answer
1k views

dpkg-reconfigure: dialog frontend sets up postfix successfully; non-interactive frontend fails

(N.B. In this question, a leading # indicates a root prompt, not a comment. Also, I have replaced the actual hostname with <myhostname>.) As the debconf (7) man-page states, dpkg-reconfigure ...
1
vote
0answers
166 views

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 ...
5
votes
1answer
305 views

What is the recommended method of installing an arbitrary version of a package using apt?

The Problem: I need a way to install specific, pinned versions of some packages on my Debian system. snapshot.debian.org appears to offer a means to do this, however even after adding a snapshot to ...
1
vote
1answer
145 views

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-...
-2
votes
2answers
1k views

Nginx install don't work [closed]

I have a problem with nginx , I deleted nginx because I did some modifications in nginx.conf and now I can't install it ... apt-get -f install Reading package lists... Done Building dependency tree ...
2
votes
0answers
3k views

Failing to start nfs server

I'm trying to get nfs working on an Ubuntu 16.04.2 LTS. I get the following error: I've already tried reinstalling nfs-common, nfs-kernel-server and other packages following instructions provided in ...
1
vote
3answers
8k views

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 ...
-2
votes
1answer
93 views

Listing all packages, but without addional text

In this time I am working of project, what tell you, what software you have installer and what you can install. In this time I have problem with this command: grep -hn Package: /var/lib/apt/lists/* . ...
3
votes
1answer
1k views

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 ...
4
votes
1answer
384 views

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, ...
1
vote
1answer
5k views

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 ...
2
votes
2answers
11k views

dpkg: error processing package

Im trying to install mongodbserver on ubuntu 14.04LTS with reference to mongodb docs but getting the dpkg related errors root@c3:~# apt-get install -y mongodb-org Reading package lists... Done ...
2
votes
1answer
536 views

apt - update local package

Some months ago I had to install gitlab-ce on a server with Ubuntu 16.04, no access to the public internet, so I downloaded the package from the Ubuntu repository on an other machine and then uploaded ...
0
votes
0answers
372 views

How to speed up dpkg (binary) package build

I will be building debian package multiple times in a day, and each build takes more than 8-9 minutes! I was checking if there is any way to speed it up (dpkg-deb --build, binary pkg) I tried to use ...
1
vote
1answer
6k views

Installing Debian package tools (dpkg-buildpackage) on Amazon Linux?

I am setting up a web server which packages and hosts different installers for client applications on Windows, Mac OS X, and Linux. I am using EC2 so I went with Amazon Linux for my base image. I ...
0
votes
1answer
83 views

Is it possible for a debian package to be installed by multiple names through apt?

I have a package foo-new, which many new users know by its old name foo-old, so they try to execute apt install foo-old which does not work. Is it possible through a control field to make a package ...
0
votes
1answer
262 views

RPM to DPKG: Underscore in Package Name

I have a custom RPM which I convert to DPKG using the tool alien. It works with one annoyance: The input is called "foo_bar.rpm" and the output is called "foo-bar.dpkg". We have a list of packages ...
5
votes
1answer
311 views

debian/ubuntu: Prevent UI prompting in command-line apt-get

So, in order to prevent console-UI (newt, snack, dialog) prompts during the dpkg post-install, you have to do something like: debconf-set-selections <<< 'mysql-server mysql-server/...
0
votes
4answers
1k views

Bash if condition to check if a ubuntu package needs an upgrade?

I need a bash line to check if a ubuntu package needs an upgrade or not. For example, I want to check if the package 'firefox' needs an upgrade using dpkg or apt-get commands. Hypthetical Example: #...
0
votes
1answer
75 views

German Umlauts (but only uppercase) are broken

I have a proxmox3 server. I login via SSH. Umlauts (öäüÜÖÄ) works well - nevertheless if upper or lowercase. Then I login in my openvz node (debian wheezy) via: vzctl enter 100 In this node, on ...
2
votes
1answer
5k views

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 ...