[SOLVED] how to make apt-get ignore broken packages and missing dependencies
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to make apt-get ignore broken packages and missing dependencies
when I have a broken packages on the system and want to apt-get install something (completely unrelated to the broken package) apt-get starts giving me crap about the broken stuff and won't download and install the packages I'm asking for. How can I make it ignore the completely unrelated stuff about missing deps on my system and download what I want?
thanks for the response.
I disabled the "Automatically fix broken packages before installing or removing", but apt-get still complains about missing deps on the system. I got it working for now by removing the deps from /var/lib/dkpg/status as suggested in the 2nd response on the link, but is there still a way to prevent apt-get from complaining?
P.S.
just noticed it's the wrong subforum, sorry 'bout that
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in
place. This option, when used with install/remove, can omit any
packages to permit APT to deduce a likely solution. Any Package
that are specified must completely correct the problem. The op‐
tion is sometimes necessary when running APT for the first time;
APT itself does not allow broken package dependencies to exist
on a system. It is possible that a system’s dependency structure
can be so corrupt as to require manual intervention (which usu‐
ally means using dselect( or dpkg --remove to eliminate some
of the offending packages). Use of this option together with -m
may produce an error in some situations. Configuration Item:
APT::Get::Fix-Broken.
-m, --ignore-missing, --fix-missing
Ignore missing packages; If packages cannot be retrieved or fail
the integrity check after retrieval (corrupted package files),
hold back those packages and handle the result. Use of this op‐
tion together with -f may produce an error in some situations.
If a package is selected for installation (particularly if it is
mentioned on the command line) and it could not be downloaded
then it will be silently held back. Configuration Item:
APT::Get::Fix-Missing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.