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]
169 questions
1
vote
2 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…
![](../../users/profiles/95421.webp)
shawty
- 293
- 4
- 13
1
vote
1 answer
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://pkg.jenkins-ci.org/debian-stable binary/ >…
![](../../users/profiles/588994.webp)
Shahrear Bin Amin
- 115
- 2
- 6
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…
![](../../users/profiles/578303.webp)
Mathieu
- 35
- 1
- 7
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…
![](../../users/profiles/368924.webp)
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…
![](../../users/profiles/27752.webp)
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…
![](../../users/profiles/37991.webp)
aseques
- 688
- 4
- 12
- 26
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…
![](../../users/profiles/208965.webp)
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…
![](../../users/profiles/482664.webp)
user1209216
- 103
- 4
0
votes
0 answers
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. Also it doesn't let me configure dpkg.
/prometheus…
![](../../users/profiles/167266.webp)
Shailesh Sutar
- 1,427
- 4
- 22
- 40
0
votes
0 answers
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 tmpfs mounted partition to build, but that didnt…
![](../../users/profiles/185154.webp)
Ani
- 32
- 12
0
votes
1 answer
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 being installed through either name from apt, so…
![](../../users/profiles/370552.webp)
fornwall
- 103
- 3
0
votes
1 answer
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 to install via automated configuration management…
![](../../users/profiles/90324.webp)
guettli
- 3,113
- 14
- 59
- 110
0
votes
4 answers
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:
# Hypothetical example pseudo-code
if [[…
![](../../users/profiles/16045.webp)
Basil A
- 1,910
- 2
- 17
- 18
0
votes
1 answer
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 CLI umlauts are not work
in a textfile only lowercase…
![](../../users/profiles/195958.webp)
suther
- 143
- 7
0
votes
1 answer
dpkg/apt-get updating a package - downtime?
I was wondering if apt-get/dpkg packages (.deb's) manage downtime at all when updating?
For example, when updating nginx (assuming it's already installed) via sudo apt-get install nginx, it looks to me like there isn't any downtime.
If that's true,…
![](../../users/profiles/143727.webp)
fideloper
- 353
- 3
- 11