One workaround to get the sorted list is:
dpkg-query -W -f='${Status} ${Package}\n' |
sed -nr "s/^(install|hold) ok installed linux-image-([0-9]+\..+)/\2/p" |
sort -V
** Tags added: trusty xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1161912
Title:
linux-version list can be NULL
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1161912/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs