apt autoremove command does not work for Ubuntu 20.04
rdbraber opened this issue · comments
Rob den Braber commented
In the script cleanup.sh the line:
apt autoremove
doesn't work and aborts:
virtualbox-iso: Reading package lists...
virtualbox-iso: Building dependency tree...
virtualbox-iso: Reading state information...
virtualbox-iso: The following packages will be REMOVED:
virtualbox-iso: ieee-data python3-argcomplete python3-crypto python3-distutils
virtualbox-iso: python3-dnspython python3-httplib2 python3-jinja2 python3-jmespath
virtualbox-iso: python3-kerberos python3-lib2to3 python3-libcloud python3-lockfile
virtualbox-iso: python3-markupsafe python3-netaddr python3-ntlm-auth
virtualbox-iso: python3-requests-kerberos python3-requests-ntlm python3-selinux
virtualbox-iso: python3-simplejson python3-winrm python3-xmltodict
virtualbox-iso: 0 upgraded, 0 newly installed, 21 to remove and 3 not upgraded.
virtualbox-iso: After this operation, 35.2 MB disk space will be freed.
virtualbox-iso: Do you want to continue? [Y/n] Abort.
Changing the line to:
apt -y autoremove
works. Could be that that also needs to be done for the other Ubuntu versions.
Jeff Geerling commented
Ah, you're quite right! Missing out on a few MB of savings in the box size from that. Thanks for filing the issue—I fixed it in the commit referenced above.