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
1 answer
46 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
  • 37
-1 votes
1 answer
25 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
232 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
  • 27.9k
1 vote
1 answer
91 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
46 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
1 vote
0 answers
64 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
  • 123
1 vote
1 answer
78 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
40 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
  • 13
0 votes
1 answer
61 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
  • 163
1 vote
1 answer
432 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
22 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
42 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
  • 348
2 votes
2 answers
285 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
238 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's user avatar
  • 1,502
0 votes
0 answers
538 views

How to reinstall / repair entire Debian through rescue mode after upgrade failure without wipe the disk?

I followed this wiki tried to upgrade Debian 10 to 11 then 12, but form some reason some part messed up the system and now it can't boot (kernel panic) and entire system messed up: no apt available, ...
Draven's user avatar
  • 1
0 votes
0 answers
149 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
45 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
247 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
46 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
  • 141
0 votes
2 answers
92 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 ...
Root James's user avatar
0 votes
1 answer
44 views

How does this script actually create the new user's directory structure

I'm looking at the bash script included below. It accepts a couple of command line arguments and creates a .deb package that, when executed, using the sudo dpkg -i created-file.deb command, a new ...
Root James's user avatar
0 votes
1 answer
237 views

dpkg: warning: files list file for package 'libecryptfs1'

OS: Linux Mint 20.3 I usually get this error whenever I do sudo apt update. dpkg: warning: files list file for package 'libecryptfs1' missing; assuming package has no files currently installed But it ...
Forums896's user avatar
1 vote
1 answer
88 views

How to remove APT and dpkg from a Debian installation?

A couple of years ago I made a live-image for personal uses (a mixture of use cases) using debootstrap, chroot, and squashfs-tools Now i want to re-design the distro, update the software in it, add ...
カルロサグ's user avatar
0 votes
0 answers
29 views

sbuild leading to Can't opendir(): Operation not permitted

I am running sbuild command by treating the current debianized source directory as the argument. This is the behaviour when we just run sbuild without specifying an argument. I have added the user (in ...
sriganesh's user avatar
  • 101
0 votes
1 answer
45 views

How to build GNU Hello .deb?

I can't seem to work out how to build GNU Hello on Ubuntu 22.04. To reproduce, start a Docker container using docker run --interactive --rm --tty ubuntu:22.04, then run the following: apt-get update ...
l0b0's user avatar
  • 50.9k
1 vote
1 answer
40 views

Is there a way to "catch" /usr/bin/dpkg errors in a CI script and retry a few times?

I have a multi-stage, multi-arch Docker build process using Docker's debian:latest image and the Chromium/Firefox packages from Debian Sid. Sometimes when building the images, something fails with ...
jmort253's user avatar
  • 285
0 votes
0 answers
49 views

Accidentally delete DPKG (exclui sem querer o DPKG)

E: Sub-processo dpkg --set-selections retornou um código de erro (100) E: Sub-process dpkg --set-selections returned an error code (100) E: Couldn't clean the currently selected dpkg states
Diego Serafim's user avatar
0 votes
0 answers
183 views

dpkg: error processing package install-info

I updated to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-144-generic x86_64) and when I ran a couple troubleshooting updates, apt-get update, I received an error regarding the following code. I went to a ...
manongdave's user avatar
0 votes
0 answers
28 views

Is there a flatpak command equivalent to "dpkg --get-selections"?

When I make a backup, I have a script that I've written to document packages that have been installed. I rather like that dpkg can use the list generated by the --get-selections option as a source for ...
Ubuntourist's user avatar
0 votes
1 answer
35 views

Package availible but not in dpkg.log

I need to know when a package was installed. I search /var/log/dpkg.log* for that and search for the installation-entry. Sometimes I have a package installed that is not part of the log. I never ...
chris01's user avatar
  • 519
0 votes
1 answer
621 views

DKMS Modules Installation Error - Pop!_OS 22.04 LTS

I am getting the following error everytime I do $sudo apt upgrade The following packages have been kept back: libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0 libgoa-backend-1.0-1 ...
ROHIT PATNAIK's user avatar
0 votes
1 answer
101 views

Installing pyasn to Kali produces error "python 2.7 breaks python-pyasn1 and is installed"

sudo dpkg -i python-pyasn1_0.4.2-3build1_all.deb I try to depackage this deb, yet I am on kali (debian) I get error python 2.7 breaks python-pyasn1 and is installed dpkg: error processing package ...
Ahmed Can Unbay's user avatar
0 votes
1 answer
46 views

How do I check package version for a given distribution version from the cli?

Related: How do I check package version using apt-get / aptitude? How do I do this for a given variable debian release, from the command line? Using either apt, dpkg, or aptitude is fine. Ideally, ...
aphid's user avatar
  • 179
3 votes
2 answers
89 views

What is the motivation or cause behind inconsistent configuration file modification screens?

Through updating debian OS on various hosts (apt-get dist-upgrade), I've seen many often small variations of the same screen; when a configuration file has been modified, it will tell you a new ...
aphid's user avatar
  • 179
1 vote
2 answers
360 views

What is the RPM equivalent to `dpkg --compare-versions ...`?

Debian offers a way to compare Debian compatible versions using the dpkg command like so: dpkg --compare-versions <version> <operator> <version> For example, if you want to know ...
Alexis Wilke's user avatar
  • 2,715
1 vote
0 answers
214 views

build Debian package "chromium 108" on Debian Buster

I am trying to build chromium 108 for Debian Buster. The package only exists for Debian Bullseye, so on my Debian Buster build machine, I need to change the /etc/apt/sources.list to bullesyse and ...
Martin Vegter's user avatar
2 votes
1 answer
504 views

"Tried to start delayed item" ... "but failed" in output of apt-get install

I've recently started to use new distro (Linux Mint 21, which I've read is based on Ubuntu 22.04). And when installing some packages I often see many same lines near end of apt-get install output: &...
Alex Martian's user avatar
0 votes
1 answer
91 views

Debian packaging: Version-dependent `Provides` relationship

Suppose I have a .deb package alpha, which currently depends on beta 1.0.1 and gamma 1.0.1. My newer version, beta 2.0.1 now includes all of gamma. Is it possible to have a version-dependent Provides ...
erd's user avatar
  • 1
0 votes
0 answers
166 views

dpkg: error: cannot stat pathname '/tmp/apt-dpkg-install-Ktak9B/14-libobjc4_12.2.0-9_amd64.deb': Too many levels of symbolic links

I recently tried to update packages. I got an error, though. The error was dpkg: error: cannot stat pathname '/tmp/apt-dpkg-install-Ktak9B/14-libobjc4_12.2.0-9_amd64.deb': Too many levels of symbolic ...
PridᎶᎶ's user avatar
0 votes
1 answer
337 views

How to install locally all sudo packages in my home directory? [duplicate]

I am blind to Linux, and I'm sorry if my question is too silly. So I have access to a Linux server but cannot install any sudo packages as I have no administration right. Thus, I thought I could ...
data's user avatar
  • 103
0 votes
1 answer
361 views

Help for script which install on Debian a package, only if is not installed

I'm making a script to build a git package in Debian format (.deb). This package requires the following debian packages: cmake, libturbojpeg0-dev, libjpeg62-turbo-dev, libglx-dev, opencl-headers, ...
elbarna's user avatar
  • 12.1k
5 votes
1 answer
6k views

The following packages have unmet dependencies: containerd.io

I am trying to install the following packages on my brand new ubuntu 22.04 installation. sudo apt install docker.io docker-compose -y However I get an error about The following packages have unmet ...
desmond13's user avatar
  • 251
0 votes
1 answer
746 views

Cross-compiling a Debian package from source

There is a package I build from source, following this recipe: echo "deb-src http://archive.ubuntu.com/ubuntu focal main" >> /etc/apt/sources.list echo "deb-src http://archive....
rgov's user avatar
  • 173
1 vote
1 answer
523 views

dpkg: error processing package fontconfig (--configure)

fontconfig issues # dpkg --configure -a Setting up font config (2.13.1-4.5) ... Regenerating fonts cache... failed. See /var/log/fontconfig.log for more information. dpkg: error processing package ...
Soheil's user avatar
  • 13
0 votes
0 answers
1k views

Ubuntu python configuration or dpkg: error while cleaning up:

for a week now I can't install anything on my machine, I also have an error when I want to update apt Thanks in advance. sudo apt update (same thing with sudo apt upgrade) : Get:1 http://security....
val.74k's user avatar
1 vote
1 answer
1k views

Installing a deb file build with checkinstall on Ubuntu into a docker container based on Debian

I have compiled a C++ software on my Ubuntu 22.04 laptop, and used checkinstall to install it. This build the corresponding .deb file and that's nice. But now I want to install that .deb file into a ...
s.k's user avatar
  • 429
0 votes
1 answer
369 views

Use dpkg -i without updating the already installed package

How can I use dkpg -i and it does not update the package if already installed.
Sebastian's user avatar
1 vote
1 answer
943 views

apt/apt-get update leads to error

Edited: Operating System: Debian GNU/Linux 11 (bullseye) Debian version: 11.5 apt history and dpkg history I tried to install multiple packages using dpkg somefile.deb but it hasn't completed as ...
Mohammad Qodrati's user avatar
0 votes
1 answer
125 views

Files list file for one particular package repeatedly breaks

Using Zorin OS Lite. I keep getting this error when installing packages. dpkg: unrecoverable fatal error, aborting: files list file for package 'mutter-common' contains empty filename E: Sub-process /...
A. B.'s user avatar
  • 123
0 votes
1 answer
77 views

Is it possible to always have the latest version of the deb package of vs code installed?

I want to install the latest version of vs code in Pop OS. The apt repository doesn't offer the latest version and I don't prefer flatpaks/snaps so installing the deb package of vs-code from the ...
Archit's user avatar
  • 1

1
2 3 4 5
16