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.
31
questions with no upvoted or accepted answers
3
votes
1
answer
768
views
dpkg broken while upgrading Debian Etch to Lenny
Good day!
While trying to recover a box to lenny it seems I've broken things. It upgrades libc and glib after that dpkg seems to be broken.
I can run apt-get, but it gets segmentation fault from ...
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 ...
2
votes
0
answers
784
views
RabbitMQ start failure
I am trying to start RabbitMQ Server. And any way I do this, I get this error:
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
invoke-rc.d: initscript ...
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 ...
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 = (...
1
vote
3
answers
263
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/...
1
vote
1
answer
904
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 ...
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 ...
1
vote
0
answers
351
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 ...
1
vote
1
answer
302
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-...
1
vote
0
answers
727
views
Create custom package from nginx source - renaming nginx to custom-nginx
My dist is Ubuntu 14.04
use case
I am attempting to create my own packaged nginx called 'custom-nginx'. It needs to install itself into alternative directories as so it does not interfere with the ...
1
vote
0
answers
251
views
Broken apt trying to install Cassandra
While trying to install Cassandra on Ubuntu 13.10, the installation crashed and now I'm stuck with broken (?) apt-get.
Here is the output of an apt-get install -f:
Reading package lists... Done
...
1
vote
1
answer
656
views
Add dpkg .symbols or.shlibs to package made using checkinstall
I have created a simple package using checkinstall of the Oracle Instantclient client libraries, the package installs without problem and is seen in the system.
Problem is, that checkinstall doesn't ...
0
votes
0
answers
156
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 ...
0
votes
0
answers
33
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 \
-...
0
votes
0
answers
933
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 ...
0
votes
1
answer
402
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 ...
0
votes
1
answer
289
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 ...
0
votes
1
answer
900
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 ...
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. ...
0
votes
0
answers
561
views
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 ...
0
votes
1
answer
386
views
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 ...
0
votes
0
answers
98
views
dpkg custom package name from source install
I want to be able to set a custom package name when installing a package using dpkg from source. Running this command:
dpkg -i /path/to/deb/ruby-2.2.0.deb
installs the package as:
ruby-2.2.0 2.2.0
...
0
votes
0
answers
1k
views
Dpkg dependency problems on Unpacking a package for Docker
I am building a debian package atlantis-builder.deb with folder structure as:
- deb
- DEBIAN
- control
- postinst
- postrm
- usr
- bin
...
0
votes
1
answer
73
views
Server shuts down during apt upgrades (specifically libdbus)
I woke up this morning to find my VPS down. I brought it back, couldnt find any reason for it being down (nothing in the syslog, etc) so figured it was my crappy provider. I ran apt-get upgrade and it ...
0
votes
0
answers
352
views
dpkg-query --show [package-name] prints out uninstalled packages
I removed mysql from Ubuntu server completely as below
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser mysql
sudo rm -rf ...
0
votes
1
answer
682
views
Ubuntu dpkg broken
I have an Ubuntu installation where /var/lib/dpkg is empty. Every apt-get command fails with this error :
E: Impossible de verrouiller /var/lib/dpkg/status - open (2: Aucun fichier ou dossier de ce ...
0
votes
1
answer
452
views
postinst script in hand-rolled .deb reported not found
I had a quick dpkg/debian-izing question. I am trying to create a .deb(by hand - mostly for learning purposes) and I have rolled up an ar-chive with the control.tar.gz, data.tar.gz and the debian-...
0
votes
1
answer
176
views
Install from backport with apt fail
So little question, I've got this:
redis-server:
Installed: 2:1.2.6-1
Candidate: 2:1.2.6-1
Version table:
2:2.4.15-1~bpo60+2 0
100 http://backports.debian.org/debian-backports/ ...
-1
votes
1
answer
635
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 ...
-2
votes
1
answer
255
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 ...