Re: Apt-Get or Aptitude



On Thu, Nov 01, 2007 at 11:09:07AM -0800, Ken Irving <fnkci@xxxxxxx> was heard to say:
On Tue, Oct 30, 2007 at 08:19:58PM -0700, Daniel Burrows wrote:
No, I just come down hard on this meme because it seems to have taken
on a life of its own and I'd like to squash it before it grows up into a
full-blown urban legend.

That sounds good, but is it different now than it used to be? I haven't
tried it lately, but it used to "seem" to want to remove lots of things.
I'm aware of the workarounds (keep-all or whatever), have followed most
of the threads (even instigated some...), but am still a command-line
apt-get user waiting for a reason to change. Two problems I have with
aptitude are the lack of "source" functionality and my inability to spell
it as easily as apt-get. ;-)

There were bugs in some past versions. As far as I know, the worst
ones (e.g., #411123) were fixed in etch. There were some new bugs
introduced in unstable with the switchover to using apt to track unused
packages (where aptitude would even want to remove packages it had just
installed), but those should be fixed in 0.4.7.

There are a few corner cases in which aptitude will do the wrong
thing.

* Marking a package for removal in aptitude, exiting, removing it with
apt-get, installing it again with apt-get, then running aptitude.
aptitude will still remember that you want to remove the package.

* If you interrupt aptitude before it writes its state database, it
will sometimes get confused about the system state, especially if
you proceed to run apt-get before aptitude. (I can't remember the
precise sequence of events that have to happen to trigger this off
the top of my head)

Those are the only ways I can think of offhand to get aptitude to
remove packages you didn't ask it to. Unfortunately, there's no
reliable way to tell if someone else has fiddled with a package
(#429438), so as long as aptitude tries to save and restore the current
state, there will be a few edge cases like this.

Anything I didn't list above is a bug that I don't know about.

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: stable to testing: aptitude wants strange things
    ... apt-get turns out to be mostly the same. ... Now both apt-get and aptitude want to remove aptitude. ... The following packages will be REMOVED: ... modconf openssl python-central python-minimal python-support ...
    (Debian-User)
  • Re: ubuntu & kubuntu
    ... update and remove packages with both of the utilities. ... command line) front-ends for dpkg - aptitude never calls apt-get. ... I challenge you to ever find an instance of aptitude running a command ...
    (Ubuntu)
  • Re: Ugly sarge upgrade -- kernel 2.4.27-2 > 2.4.27-6
    ... I'd like to just have apt-get upgrade fix it;) ... ... the bugs posted on the bugs site it looks like this has been kicking ... > At this point let me suggest aptitude as a substitute for apt-get. ... >>dselect and currently have the kernel packages on hold. ...
    (Debian-User)
  • Re: Maze of Twisty Turny Little Package Managers
    ... dependencies on debian - dpkg, apt-get, aptitude, synaptic, ????. ... 'official' or favored method in debian - but my confusion is even more ... recomendations, when one person habitually uses apt-get, another ... packages are "held" at some current, ...
    (Debian-User)
  • aptitude has poor exit status behaviour
    ... In the course of scripting some aptitude upgrade activity I've found ... Ign http://ftp.de.debian.org etch/main Packages/DiffIndex ... Ign http://security.debian.org etch/updates/main Packages/DiffIndex ... Err http://security.debian.org etch/updates/main Packages ...
    (Debian-User)