I'm not entirely sure what is going on your system but it fails with sort not understanding --version-sort - this has been introduced in coreutils 7.0, released in 2008. Your coreutils are 8.25 however, so I have no idea what's going on.
* Did you install another sort binary? * Are you using a weird shell where sort is a builtin for /bin/sh? ** Changed in: apt (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1710531 Title: package linux-image-4.4.0-91-generic 4.4.0-91.114 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1710531/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs