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.
Questions tagged [dpkg]
175 questions
1
vote
1 answer
Finding documentation for /etc/**/*.dpkg-*
During upgrades, files with these extensions appear in /etc and its subdirectories. I gather that *.dpkg-dist contains the file that was distributed with the currently-installed version of a package, and *.dpkg-new contains the version from the…

intuited
- 415
- 1
- 5
- 12
1
vote
3 answers
dpkg error code 1
I am unable to add/remove any packages in ubuntu karmic
I keep getting the following
Errors were encountered while processing:
crossplatfromui
E: Sub-process /usr/bin/dpkg returned an error code (1)
What do I do to completely remove this package…
user39340
1
vote
1 answer
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/ch-information.html#non-free-split
I briefly…

nodakai
- 311
- 3
- 8
1
vote
1 answer
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 answer without providing additional context.
I have…

timi
- 21
- 3
1
vote
1 answer
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 = (unset),
LC_ALL = (unset),
LC_TIME =…

Philip Scot
- 15
- 4
1
vote
3 answers
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 recently I found that I could actually embed an init script…

shawty
- 293
- 4
- 15
1
vote
3 answers
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…

Seb35
- 220
- 2
- 9
1
vote
1 answer
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 preferably like to have a list like "zypper packages" gives,…

Marki
- 2,854
- 3
- 28
- 45
1
vote
2 answers
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…

Mathieu
- 45
- 2
- 8
1
vote
1 answer
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 find out what the conf selection is called? I…

jmilloy
- 223
- 1
- 4
- 12
0
votes
1 answer
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 going to remove it and install a pre-packaged deb…

Andy Castille
- 103
- 3
0
votes
1 answer
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 before attempting configuration
Errors were…

mrpatg
- 151
- 1
- 3
0
votes
1 answer
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 with their release so I can do some purge before…

aseques
- 718
- 4
- 12
- 28
0
votes
1 answer
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, the problem would be revealed clearly!
Maybe there…

George Sovetov
- 111
- 3
0
votes
1 answer
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, then redirects names to dpkg-repack. It works…

user1209216
- 103
- 4