When apt-get attacks!
Author
Discussion

SneakyNeil

Original Poster:

9,297 posts

268 months

Tuesday 31st July 2007
quotequote all
I've got a debian system here and apt-get is in a whole world of pain. It's trying to remove a large number of packages that I really don't want removed, apparently because various dependencies have been removed. I've tried following the chain of dependencies back in aptitude to find out what the root cause is, but just end up going round and round in circles.

Is there a 'stop doing my head in' option that anyone's aware of? What's the best way forward in this situation? I need to make some changes to this machine and I think it's going to be a very late night if I let it do what it wants to frown

Cheers,
Neil

fredf

267 posts

264 months

Tuesday 31st July 2007
quotequote all
More details please smile
What are you trying to do? What is apt trying to do? Is this on stable/testing/unstable? How upto date?

SneakyNeil

Original Poster:

9,297 posts

268 months

Tuesday 31st July 2007
quotequote all
fredf said:
More details please smile
What are you trying to do? What is apt trying to do? Is this on stable/testing/unstable? How upto date?
I need to add some more packages to run some more servies from this box, pop3, webmail etc.

How up to date is it, not very!

Debian Sarge, Stable.


Having continued to poke around, I'm not sure if an upgradable package is breaking a dependency or something... and loads of packages marked as automaticaly installed and being removed because nothing's depending on them - except me of course!

Weird stuff also like it's saying postfix was an auto-installed package, and is removing it and updating exim. But I replaced exim with postfix about 18 months ago using aptitude confused

Currently got it upgrading everything that can be without removing anything, I'll see where I am when the smoke clears.


fredf

267 posts

264 months

Tuesday 31st July 2007
quotequote all
SneakyNeil said:
I need to add some more packages to run some more servies from this box, pop3, webmail etc.

How up to date is it, not very!

Debian Sarge, Stable.


Having continued to poke around, I'm not sure if an upgradable package is breaking a dependency or something... and loads of packages marked as automaticaly installed and being removed because nothing's depending on them - except me of course!
Ahh... Aptitude keeps track of packages that were installed as dependencies, when you remove the top level package it then cleans up all the dependencies for you - isn't that nice of it (or not in this case)

SneakyNeil said:
Weird stuff also like it's saying postfix was an auto-installed package, and is removing it and updating exim. But I replaced exim with postfix about 18 months ago using aptitude confused
Just a guess. If postfix was a dependency install, you then remove what directly needed it, but something still needs an MTA it may try to install exim4 as the default option?!? Doesn't really make much sense.

SneakyNeil said:
Currently got it upgrading everything that can be without removing anything, I'll see where I am when the smoke clears.
I think this may be aptitude trying to be helpful but getting things wrong. Try forcable installing anything you need, this won't actually do anything but may make aptitude happier.

Or scrap aptitude and use apt directly

SneakyNeil

Original Poster:

9,297 posts

268 months

Tuesday 31st July 2007
quotequote all
Thanks for the suggestions, I ended up going through each item in dispute manually (there were quite a lot) and making a sensible choice. Twas a late one as predicted but its now up to date, aptitudes happy, and there's only one server humming away now instead of two... just wish it was for a client instead so we could bill someone :\