63
votes
Upgrading nodejs on Ubuntu: How to fix broken pipe error?
All of this didn't work for me.
What worked was:
sudo dpkg --remove --force-remove-reinstreq libnode-dev
sudo dpkg --remove --force-remove-reinstreq libnode72:amd64
via
43
votes
Is it possible to build a Linux distro supporting both RPM and .deb packages?
I didn’t think there are any distributions out there which support both natively, but it turns out there is one in development, Bedrock Linux (thanks to iMalinowski for the information). On other ...
40
votes
Accepted
zst compression not supported by apt/dpkg
Debian’s dpkg package didn’t support zstd compression prior to version 1.21.18. Support was added just in time for Debian 12.
I’m guessing you’ve added a Ubuntu PPA; you shouldn’t use those with ...
33
votes
Automatically install unmet build dependencies as detected by dpkg-checkbuilddeps
I use mk-build-deps from the devscripts package for this (you’ll also need equivs).
mk-build-deps
will build a package depending on all the build-dependencies in the debian/control control file; that ...
30
votes
Accepted
How to convince dpkg that libssl1.0.2 is >= libssl1.0.0?
libssl1.0.2 and libssl1.0.0 are different packages, providing incompatible libraries; that’s why you can’t satisfy a libssl1.0.0 dependency using libssl1.0.2.
To satisfy your package’s requirements, ...
30
votes
zst compression not supported by apt/dpkg
If you are running Debian < 12 and need to install a .deb package that uses zstd, you can repack it:
# Extract files from the archive
ar x some-package.deb
# Uncompress zstd files an re-compress ...
28
votes
Right way to get the list of installed packages matching a pattern?
$ apt list --installed "linux-image-*" 2>/dev/null |awk -F'/' 'NR>1{print $1}'
linux-image-3.16.0-4-amd64
linux-image-4.11.0-1-amd64
linux-image-4.12.0-1-amd64
linux-image-4.13.0-1-amd64
linux-...
27
votes
Accepted
Is it possible to build a Linux distro supporting both RPM and .deb packages?
Bedrock Linux does this. Not saying I've done this, or that it is a good idea, but it is being done.
25
votes
Accepted
How may I obtain information on a specific Debian package (.deb) file?
To get lots of information about the package use -I or --info:
dpkg-deb -I package.deb
dpkg-deb --info package.deb
To only get the version use, -f or --field:
dpkg-deb -f package.deb Version
dpkg-...
21
votes
How to check progress of unattended-upgr process? Should I kill it?
You can see the latest entry in the log file e.g. /var/log/unattended-upgrades/unattended-upgrades-dpkg.log, try
tail /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
20
votes
Get package sources and repository link
for latest version:
apt-get download --print-uris package | cut -d' ' -f1
for specific version
apt-get download --print-uris package=version | cut -d' ' -f1
20
votes
Upgrading nodejs on Ubuntu: How to fix broken pipe error?
You need to enable the universe repository which provide the missing dependencies libnode72 (= 12.18.2~dfsg-1ubuntu2) and nodejs-doc (12.18.2~dfsg-1ubuntu2) in Ubuntu 20.10 :
sudo add-apt-repository ...
19
votes
Accepted
Any possible conflict between using both --force-confold and --force-confnew with dpkg?
This is addressed in the dpkg man page:
confnew: If a conffile has been modified and the version in the package did change, always install the new version without prompting, unless the --force-...
18
votes
Accepted
Is there an apt --force-overwrite option?
The correct (tm) solution to this is to fix the dependencies of foo-a and foo-b by fixing debian/control with:
Package: foo-b
Replaces: foo-a (<< 2.0)
Breaks: foo-a (<< 2.0)
Reference: ...
17
votes
How to find out the variable names for debconf-set-selections?
You can get the variables for a specific installed package using debconf-show packagename
ex.
$ sudo debconf-show mysql-server-5.7
* mysql-server/root_password: (password omitted)
* mysql-server/...
16
votes
Abort failed `dpkg --configure -a`
Try first by manually cleaning the package:
sudo mv /var/lib/dpkg/info/PACKAGE.* /tmp/
sudo dpkg --remove --force-remove-reinstreq PACKAGE
16
votes
Accepted
Force non-interactive "dpkg --configure" when using apt-get install
This kind of configuration file change conflict is dealt with by dpkg, and you can force it to choose the default option using the --force-confdef option. Do heed the warning from the documentation ...
14
votes
How to check if HDF5 is installed?
You can try running h5cc -showconfig:
SUMMARY OF THE HDF5 CONFIGURATION
=================================
General Information:
HDF5 Version: 1.8.12
14
votes
Right way to get the list of installed packages matching a pattern?
aptitude supports searching among all packages known to the package management tools, installed or otherwise, using regular expressions, without extraneous output, and can be told how to format its ...
13
votes
Right way to get the list of installed packages matching a pattern?
Here's one good way to do get the list of installed packages on a Debian-based system:
dpkg -l | grep ^ii | awk '{print $2}'
The output lines of dpkg -l can be trusted to be sane.
The pattern ^ii ...
13
votes
Upgrading nodejs on Ubuntu: How to fix broken pipe error?
Just delete nodejs-doc:
sudo apt remove nodejs-doc
12
votes
dpkg cannot find ldconfig/start-stop-daemon in the PATH variable
somehow I had the same problem.
Please read your error message carefully and you will find the solution.
There is a note that says:
Note: root's PATH should usually contain /usr/local/sbin, /usr/...
11
votes
Is it possible to build a Linux distro supporting both RPM and .deb packages?
No, such a monster should not be built. Unlike, say, an MacOS application bundle, which typically includes everything the application needs to run on the operating system, RPM and .deb packages are ...
11
votes
Accepted
How to install a specific version of GCC in Kali Linux?
How to install a specific version of GCC in Kali Linux?
GCC 6 is available on kali linux it can be installed as follow :
apt install g++-6 gcc-6
To switch between gcc6 and gcc7
update-alternatives --...
11
votes
Accepted
Conditionally enabling systemd files through Debian packaging
You can use systemd presets to affect whether a systemd service will default to being enabled or disabled at installation time.
The Debian presets default to enabling all services as they're ...
11
votes
What does a tilde (~) mean at the end of a dependency requirement in a deb file or in apt?
The documentation on the Version control field states (see the page for the full algorithm):
First the initial part of each string consisting entirely of non-digit
characters is determined. These two ...
11
votes
The following packages have unmet dependencies: containerd.io
I think I found a solution. I did the following:
sudo apt-get remove containerd.io
sudo apt install docker.io docker-compose -y
systemctl start docker
sudo gpasswd -a $USER docker
Now everything ...
11
votes
Removing a file from a Debian package without removing the existing file on upgrade
Oh, I figured it out. I found these flowcharts of Debian maintainer scripts that I never saw before.
From the upgrading flowchart:
It looks like I can move the old file to a temporary location in the ...
11
votes
Removing a file from a Debian package without removing the existing file on upgrade
While the maintainer script approach you outlined works, it’s a bit messy for a couple of reasons.
A much cleaner approach would be to take the following steps:
In the next version of the package, ...
10
votes
Broken my Debian install: 'sh' not found in PATH
You were bitten by a nasty bug in dash which caused /bin/sh to be removed. This has since been fixed, which is why another apt update and apt full-upgrade fixed it (after restoring /bin/sh to point to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dpkg × 821apt × 364
debian × 345
package-management × 147
ubuntu × 105
software-installation × 62
deb × 50
linux × 49
dependencies × 45
kali-linux × 33
aptitude × 31
upgrade × 27
packaging × 27
python × 19
linux-mint × 17
kernel × 15
raspbian × 14
raspberry-pi × 12
linux-kernel × 10
rpm × 10
bash × 9
compiling × 9
debian-installer × 9
debconf × 9
nvidia × 8