Routine system update failed (Ubuntu 22.04.4 LTS)
Bo Berglund
bo.berglund at gmail.com
Sat Sep 21 07:22:58 UTC 2024
On Fri, 20 Sep 2024 21:35:01 -0400, Jeffrey Walton <noloader at gmail.com> wrote:
>> Any advice greatly appreciated!
Thanks for yuour input!
>
>1. Add error checking to the script.
What do I need to check?
>2. /boot is too small for your needs. Increase the size to 768 MB or 1
>GB. Or remove some old kernels.
So I did this to remove an older kernel, since I don't know how to increase
/boot size...:
~$ uname -r (show current kernel)
$ dpkg --list 'linux-image*' | grep ^ii (List all kernels on disk)
$ sudo apt remove linux-image-5.15.0-107-generic (this was the oldest one)
$ df -h (Now /boot has more space...)
$ sudo apt autoremove
$ sudo update-grub
Repeat the original command, which now completes successfully:
$ sudo /home/bosse/bin/aptupdate Y
$ sudo reboot
>
>3. Do not run clean and purge until after a reboot.
OK, will remove from script...
Question:
Will a new kernel be used after a reboot following running the original script?
Or do I need a grub rebuild too?
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list