I’ve gotten failures like this before but ignored them.
…
Upgrading linux-firmware (20210405.r1866.af1ca28-1 → 20210426.r1905.fa0efef-1)…
Upgrading linux510 (5.10.30-1 → 5.10.32-1)…
Upgrading linux510-nvidia (460.67-7 → 460.73.01-1)…
Upgrading linux59-nvidia (460.67-1 → 460.73.01-1)…
depmod: ERROR: could not open directory /lib/modules/5.9.16-1-MANJARO: No such file or directory
Error while configuring linux59-nvidia
depmod: FATAL: could not search modules: No such file or directory
Error: linux59-nvidia: command failed to execute correctly
…
Looking in /lib/modules I can see that the error message is technically correct:
% ls -l /lib/modules
total 16
drwxr-xr-x 4 root root 4096 Apr 18 10:02 5.10.30-1-MANJARO
drwxr-xr-x 4 root root 4096 Apr 29 09:12 5.10.32-1-MANJARO
drwxr-xr-x 2 root root 4096 Apr 29 09:11 extramodules-5.10-MANJARO
drwxr-xr-x 2 root root 4096 Apr 29 09:12 extramodules-5.9-MANJARO
Do I perhaps need to do something to get the system to stop caring about 5.9 versions of the kernel? If so, how? It seems I have both 5.9 and 5.10 kernels installed:
% pacman -Ss linux59 | grep installed
core/linux59 5.9.16-1 [installed]
extra/linux59-nvidia 460.73.01-1 (linux59-extramodules) [installed]
% pacman -Ss linux510 | grep installed
core/linux510 5.10.32-1 [installed]
extra/linux510-nvidia 460.73.01-1 (linux510-extramodules) [installed]
How do I know when it’s safe to remove those 5.9 packages? Will they automatically be removed at some point?