Skip to main content

Questions tagged [dpkg]

The base software for Debian/Ubuntu/Mint package management. Use this tag for questions about dpkg and its companion utilities and the .deb file format.

Filter by
Sorted by
Tagged with
1 vote
0 answers
45 views

How to easily find all executables linked against certain libc6 version?

Background It is an Ubuntu-based OS, where I manually built & installed Arch's pacman, added Arch's repositories to it, and ran pacman --force -S git to test it out. It was a mistake, yes. git had ...
melonfsck's user avatar
0 votes
0 answers
17 views

KDE Neon pkcon update sub-process error

I'm on KDE Neon and running sudo pkcon update, which is giving the following error: Fatal error: Error while running the transaction: E: Sub-process /usr/share/dpkg/scripts/steam-launcher.sh pre ...
Rob Hyndman's user avatar
0 votes
1 answer
33 views

APT Troubleshooting Questions

I recently ran into some dpkg errors will running sudo apt full-upgrade on my VM (I ran update beforehand). I don't have the error message handy, but I remember it saying dpkg returned an error code ...
Matt's user avatar
  • 1
1 vote
2 answers
178 views

apt upgrade on wsl kali linux taking forever

I've just installed kali linux on a windows 11 laptop using the wsl --install -d kali-linux command on powershell. Everything was fine, Running apt update works normally, but when I run apt upgrade it ...
tfk's user avatar
  • 21
0 votes
1 answer
27 views

Equivalent of dpkg-statoverride for RPM-based distros

If you just chmod a file installed by a package (e.g., chmod 4750 /usr/bin/foo), future updates to the package can wipe out your change. On deb-based distros like Debian and Ubuntu, dpkg-statoverride ...
Joseph Sible-Reinstate Monica's user avatar
0 votes
2 answers
102 views

Debian, how to tell apt to ignore a specific package it thinks is broken?

After installing the package xfce4-screensaver, apt and Synaptic keep telling me it's broken and sometimes even trying to automatically uninstall it. Because it has missing dependencies that it can't ...
cereallain's user avatar
5 votes
1 answer
248 views

Force non-interactive `apt-get install` to fail on config file conflict

I'm doing unattended / non-interactive package installations via DEBIAN_FRONTEND=noninteractive apt-get install -y my_package This works as attended in most cases, but still gives me an interactive ...
Florian Brucker's user avatar
1 vote
1 answer
51 views

How to set up deb question priority with an apt flag?

We have the nice tool dpkg-reconfigure to re-ask install configuration questions of a single package. For example, by dpkg-reconfigure -plow something I can re-configure the package something, i.e. re-...
peterh's user avatar
  • 9,848
0 votes
1 answer
38 views

Check for non-interactive mode in Debian package maintainer scripts

If I'm writing a Debian package maintainer script (such as a pre-install script) for a package I create, how can I make the script determine if it is supposed to be running in non-interactive mode (e....
Jason C's user avatar
  • 1,485
0 votes
0 answers
72 views

Debian upgrade: How can one verify all packages that apt-get full-upgrade wanted to install have indeed been installed (ie after interrupted upgrade)?

I upgraded from Debian11/KDE to Debian12 by running sudo apt-get upgrade --without-new-pkgs, freeing up some disk space on the partition (this can also break the upgrade for some users!), then running ...
mYnDstrEAm's user avatar
  • 4,398
3 votes
1 answer
383 views

CentOS ls uses dpkg

I am logged in as a user on an CentOS version 6.9 HPC. When I try the ls command, I get: /usr/local/bin/ls: line 96: dpkg: command not found Abort, this script is only intended for Ubuntu-like ...
R Walser's user avatar
  • 133
0 votes
0 answers
53 views

Encrypt .deb content

I have a .deb package that I want to install in my customers devices. Currently I have these packages in a private repository that can only be accessed with a private key. But I also want to prevent ...
Frixer's user avatar
  • 51
0 votes
1 answer
153 views

Fake /etc/os-release for an application to make it think it runs on Ubuntu instead of Debian

I have to use a third party software which officially supports RHEL, SuSE (SLE[DS]) and a certain Ubuntu LTS release. Unfortunately, I use Debian on all my systems. If I run the installer script of ...
MrSnrub's user avatar
  • 135
1 vote
1 answer
47 views

Package installation failure and rollback options

I'm trying to understand how the creation of packages (rpm, deb, dpkg) work and what the architecture supports and doesn't. Right now I struggle figuring out what happens when the installation or ...
jrs's user avatar
  • 113
0 votes
1 answer
553 views

How do I resolve a missing GPG key for an apt repo in Debian 12?

I'm currently running Debian 12 and am trying to download some .deb packages for a Debian 8.7 machine that has no access to the internet. To do this, I've configured a new apt repo that targets the ...
Izzo's user avatar
  • 971
0 votes
1 answer
36 views

What is the proper method to install a Debian package onto a device stuck on a private network? [duplicate]

Here is my scenario: I want to install iptables onto an embedded Linux device that is located on a private network with no access to the internet. I can place my Windows PC onto this network and then ...
Izzo's user avatar
  • 971
0 votes
1 answer
133 views

Debian Bullseye - dependency problems

After an upgrade on Debian Bullseye, I got this error : Errors were encountered while processing: python3 python3-ldb apt-listchanges lsb-release python3-mediainfodll caja-mediainfo python3-...
emilie zawadzki's user avatar
0 votes
0 answers
214 views

building .deb file using dpkg-deb, unable to set permission that I need

I have built a Python applicaton for the internal use within the company using Pyinstaller. Now I want to export it as .deb package for people to install. The file tree, excluding the source files, ...
Jokubas11's user avatar
1 vote
1 answer
265 views

How to add busybox with full version of commands?

I'm building a custom linux for an embedded device. For development purposes I added apt to my filesystem. The command works fine, I was able to install some package on the fly like curl, the problem ...
Edher Carbajal's user avatar
0 votes
1 answer
70 views

Is there a command to show files that have been deprecated by Debian packages?

My issue born from a recurrent situation, example: I have found a file (/etc/modprobe.d/radeon-kms.conf) on a recently updated Debian installation and I've noticed that shoulnd't exists anymore (...
AlexKidd's user avatar
0 votes
1 answer
2k views

kernel panic after after parrotOS upgrade

after attempting sudo apt upgrade on a fresh install of parrot os, new kernel update is present but trying to boot into it from grub gives gives me a kernel panic. here is what i tried and with what ...
xoity's user avatar
  • 3
0 votes
0 answers
177 views

dpkg error grub-efi-amd64-signed

I am currently facing a perplexing issue while attempting to install DragonOS on VMWare, and despite several efforts, I have been unable to resolve the error outlined below. I have performed a fresh ...
Apis's user avatar
  • 1
2 votes
1 answer
74 views

Why is it necessary to run 'dpkg-reconfigure' on bodged installs?

I recently became acquainted with the restorative power of dpkg-reconfigure following a bodged installation of the GNU mailutils package. At the end of the installation process a dialog (ncurses?) ...
Seamus's user avatar
  • 3,087
0 votes
2 answers
860 views

Unable to install any packages Ubuntu 23.10

All of a sudden, I am unable to install anything successfully with apt with the below error: The following packages will be upgraded: linux-headers-6.5.0-10-generic 1 upgraded, 0 newly installed, 0 ...
LtMuffin's user avatar
0 votes
1 answer
59 views

Allowing just switch ranges in gcc

I'm trying to clean up some C code and build a Debian package. The makefile was set to use -Wall but debuild uses -Wpedantic . As it happens this was "a good thing" as the code was casting ...
GraemeV's user avatar
  • 178
0 votes
0 answers
46 views

am getting sub-process error code everytime am installing any kind of tool

dpkg: error processing package postgresql-16 (--configure): dependency problems - leaving unconfigured Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-...
COSMIC THEORY's user avatar
0 votes
0 answers
140 views

Debian, keyboard still in QWERTY after keyboard-configuration

I installed debian on a Virtualbox machine running on my macbook pro. However, I tried to change from QWERTY to AZERTY using sudo dpkg-reconfigure keyboard-configuration. Here is the content of the `/...
Mathieu Rousseau's user avatar
0 votes
1 answer
401 views

I have 2 versions of Emacs installed in Debian. How do I remove one of them?

This is a (self-contained) follow-up query to this query: Location of Emacs 29 in a Debian 12 system I am on Debian 12. First I installed the Emacs in Debian 12, which defaults to Emacs 28.2. Then I ...
user2338823's user avatar
1 vote
1 answer
1k views

Location of Emacs 29 in a Debian 12 system [duplicate]

I have installed Emacs 28.2 in Debian 12. I have also installed Emacs 29.1 from bookworm-backports. ~$ aptitude show emacs Package: emacs Version: 1:29.1+1-5~bpo12+1 State: ...
user2338823's user avatar
-1 votes
1 answer
103 views

I would like to audit an Ubuntu server to get a list of all files executed and all files read by the kernel

I want to be able to instrument and analyze at a prebuilt server and get a list of every file read. I would also like to determine which of those files were read by the kernel to execute a program, ...
kkron's user avatar
  • 109
1 vote
1 answer
414 views

Unattended-Upgrades configuration for custom repo only

OS: LMDE 5 (based on Debian 11 Bullseye) To keep the system tidy, I use separate files to overrides the original distribution/developer configuration files wherever possible. This also prevents ...
DarekH's user avatar
  • 97
-1 votes
1 answer
94 views

Errors when unpacking binutils-common

So when i update kali linux with sudo apt update it shows this Get:1 file:/run/live/medium kali-last-snapshot InRelease Ign:1 file:/run/live/medium kali-last-snapshot InRelease Get:2 file:/run/live/...
gatof's user avatar
  • 1
2 votes
2 answers
266 views

A shorter way to list all packages matching a string

When I search for a list of packages, I usually use dpkg -l|grep string|cut -d" " -f3|xargs libdouble-conversion3:amd64 libestr0:amd64 libeval-closure-perl libio-stringy-perl libunistring2:...
rubo77's user avatar
  • 29.4k
1 vote
1 answer
215 views

building Debian package from Buster fails on Bookworm

I need to use older version of linphone on Debian 12. The version in bookworm is 4.4.10-3, and I actually need 3.12.0, which is available in Buster. On my bookworm build machine, I changed the sources,...
Martin Vegter's user avatar
0 votes
0 answers
49 views

Reinstalling dpkg and apt on Debian 12 [duplicate]

How to completely reinstall dpkg and its apt front-end? I tried to run sudo apt remove virtualbox , and my output was: Reading list of packages ... done Dependencies tree generation ... done Reading ...
Tux's user avatar
  • 3
2 votes
0 answers
536 views

Debian upgrade failed - now locked out of sudo

I was trying to upgrade a VPS from Buster to Bookworm. I followed these steps: 44 20/Aug - 21:26:11 sudo apt update && sudo apt upgrade -y 45 20/Aug - 21:26:38 sudo apt --purge ...
steve's user avatar
  • 133
1 vote
1 answer
614 views

How to build a chroot environment with dpkg --root

I'm trying to build an extremely minimal chroot environment and / or docker base image with strictly only the packages installed to support the one binary I want to run inside. I'm not interested in ...
Philip Couling's user avatar
1 vote
1 answer
98 views

Do you have to install newer Debian versions to use newer software?

I am still on Debian Buster, which has old libraries in its repository. I am unable to use newer software, because for example, they require a libc.so.6 library with version GLIBC_2.30, which doesn't ...
reign's user avatar
  • 113
0 votes
1 answer
509 views

dpkg: overwrite file in another package

I am making a DEB package that relies on avahi-daemon. I need to set its configuration, but I got this error message: trying to overwrite '/etc/avahi/avahi-daemon.conf', which is also in package avahi-...
xrfang's user avatar
  • 215
2 votes
1 answer
2k views

apt/dpkg not working due to linux-image/firmware problems

I recently installed Debian 12. Apt was working, but was complaining about a not fully configured linux-image. I tried to remove the image and upgrade, but now I'm unable to us apt or dpkg to remove ...
Frail Rearranger's user avatar
1 vote
1 answer
69 views

How can I get the current apt command called in a DPkg::Pre-Invoke script?

I understand I can use DPkg::Pre-Invoke to run a script/command before apt does it's thing. DPkg::Pre-Invoke { "/tmp/pre-invoke.sh"; }; In my script, I want to get the full apt command that ...
IMTheNachoMan's user avatar
-1 votes
1 answer
117 views

Manually installing packages in thin read-only distributions

I am trying to install our product in a NoTouchOS - a Raspberry Pi thin client OS. Given the fact it is a thin client, many libraries do not come out-of-the-box, such as apt, sudo... I am trying to ...
Veverke's user avatar
  • 368
2 votes
2 answers
540 views

why this package is not proposed to me to remove?

As I understand it, if a package is auto-installed and has no other packages depending on it, the system should offer to remove it. why doesn't this happen in this case? :~$ sudo apt list --installed |...
Alessandro Scarozza's user avatar
2 votes
2 answers
401 views

After upgrading to Debian 12, duplicated files in /lib/x86_64-linux-gnu/ and /usr/lib/x86_64-linux-gnu/

I just upgraded my system from Debian 11 to 12, by following this guide from cyberciti. This system has been kept up-to-date for more than 9 years, so it has been through at least 4 major upgrades (...
A.L - say no to AI's user avatar
0 votes
1 answer
4k views

How to reinstall / repair Debian after a failed upgrade?

I followed this wiki tried to upgrade Debian 10 to 11 then 12, but for some reason some part messed up the system and now it can't boot (kernel panic) and entire system is messed up: no apt available, ...
Draven's user avatar
  • 1
0 votes
0 answers
308 views

Debian very unstable after disastrous upgrade - how to recover GRUB, missing executables and more?

I upgraded Debian stable from 11 to 12 today by sudo apt-get upgrade. Thousands of packages were downloaded. However while packages were being upgraded the system froze. I manually shutdown by ...
juo9973's user avatar
0 votes
1 answer
95 views

Differences between gcc and gcc-X

I'm using Ubuntu 18.04.6 LTS and when I use dpkg -l command, the result contains the following entries: ii gcc 4:7.4.0-1ubu amd64 GNU C compiler ii gcc-7 7.5.0-3ubunt ...
Yiyang Yan's user avatar
0 votes
0 answers
1k views

How to install a Debian package in a target directory manually

I would like to learn how to manually install a Debian package (e.g., a .deb file) into a specific directory, such as /targetdir, as if it were the root. Later, I would like to relocate the ...
LucaM's user avatar
  • 1
0 votes
1 answer
89 views

Find correct license when several binaries share the same copyright file

I'm trying to automatically obtain a list of licenses of installed packages in my Debian distribution. I'm doing so by scanning the copyright files in /usr/share/doc/as explained in the answers to ...
fa__'s user avatar
  • 151
0 votes
2 answers
365 views

Installing .deb package twice calls postrm

I am toubleshooting a basic .deb package built from the include script below, specifically its operation if it is installed twice via dpkg -i <package-name>. I found that the postrm script is ...
I'm Root James's user avatar

1
2 3 4 5
17