The inclusion of "-y": > sudo /usr/bin/aptitude -y install hadoop-0.20
means that in the event of problems you are instructing aptitude to proceed with it's first suggestion: Keep the following packages at their current version: hadoop-0.20 [Not Installed] hadoop-0.20-native [Not Installed] *technically* aptitude has done what you have asked it to do. The problem resolver does attempt to honour explicitly requested actions [1]. In this case that is not possible. The only solution would be to add a further option *requiring* the requested actions to be performed (this is very different to what "-y" does). [1] Configuration items: Aptitude::ProblemResolver::PreserveManualScore and Aptitude::CmdLine::Request-Strictness > sudo aptitude install bogus-package ... > echo $? 0 This has already been reported [2]. [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590686 ** Bug watch added: Debian Bug tracker #590686 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590686 ** Also affects: aptitude via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590686 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/919216 Title: aptitude returns 0 exit status code even if the requested action is not successful To manage notifications about this bug go to: https://bugs.launchpad.net/aptitude/+bug/919216/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs