LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2011, 12:56 PM   #1
gujedan
Member
 
Registered: Oct 2010
Posts: 121

Rep: Reputation: 1
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?

Last edited by gujedan; 03-20-2011 at 01:04 PM.
 
Old 03-20-2011, 12:59 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
This may help - http://superuser.com/questions/95509...broken-package

Cheers,

Josh
 
Old 03-20-2011, 01:32 PM   #3
gujedan
Member
 
Registered: Oct 2010
Posts: 121

Original Poster
Rep: Reputation: 1
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

Last edited by gujedan; 03-20-2011 at 01:34 PM.
 
Old 03-20-2011, 01:54 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
From the man page:
Quote:
-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.
You can always try that.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ignore apt-get dependencies? pdeman2 Linux - Software 7 05-23-2006 08:08 PM
Apt-Get i need help fixing broken dependencies turkenator02 SUSE / openSUSE 2 05-11-2006 04:36 AM
how to make apt-get ignore errors or dependencies? hisnumber666 Linux - Software 5 05-03-2006 07:01 PM
New to apt-get and have broken dependencies aquaboot Debian 9 08-21-2005 02:09 AM
Making synaptic ignore broken packages ???? UsualTuxpect Linux - Software 5 09-05-2004 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration