Re: the Debian way to sync apt-get and aptitude

From: Simo Kauppi (swk_at_nic.fi)
Date: 11/15/05

  • Next message: Jim Ottaway: "Re: changin XTerm colors"
    Date: Tue, 15 Nov 2005 17:35:39 +0200
    To: debian-user@lists.debian.org
    
    
    

    On Thu, Nov 10, 2005 at 01:57:49PM -0800, David Kirchner wrote:
    > Is there a Debian way to sync apt-get and aptitude data files? We just
    > had a problem where aptitude decided to programs that were installed
    > by apt-get immediately prior. This is on Sarge stable.
    >
    > Specifically, the steps to reproduce this were:
    >
    > apt-get install flac
    > aptitude
    > Press 'g' and you'd see 2 held back packages (cpio, libssl) and 4
    > packages to be removed (flac and its dependencies).
    >
    > If you removed flac+deps with aptitude and then reinstalled them with
    > apt-get, aptitude would still want to remove flac.
    >
    > This could not be reproduced on another Sarge stable server, so I
    > suspect the aptitude/apt-get data files got corrupted in some way.
    >
    > Upgrading 'cpio' and 'libssl' packages took care of this particular
    > problem, but that doesn't make a lot of sense, since they're not
    > dependencies or conflicts to flac.
    >
    > (I have searched Google for this, but I find a lot of documentation
    > for aptitude instead. I'm fine with being pointed at documentation if
    > someone written about this somewhere.)

    I'm not sure if this is related to your specific problem, but apt-get
    and aptitude handle dependencies a little differently. By default
    aptitude treats recommendations as dependencies and apt-get does not.

    To not treat recommendations as dependencies in aptitude, just put
    Aptitude::Recommends-Important "false"; in your ~/.aptitude/config or
    /etc/apt/apt.conf or give -R option (aka --without-recommends) in the
    aptitude command line.

    Simo

    -- 
    :r ~/.signature
    
    

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


  • Next message: Jim Ottaway: "Re: changin XTerm colors"

    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: aptitude --mind-your-own-business option?
      ... Does synaptic do something better than apt-get? ... be very usable on a command-line, looking at aptitude show synaptic. ... It's a BAD DESIGN. ...
      (Debian-User)
    • Re: package management begins to annoy me
      ... have a point about apparent simplicity regarding apt-get, ... In this situation I am really happy that aptitude is ... In the same situation apt-get often just can't get through, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: testing update today hosed aptitude!
      ... Attempts to apt-get install aptitude are so far ... unsuccessful, because of unmet dependencies. ... Use 'apt-get autoremove' to remove them. ...
      (Debian-User)