Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Making Apt-get DUMB!
PostPosted: Sun Aug 06, 2006 8:31 pm 
Offline
Junior Member

Joined: Wed Feb 01, 2006 1:24 am
Posts: 40
This isn't strictly Linode, but just in case somebody runs into it...

I need to install a package (in this case, SDL-image1.2-dev). I try "apt-get install SDL-image1.2-dev"

It gives back a list of a zillion packages that it wants to "remove" to install this package.

There's no reason in the world to remove those! They have no effect on the SDL-image1.2-dev package.

Is there any way to tell apt-get, "look, I know what I'm doing. Just install the package, but don't remove anything!"?


Top
   
 Post subject:
PostPosted: Sun Aug 06, 2006 9:29 pm 
Offline
Senior Newbie

Joined: Fri Mar 24, 2006 8:56 pm
Posts: 15
You could try the --force-yes option. I don't know if it will work in your case (I think it should, though) according to the man page:

--force-yes
Force yes; This is a dangerous option that will cause apt to continue without prompting if it is doing something potentially harmful. It should not be used except in very special situations. Using force-yes can potentially destroy your system! Configuration Item: APT::Get::force-yes.


Top
   
 Post subject:
PostPosted: Mon Aug 07, 2006 5:03 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
I don't think --force-yes would be useful in this situation, as it would answer "yes" to the question about removing the zillion packages, further meaning that his system would be unusable.

Quote:
--no-remove
If any packages are to be removed apt-get immediately aborts without prompting. Configuration Item: APT::Get::Remove


Top
   
 Post subject:
PostPosted: Mon Aug 07, 2006 6:18 am 
Offline
Senior Member

Joined: Thu Nov 25, 2004 10:05 am
Posts: 52
I wouldn't force apt-get to do anything unless you're sure why its objecting. You'll only end up leaving your system in some weird state.

What packages is it trying to remove? Is this debian or ubuntu? Which version? Did you upgraded it (correctly) from a previous distribution?

I'm guessing you just want libsdl-image1.2-dev for building something? If you can't/don't want to work out what's going wrong with apt-get, maybe you could just grab what you need form libsdl.org and stick it in /usr/local ?


Top
   
 Post subject:
PostPosted: Mon Aug 07, 2006 6:52 am 
Offline
Senior Member

Joined: Thu Nov 25, 2004 10:05 am
Posts: 52
PS: If you really do just want to force the install neither of the previously suggested methods will work. I don't think it can be done with apt-get, because its too friendly. You'll need to meddle with dpkg:

apt-get -d install libsdl-image1.2-dev
(to download it into /var/cache/apt/archives, cd there and)

dpkg --force-conflicts -i <package>
(to install all the downloaded packages)

then be prepared for things to break....


Top
   
 Post subject:
PostPosted: Mon Aug 07, 2006 7:21 am 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
The better question to ask is *why* does apt want to remove those packages? If you don't know, you might have a hosed system ALREADY.

run an "apt-get -f install" (with no suffix)

That forces apt to "fix" your dep tree ...

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 12:58 pm 
Offline
Junior Member

Joined: Wed Feb 01, 2006 1:24 am
Posts: 40
Jay wrote:
The better question to ask is *why* does apt want to remove those packages? If you don't know, you might have a hosed system ALREADY.

run an "apt-get -f install" (with no suffix)

That forces apt to "fix" your dep tree ...


The main packages that made me panic were GNOME and FGLRX. My Debian Apt-Get had become obsessed with destroying GNOME and FGLRX. And I didn't know why SDL_Image_dev should want to destroy FGLRX or GNOME. I saw no connection. (Not to mention that it took me three months to get FGLRX to work correctly, and I can't remimber where the tutorial I followed is, so anything that hints at breaking that again makes me want to scream in terror)

Over the weekend, I went through and upgraded all the packages by hand in Synaptic (Click on package. Upgrade. Check to make sure it wasn't nuking GNOME or FGLRX). I now have all the newest GNOME packages (in debian) and it works just fine, no more package nuking. I just don't know.

But, usually, when I run into stupid stuff like this, I'll get the RPM, alien it to a deb, and dpkg it in where it needs to be. And it works. But I'd rather just make apt-get just allow it, even if it felt it necessary to constantly point it out to me every time I used apt-get.


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 1:49 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Quote:
But, usually, when I run into stupid stuff like this, I'll get the RPM, alien it to a deb, and dpkg it in where it needs to be. And it works. But I'd rather just make apt-get just allow it, even if it felt it necessary to constantly point it out to me every time I used apt-get.


That sounds like a great way to hose apt, and that sort of thing may well be what caused this problem for you.


Top
   
 Post subject:
PostPosted: Sun Sep 03, 2006 1:38 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
Xan wrote:
Quote:
But, usually, when I run into stupid stuff like this, I'll get the RPM, alien it to a deb, and dpkg it in where it needs to be. And it works. But I'd rather just make apt-get just allow it, even if it felt it necessary to constantly point it out to me every time I used apt-get.


That sounds like a great way to hose apt, and that sort of thing may well be what caused this problem for you.


QFT

the apt system is *alot* better then any person will be keeping track of dependencies.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group