Robert Euhus, as for #36, -Strange, no such broken pipe error due to missing backslash-escape occured, when I tried the script I uploaded. - You are correct, the awk regex for creating the "list" needs one more space, because the abbreviated status of a package seems to contain three characters, last of which is space (' '), if there is no error flag in the package status. (BTW the db:Status-Abbrev is not available in 12.04, but according to the tags, the fix is needed for 14.04 and later.) As for the advantage of using dpkg-query over dpkg -l , for the former you can define output format, whereas grepping dpkg's output, which contains header lines and some extra information is not a good practice IMO. - As of the broken pipe due to exit in awk script, which awk you are using? Does this give broken pipe in your system? dpkg-query -W -f='${Package}\n' | awk '/dpkg/{print $1; exit}' (It doesn't in mine.)
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1440608 Title: /etc/kernel/postinst.d/apt-auto-removal wants to remove all kernels except the latest one Status in One Hundred Papercuts: Triaged Status in apt package in Ubuntu: Triaged Status in linux package in Ubuntu: Triaged Bug description: After installing a 3rd kernel currently 3.19.0-12-generic, the /etc/apt/apt.conf.d/01autoremove-kernels file looks normal listing the 3.19.0-11-generic and 3.19.0-12-generic with 3.19.0-10-generic listed to be autoremoved. But once autoremove is completed the machine requests to be rebooted and at that time the /etc/apt/apt.conf.d /01autoremove-kernels file lists the 3.19.0-12-generic and 3.19.0-10-generic kernels. So upon rebooting the 3.19.0-11-generic is requested to be autoremoved leaving only one kernel the latest one 3.19.0-12-generic. ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: apt 1.0.9.7ubuntu3 ProcVersionSignature: Ubuntu 3.19.0-12.12-generic 3.19.3 Uname: Linux 3.19.0-12-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.17-0ubuntu1 Architecture: amd64 CurrentDesktop: MATE Date: Sun Apr 5 17:03:01 2015 InstallationDate: Installed on 2015-04-02 (3 days ago) InstallationMedia: Ubuntu-MATE 15.04 "Vivid Vervet" - Beta amd64 (20150401) SourcePackage: apt UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1440608/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp