Read more

How to install a debian/ubuntu package without dependencies

Kim Klotz
October 21, 2011Software engineer at makandra GmbH

Please note that you can break your system with this! This is not recommended.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Sometimes the package repository has errors. If you can't install a package because you can't install the dependencies with the package manager you can try this:

(You have to download the deb first e.g. from here Show archive.org snapshot or here Show archive.org snapshot )

dpkg -x bad-package.deb common
dpkg --control bad-package.deb

Then you have to edit DEBIAN/control with an editor. You can delete the broken dependencies there.

vi DEBIAN/control
cp -a DEBIAN/ common/
dpkg -b common bad-package.deb
dpkg -i bad-package.deb

Now you have installed the bad-package without the broken dependencies.

Posted by Kim Klotz to makandra dev (2011-10-21 14:22)