|
|
|
|
|
by fredsted
3366 days ago
|
|
Doesn't `apt-get autoremove` remove those old kernels? Not that it's a solution; it should of course be done automatically! Here's what I get when using it: > apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-3.19.0-79 linux-headers-3.19.0-79-generic
linux-image-3.19.0-78-generic linux-image-3.19.0-79-generic
linux-image-extra-3.19.0-78-generic linux-image-extra-3.19.0-79-generic
0 upgraded, 0 newly installed, 24 to remove and 39 not upgraded.
After this operation, 1,732 MB disk space will be freed.
Do you want to continue? [Y/n]
|
|
Currently, Ubuntu installs a new kernel and update-notifier tells the user a reboot is needed. The autoremove notification only appears when using the terminal which explains why users are running into this issue. Also, update-notifier informs the user another reboot is needed after autoremove is run.
To avoid this mess I’ve commented out the lines of /etc/apt/apt.conf.d/99update-notifier and wrote my own updater using bash and zenity and incorporated needsrestart. It’s not pretty but it works.