Error when making update with pacman

Hello erveryone,

I've installed Manjaro and while making updates, sometimes i need to try 2-3 times to make it works. so i made

cat /var/log/pacman.log  | grep ERROR

It returned me :

ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory

So i don't know what to do about it and by searching on google, i found this solution.

I don't know if it will solve the problem. So can anyone help me ? :slight_smile:

Thanks

EDIT : So as @Wollie answered, here some more information.
About my system and hardware, i made this as told in the link

inxi -Fxxxza --no-host

And here is the return :

System:    Kernel: 5.5.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.5-x86_64 root=UUID=c0a7e19c-9bef-446b-a0e4-6f260027b3dd rw quiet apparmor=1 
           security=apparmor resume=UUID=a04af14f-31fe-4214-988d-dbbfa2e56984 udev.log_priority=3 
           Desktop: KDE Plasma 5.18.4 tk: Qt 5.14.2 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: 970 PRO GAMING/AURA v: Rev 1.xx serial: <filter> BIOS: American Megatrends 
           v: 0701 date: 05/16/2016 
CPU:       Topology: 8-Core model: AMD FX-8350 bits: 64 type: MCP arch: Bulldozer family: 15 (21) model-id: 2 stepping: N/A 
           microcode: 6000852 L2 cache: 2048 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 69390 
           Speed: 1515 MHz min/max: 1400/4000 MHz boost: enabled Core speeds (MHz): 1: 1516 2: 1517 3: 3010 4: 1906 5: 1515 
           6: 1514 7: 1872 8: 1920 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
           vendor: Sapphire Limited Nitro+ driver: amdgpu v: kernel bus ID: 01:00.0 chip ID: 1002:67df 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting,radeon alternate: fbdev,vesa 
           compositor: kwin_x11 resolution: 1920x1080~60Hz, 1280x1024~60Hz 
           OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.36.0 5.5.16-1-MANJARO LLVM 9.0.1) v: 4.6 Mesa 20.0.4 
           direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] SBx00 Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:14.2 chip ID: 1002:4383 
           Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] vendor: Sapphire Limited driver: snd_hda_intel 
           v: kernel bus ID: 01:00.1 chip ID: 1002:aaf0 
           Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo bus ID: 3-1:2 chip ID: 046d:0825 
           serial: <filter> 
           Sound Server: ALSA v: k5.5.16-1-MANJARO 
Network:   Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: 5.6.0-k port: d000 bus ID: 04:00.0 
           chip ID: 8086:1539 
           IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 1.02 TiB used: 234.05 GiB (22.4%) 
           ID-1: /dev/sda vendor: OCZ model: VERTEX3 size: 111.79 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 2.25 scheme: GPT 
           ID-2: /dev/sdb vendor: Western Digital model: WD10EZEX-60M2NA0 size: 931.51 GiB block size: physical: 4096 B 
           logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: 1A01 scheme: MBR 
Partition: ID-1: / raw size: 111.79 GiB size: 109.53 GiB (97.98%) used: 20.22 GiB (18.5%) fs: ext4 dev: /dev/sda1 
           ID-2: /home raw size: 851.51 GiB size: 837.14 GiB (98.31%) used: 213.83 GiB (25.5%) fs: ext4 dev: /dev/sdb2 
           ID-3: swap-1 size: 80.00 GiB used: 0 KiB (0.0%) fs: swap swappiness: 60 (default) cache pressure: 100 (default) 
           dev: /dev/sdb1 
Sensors:   System Temperatures: cpu: 27.1 C mobo: N/A gpu: amdgpu temp: 36 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 803 
Info:      Processes: 263 Uptime: 3h 47m Memory: 7.68 GiB used: 2.35 GiB (30.6%) Init: systemd v: 244 Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.16 running in: konsole inxi: 3.0.37 

I've checked which kernel was installed by

pacman -Q linux

that say :

linux316 3.16.82-3

So I don't know where to start and what information is useful. I really need a step-by-step help.

I would try a different kernel. Then see if your system updates.

5.3.18-1-MANJARO

^^This has been End Of Life for a good while.

I made an update cause @Wollie ask for more information i supposed, so i used his link, but i'm a bit lost

So do you have any idea about what i can do about it ? ^^"

Do you still have 5.3.18-1-MANJARO installed in your system?

Check with: mhwd-kernel --listinstalled
Remove with: sudo mhwd-kernel --remove linux53

Here is the return of the command :

$  mhwd-kernel --listinstalled
Currently running: 5.5.16-1-MANJARO (linux55)
The following kernels are installed in your system:
   * linux316
   * linux419
   * linux55

So i don't see it :thinking:

Do you remember to have installed some kernel modules, previously (when still running 5.3)?

It looks like that a module update is tried to be installed in

Please, provide:

cat /etc/modules-load.d/modules.conf

I remember i've tried to make virtualbox work and it asked me to install some module, but i don't remember which ones. Is there a file i can check to know it ?

@Wollie
there's nothing more than that

$ cat /etc/modules-load.d/modules.conf
# List of modules to load at boot
lsmod

provides a list of all loaden modules.

Here is the return

$ lsmod
Module                  Size  Used by
btrfs                1482752  0
blake2b_generic        20480  0
xor                    24576  1 btrfs
raid6_pq              122880  1 btrfs
ufs                    94208  0
hfsplus               122880  0
hfs                    73728  0
minix                  45056  0
ntfs                  229376  0
vfat                   24576  0
msdos                  20480  0
fat                    86016  2 msdos,vfat
jfs                   217088  0
xfs                  1748992  0
libcrc32c              16384  2 btrfs,xfs
dm_mod                163840  0
snd_seq_dummy          16384  2
snd_hrtimer            16384  2
snd_seq                86016  9 snd_seq_dummy
fuse                  139264  5
md4                    16384  0
cmac                   16384  1
nls_utf8               16384  3
cifs                 1142784  2
libarc4                16384  1 cifs
dns_resolver           16384  1 cifs
fscache               401408  1 cifs
libdes                 24576  1 cifs
input_leds             16384  0
mousedev               24576  0
joydev                 28672  0
hid_generic            16384  0
usbhid                 65536  0
hid                   147456  2 usbhid,hid_generic
uvcvideo              114688  0
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
snd_usb_audio         294912  1
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_common       57344  2 videobuf2_v4l2,uvcvideo
videodev              266240  3 videobuf2_v4l2,uvcvideo,videobuf2_common
snd_usbmidi_lib        40960  1 snd_usb_audio
snd_rawmidi            45056  1 snd_usbmidi_lib
snd_seq_device         16384  2 snd_seq,snd_rawmidi
mc                     61440  5 videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common
amdgpu               5279744  46
edac_mce_amd           32768  0
kvm_amd               110592  0
ccp                   106496  1 kvm_amd
rng_core               16384  1 ccp
kvm                   811008  1 kvm_amd
squashfs               69632  6
eeepc_wmi              16384  0
asus_wmi               36864  1 eeepc_wmi
battery                24576  1 asus_wmi
irqbypass              16384  1 kvm
sparse_keymap          16384  1 asus_wmi
rfkill                 28672  4 asus_wmi
wmi_bmof               16384  0
mxm_wmi                16384  0
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
snd_hda_codec_realtek   126976  1
snd_hda_codec_generic    94208  1 snd_hda_codec_realtek
ghash_clmulni_intel    16384  0
snd_hda_codec_hdmi     73728  1
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
gpu_sched              36864  1 amdgpu
ttm                   122880  1 amdgpu
snd_hda_intel          57344  6
snd_intel_dspcfg       28672  1 snd_hda_intel
drm_kms_helper        237568  1 amdgpu
snd_hda_codec         163840  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
aesni_intel           368640  1
crypto_simd            16384  1 aesni_intel
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
loop                   40960  12
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
glue_helper            16384  1 aesni_intel
drm                   557056  15 gpu_sched,drm_kms_helper,amdgpu,ttm
pcspkr                 16384  0
fam15h_power           16384  0
snd_pcm               143360  6 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
igb                   253952  0
k10temp                16384  0
agpgart                53248  2 ttm,drm
snd_timer              40960  3 snd_seq,snd_hrtimer,snd_pcm
syscopyarea            16384  1 drm_kms_helper
snd                   114688  28 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
sysfillrect            16384  1 drm_kms_helper
sp5100_tco             20480  0
sysimgblt              16384  1 drm_kms_helper
i2c_algo_bit           16384  2 igb,amdgpu
i2c_piix4              28672  0
fb_sys_fops            16384  1 drm_kms_helper
dca                    16384  1 igb
soundcore              16384  1 snd
evdev                  24576  11
wmi                    36864  3 asus_wmi,wmi_bmof,mxm_wmi
mac_hid                16384  0
acpi_cpufreq           28672  0
uinput                 20480  0
crypto_user            16384  0
binder_linux          122880  0
ashmem_linux           16384  0
ip_tables              36864  0
x_tables               53248  1 ip_tables
ext4                  786432  2
crc32c_generic         16384  0
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  135168  1 ext4
ohci_pci               20480  0
crc32c_intel           24576  5
xhci_pci               20480  0
ehci_pci               20480  0
sr_mod                 28672  0
xhci_hcd              282624  1 xhci_pci
ehci_hcd               98304  1 ehci_pci
ohci_hcd               57344  1 ohci_pci
cdrom                  77824  1 sr_mod

Perhaps the whole part of cat /var/log/pacman.log related to the latest update when you got the error message can say something about what got updated, a possible clue?
:thinking:

1 Like

I agree with @Marte, in the /var/log/pacman.log you could verify the time stamp of this error line, to see if this relates to your last update. I have not identified a suspicious module from your list.

1 Like

I made

cat /var/log/pacman.log

and here is the 10 last lines

[2020-04-13T16:37:13+0200] [ALPM-SCRIPTLET] done
[2020-04-13T16:37:13+0200] [ALPM] running 'kernel-alive-post.hook'...
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET] 
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET] ==> Warning:
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET]      -> Kernel has been updated. Modules of the current kernel
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET]      -> have been backed up so you can continue to use your
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET]      -> computer. However, the new kernel will only work 
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET]      -> at next boot.
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET] 
[2020-04-13T16:37:15+0200] [ALPM-SCRIPTLET] 

then i made

cat /var/log/pacman.log | grep ERROR

Here the result

[2020-01-25T20:34:13+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-01-25T20:34:13+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-02-06T10:46:29+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-02-06T10:46:29+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-02-16T21:42:53+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-02-16T21:42:53+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-03-14T19:29:10+0100] [ALPM-SCRIPTLET] depmod: ERROR: could not open directory /lib/modules/5.3.18-1-MANJARO: No such file or directory
[2020-03-14T19:35:52+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-03-14T19:35:52+0100] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-04-01T17:51:46+0200] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-04-01T17:51:46+0200] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-04-10T12:18:13+0200] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-04-10T12:18:13+0200] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-04-11T14:07:51+0200] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
[2020-04-11T14:07:51+0200] [ALPM-SCRIPTLET] ==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory

So i suppose they're not related

1 Like

can you try

sudo mkinitcpio -P

Here the result

$ sudo mkinitcpio -P

==> Building image from preset: /etc/mkinitcpio.d/linux316.preset: 'default'
  -> -k /boot/vmlinuz-3.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-3.16-x86_64.img
==> Starting build: 3.16.82-3-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-3.16-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux316.preset: 'fallback'
  -> -k /boot/vmlinuz-3.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-3.16-x86_64-fallback.img -S autodetect
==> Starting build: 3.16.82-3-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-3.16-x86_64-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux419.preset: 'default'
  -> -k /boot/vmlinuz-4.19-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.19-x86_64.img
==> Starting build: 4.19.114-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-4.19-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux419.preset: 'fallback'
  -> -k /boot/vmlinuz-4.19-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.19-x86_64-fallback.img -S autodetect
==> Starting build: 4.19.114-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-4.19-x86_64-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux53.preset: 'default'
  -> -k /boot/vmlinuz-5.3-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.3-x86_64.img
==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux53.preset: 'fallback'
  -> -k /boot/vmlinuz-5.3-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.3-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.3.18-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux55.preset: 'default'
  -> -k /boot/vmlinuz-5.5-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.5-x86_64.img
==> Starting build: 5.5.16-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.5-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux55.preset: 'fallback'
  -> -k /boot/vmlinuz-5.5-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.5-x86_64-fallback.img -S autodetect
==> Starting build: 5.5.16-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.5-x86_64-fallback.img
==> Image generation successful

As you still have the error I would do

sudo depmod -a
sudo mkinitcpio -P

can you suppress all related to 5.3 in
/etc/mkinitcpio.d/linux53.*
/boot/vmlinuz-5.3-x86_64

2 Likes

Forum kindly sponsored by