[Bug 585408] Re: aptitude returns 0(=OK) even if install fails

Bug Watch Updater 585408 at bugs.launchpad.net
Sun Feb 2 17:05:04 UTC 2014


** Changed in: aptitude (Debian)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptitude in Ubuntu.
https://bugs.launchpad.net/bugs/585408

Title:
  aptitude returns 0(=OK) even if install fails

Status in “aptitude” package in Ubuntu:
  Fix Committed
Status in “aptitude” package in Debian:
  Confirmed

Bug description:
  Binary package hint: aptitude

  When I tell aptitude to install a certain version of a package - and
  this version is not available - it outputs an error (Unable to find a
  version "..." for the package...) - but still returns 0(=OK).

  This is a problem when automating installs using aptitude (we use
  puppet to do it) - as it thinks all is well, when it isn't :(

  To reproduce - do this on a hardy install.
  # aptitude install subversion=1.5.1dfsg1-1ubuntu2~hardy2; echo "ret:$?"
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Reading extended state information
  Initializing package states... Done
  Building tag database... Done
  Unable to find a version "1.5.1dfsg1-1ubuntu2~hardy2" for the package "subversion"
  Unable to find a version "1.5.1dfsg1-1ubuntu2~hardy2" for the package "subversion"
  The following packages have been automatically kept back:
    libpq5 linux-libc-dev sun-java6-bin
  The following packages have been kept back:
    bind9-host dnsutils libbind9-30 libdns35 libisc35 libisccfg30 libkrb53 liblwres30 linux-image-server linux-server nfs-common sudo sun-java6-jre tzdata
  0 packages upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
  Need to get 0B of archives. After unpacking 0B will be used.
  Writing extended state information... Done
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Reading extended state information
  Initializing package states... Done
  Building tag database... Done
  ret:0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/585408/+subscriptions



More information about the foundations-bugs mailing list