New answers tagged aptitude
Hot tip: You don't need 'apt-get' in 16.04, only 'apt'. Example: sudo apt install aptitude
You can always use sudo apt-get update sudo apt-get upgrade to update your system, but if you like using aptitude sudo apt-get install aptitude should install aptitude.
Seems https://launchpad.net/ubuntu/xenial/+source/aptitude is available. Just open your terminal and type sudo apt-get install aptitude Then try again. Thank you.
This seems to be caused by apparmor as you will find something similar to this in your syslog: kernel: [ 2386.130467] audit: type=1400 audit(1461767119.644:89): apparmor="DENIED" operation="create" profile="/usr/sbin/libvirtd" pid=21368 comm="libvirtd" family="netlink" sock_type="raw" protocol=0 requested_mask="create" denied_mask="create" Until the ...
They haven't been purged because there's no reason to. The kernel files left are mostly those concerning dpkg. There's no harm in having them around. As for purging them: aptitude purge '~c'
From this launchpad bug it looks like running the following will fix your issue: sudo apt-get install aptitude libapt-pkg4.16 If you get unable to locate package libapt-pkg4.16 run this: apt-cache search libapt-pkg | grep 'package management' | cut -d ' ' -f1 And replace libapt-pkg4.16 with whatever output you get from there (for me on 14.04 it's ...
If all else fails. What I did was I first changed the directory to: cd /var/lib/dpkg/info then I removed everything with .postinst: rm *.postinst then everything went back to normal when I did: apt-get --force-yes install openjdk-7-jre-headless
Top 50 recent answers are included