Skip to main content
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
dirkk0's user avatar
  • 756
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 ...
Stephen Kitt's user avatar
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 ...
Stephen Kitt's user avatar
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 ...
Stephen Kitt's user avatar
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, ...
Stephen Kitt's user avatar
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 ...
Quique's user avatar
  • 401
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-...
George Vasiliou's user avatar
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.
Henry Malinowski's user avatar
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-...
alpha's user avatar
  • 2,034
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
JuanPi's user avatar
  • 311
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
Omriko's user avatar
  • 301
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 ...
GAD3R's user avatar
  • 69.9k
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-...
Stephen Kitt's user avatar
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: ...
Stewart's user avatar
  • 16k
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/...
steeldriver's user avatar
  • 83.8k
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
nicoX's user avatar
  • 335
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 ...
Stephen Kitt's user avatar
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
Julio Freitas's user avatar
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 ...
Stephen Kitt's user avatar
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 ...
janos's user avatar
  • 11.7k
13 votes

Upgrading nodejs on Ubuntu: How to fix broken pipe error?

Just delete nodejs-doc: sudo apt remove nodejs-doc
Metin Celik's user avatar
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/...
Danilo Souza's user avatar
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 ...
200_success's user avatar
  • 5,673
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 --...
GAD3R's user avatar
  • 69.9k
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 ...
filbranden's user avatar
  • 22.6k
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 ...
Eduardo Trápani's user avatar
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 ...
desmond13's user avatar
  • 301
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 ...
Jason C's user avatar
  • 1,927
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, ...
Austin Hemmelgarn's user avatar
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 ...
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible