Hack for fix (un)resolved dependencies in debian packages

11 05 2015

If we are trying to install an extange package in our system, usually old or taken from another relase, distribution or whatever… and dpkg report missing dependencies that we can override with –ignore-depends but at the end, apt-get report that there are missing dependencies in each execution. We can resolve the problem with the following steps.

First, uninstall the package that was installed with –ignore-depends.

Take the original .deb file and unpack them:
# ar x package.deb
Extract control archive:
# tar -xzvf control.tar.gz
Edit file and remove missing dependencies:
# vi control
Recreate control file:
# tar -czvf control.tar.gz preinst postinst prerm postrm control
Recreate .deb file:
# ar rcs package.deb debian-binary control.tar.gz data.tar.gz
Install it again.
# dpkg -i package.deb

More info: http://serverfault.com/questions/250224/how-do-i-get-apt-get-to-ignore-some-dependencies




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: