View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


LinkBack Search this Thread
Old 05-02-2006, 05:38 PM   #1
Registered: Mar 2006
Distribution: Debian Sarge, Windows Server 2003
Posts: 66

Rep: Reputation: 15
how to make apt-get ignore errors or dependencies?

i have a long list of packages to fix and install. apt get will try to remove about 1200 packages from my system if i run it right now. synaptic will do the same.
currently i use dpkg to install the correct versions of packages but i have another 40 packages to go... its just plain not cool. meaning i have to manually download the packages from debian repository and then manually install it using dpkg. i would be so much nicer i could just make apt-get ignore dependecies and install the right packages (i have about 40 packages from testing repository currently on my system that i need to downgrade back to stable. apt-get and synaptic are counterproductive in this case).
Old 05-02-2006, 08:17 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,691

Rep: Reputation: 286Reputation: 286Reputation: 286
Just thinking in print here. Suppose you edited your sources.list and commented out all lines refering to a testing repository, leaving only the stable repositories available to apt-get. Would you then be able to downgrade to stable packages?
Old 05-02-2006, 08:53 PM   #3
Registered: Mar 2006
Distribution: Debian Sarge, Windows Server 2003
Posts: 66

Original Poster
Rep: Reputation: 15
that was the first thing i did. the problem is that apt-get and synaptic first want to remove 1200 packages that depend on 40 broken packages, and only then update. of course, it will not get 1200 packages back.
i consider it a design flaw.
anyway unlike apt-get, i know what im doing so i just need a way to force it to do what i want it to do.
Old 05-03-2006, 06:37 PM   #4
Registered: Mar 2006
Distribution: Debian Sarge, Windows Server 2003
Posts: 66

Original Poster
Rep: Reputation: 15
just thought i explain it a little better... downgrading process involves removing and then installing packages. which in return involves temporarily breaking a dependency (for a few seconds). apt-get of course cant have that, so it just deletes you whole system to keep all dependencies met. i just need to fix some 40 packages and then i can have apt-get functioning like it should. ill try aptitude... but im pretty sure it uses apt-get to do everything...
is there a switch/option in apt-get that makes it ignore errors and dependecies?
Old 05-03-2006, 06:45 PM   #5
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,006

Rep: Reputation: Disabled
apt-get may have supercow powers but this is an extremely stubborn supercow indeed. I gave up and switched to Gentoo because I got tired fighting apt-get (after I found myself creating dummy packages to satisfy this supercow). On the other hand - apt-get is very convenient for maintaining a stable Debian system.
Old 05-03-2006, 07:01 PM   #6
Registered: Mar 2006
Distribution: Debian Sarge, Windows Server 2003
Posts: 66

Original Poster
Rep: Reputation: 15
perhaps it does have supercow powers... but its incredibly stupid.
i have no luck with aptidude either... its a little more clever than synaptic since it allows you to refuse to delete some package, but in return aptitude will refuse to actually APPLY any changes until all dependencies are met.

i would switch to gentoo this very minute... except im not ready for it quite yet. im only learning to fix compile errors and im not as patient as some other users unfortinately. i wanted linux to be less dependent and be in control. switching to gentoo will literrally bury me in forums, waiting for someones help. when my college semester is over, ill give it a shot at gentoo on another machine (i still need at least one fast working computer).

so i guess... ill just hafta manually fix it all with dpkg... ill fix one package every time i get on this computer. that way ill get it done by next week without boring myself to death.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DPKG, please ignore dependencies... lectraplayer Debian 6 05-31-2007 09:56 AM
How to ignore a dependencie when apt-getting a soft ? Stéphane Ascoët Debian 1 10-23-2004 12:09 PM
How can I get make to ignore a particular error? SheldonPlankton Linux - Software 1 08-05-2004 01:44 PM
Make ls ignore symlinks Creep Linux - Software 3 01-23-2004 05:21 PM
Which program help ignore rpm dependencies Mojojo Linux - Software 2 06-16-2003 04:56 AM

All times are GMT -5. The time now is 11:28 AM.

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