Public bug reported: 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 ** Affects: aptitude (Ubuntu) Importance: Undecided Status: New -- aptitude returns 0(=OK) even if install fails https://bugs.launchpad.net/bugs/585408 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs