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
0 answers
212 views

Installing APT via dpkg causes ldconfig not found in path error

The situation began with an issue preventing me from updating, upgrading, or installing anything using apt. In an attempt to resolve this, I utilized dpkg to remove apt and then sought to reinstall it ...
StackExchange Account's user avatar
0 votes
0 answers
34 views

Automatize using bash downloading deb files and dependencies and later extracting them to a unique folder and compress it to use in a live filesystem

I am developing a Live filesystem and need to be able to download deb files with its dependencies which I manually do using: apt download $(apt-cache depends --recurse --no-recommends --no-suggests \ -...
Roberto Carlos Gonzalez's user avatar
1 vote
1 answer
1k views

Apt: list packages installed from a particular "component" (main/contrib/non-free)

I'd like to check which packages were installed from non-free component on my server, following the recent announcement by the Debian team https://www.debian.org/releases/bookworm/amd64/release-notes/...
nodakai's user avatar
  • 311
0 votes
1 answer
94 views

Creating .deb for Go fails

Trying to build a custom package fails like this: ~/deploy# dpkg-buildpackage -us -uc dpkg-buildpackage: info: source package deploy dpkg-buildpackage: info: source version 1.0-1 dpkg-buildpackage: ...
Arnaud F.'s user avatar
  • 133
-1 votes
1 answer
294 views

Install .deb package only if version is higher

Is it possible to tell dpkg to only install a .deb if the new package version is higher than what's already installed on the system? Example: I have htop version 3.0.5 installed and I attempt to ...
Lev's user avatar
  • 158
1 vote
1 answer
1k views

Why would Dpkg::Options --force-confold be ignored?

I have been trying to suppress an interactive dialog with regards to modified config files and conflicts. I have been all over the search results, and everyone keeps copy and pasting the same exact ...
timi's user avatar
  • 21
0 votes
1 answer
1k views

dpkg-maintscript-helper: basename: Too many levels of symbolic links

I am having this error each time I run an apt-get command, I dont know what caused this but I tried every solution I found related to this but still no hope root@vmi575272:/# sudo apt-get autoremove ...
Neji Soltani's user avatar
3 votes
2 answers
2k views

`dpkg -l` to only show installed packages?

On Debian/Ubuntu, dpkg can show me packages, include the version and what's installed (e.g. dpkg -l postgresql\*). But that shows all packages that it knows about, whether installed or not. Is it ...
Amandasaurus's user avatar
  • 32.3k
0 votes
2 answers
7k views

Stuck on "update-initramfs: Generating /boot/initrd.img-5.4.0-92-generic"

I have a problem with uninstalling packages on my server(20.04 LTS). When I run apt remove metricbeat receive this message: root@elk:/home/elk# apt remove metricbeat Reading package lists... Done ...
Siavash Fazli's user avatar
1 vote
1 answer
1k views

Debian 11 dpkg-reconfigure cloud-init does not run the graphical menu

I'm trying to run dpkg-reconfigure cloud-init on Debian 11 After I run the command, this shows up multiple times in the terminal: perl: warning: Please check that your locale settings: LANGUAGE = (...
Philip Scot's user avatar
0 votes
1 answer
260 views

Cannot execute dpkg command in kube-proxy container

I'm currently trying to get a list of all installed debian packages (dpkg) on the k8s.gcr.io/kube-proxy:v1.23.2 container. First I tried to execute dpkg -l in the running container as a part of my ...
Daigo's user avatar
  • 393
0 votes
0 answers
954 views

Can't upgrade or install programs (Unmet dependencies Error(1)) Ubuntu 20.04.3 LTS

As I see my problem is similar to this one libc6 dependency mismatch in Debian 9.12 stretch. Please,advice a solution for my distribution sudo apt-get upgrade Reading package lists... Done Building ...
Rodion's user avatar
  • 1
1 vote
3 answers
3k views

How do I download and install a regular DPKG package in a cloud-init script?

I'm spinning up lightweight containers on a Linux Host using LXD/LXC. The sole purpose of these containers is to host "Dotnet & Dotnet core apps" For a while I've been using Ansible, but ...
shawty's user avatar
  • 303
1 vote
3 answers
277 views

Locally and durably remove some files of a Debian package

Context: On Debian, when hardening PHP I disabled and deleted a few unused PHP modules: for example, for wddx I deleted: /etc/php/7.3/*/conf.d/20-wddx.ini /etc/php/7.3/mods-available/wddx.ini /usr/...
Seb35's user avatar
  • 220
0 votes
2 answers
2k 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 ...
brugia's user avatar
  • 103
-2 votes
1 answer
257 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 ...
Boris Mocialov's user avatar
0 votes
1 answer
416 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 ...
Ertain's user avatar
  • 1
1 vote
1 answer
924 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 ...
Marki's user avatar
  • 2,854
4 votes
2 answers
16k 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://...
Shahrear Bin Amin's user avatar
0 votes
1 answer
295 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 ...
Alhevi's user avatar
  • 1
0 votes
1 answer
959 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 ...
unsafe_where_true's user avatar
1 vote
2 answers
5k 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 ...
Mathieu's user avatar
  • 45
1 vote
1 answer
567 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 ...
jmilloy's user avatar
  • 233
0 votes
3 answers
353 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
Nick eric adelee's user avatar
2 votes
1 answer
1k 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 ...
cherouvim's user avatar
  • 824
1 vote
1 answer
726 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 ...
ma77c's user avatar
  • 115
1 vote
1 answer
396 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 ...
mooky's user avatar
  • 43
1 vote
0 answers
627 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 ...
LetMeSOThat4U's user avatar
0 votes
1 answer
804 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 ...
Andy Castille's user avatar
0 votes
1 answer
917 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 ...
mrpatg's user avatar
  • 151
0 votes
1 answer
159 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 ...
aseques's user avatar
  • 717
1 vote
1 answer
269 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 ...
smaslennikov's user avatar
0 votes
1 answer
641 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, ...
George Sovetov's user avatar
0 votes
1 answer
365 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,...
user1209216's user avatar
0 votes
0 answers
2k 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. ...
Shailesh Sutar's user avatar
1 vote
1 answer
969 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, ...
Slava Kryvel's user avatar
1 vote
1 answer
113 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....
Peter V. Mørch's user avatar
1 vote
1 answer
595 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-...
guettli's user avatar
  • 3,843
-1 votes
1 answer
668 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 ...
Graham Leggett's user avatar
1 vote
1 answer
334 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 ...
Gargravarr's user avatar
3 votes
1 answer
2k 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) ...
rookie099's user avatar
  • 377
6 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
354 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 ...
vastlysuperiorman's user avatar
7 votes
1 answer
606 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 ...
devnall's user avatar
  • 173
1 vote
1 answer
310 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-...
StephenG's user avatar
  • 183
-2 votes
2 answers
2k 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 ...
Alexandru's user avatar
2 votes
0 answers
4k 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 ...
jerin's user avatar
  • 121
1 vote
3 answers
11k 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 ...
ivanleoncz's user avatar
  • 1,731
-2 votes
1 answer
96 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/* . ...
Samuel Tulach's user avatar
3 votes
1 answer
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 ...
Jeffrey Froman's user avatar