ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64'

Hi,

I am using Manjaro from VirtualBox, my host system is Windows 10. I had problems upgrading the system using the GUI, then I tried with the terminal and I saw:

[angelc@manjaro ~]$ sudo pacman -Syu
[sudo] password for angelc: 
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                                                    167.7 KiB   141 KiB/s 00:01 [################################################] 100%
 extra                                                  1899.9 KiB  2.03 MiB/s 00:01 [################################################] 100%
 community                                                 6.9 MiB  3.93 MiB/s 00:02 [################################################] 100%
 multilib                                                174.3 KiB  1025 KiB/s 00:00 [################################################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

So I followed other post (don’t remember where I saw it) and did:

sudo rm -f /var/lib/pacman/sync/*
sudo pacman -Syyu

then, I could upgrade, but I saw:

==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64'
error: command failed to execute correctly
(13/33) Updating Kernel initcpios for Nvidia-DRM...

this seems to be a similar problem to /t/black-screen-error-after-kernel-version-change/65989/6

the information provided in that post, in my case is:

[angelc@manjaro ~]$ inxi -Fza
System:
  Kernel: 5.15.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=6c5e4343-9974-43d4-952b-8039846c56b9 rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.3
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Virtualbox System: innotek product: VirtualBox v: 1.2
    serial: <superuser required> Chassis: Oracle Corporation type: 1
    serial: <superuser required>
  Mobo: Oracle model: VirtualBox v: 1.2 serial: <superuser required>
    BIOS: innotek v: VirtualBox date: 12/01/2006
Battery:
  ID-1: BAT0 charge: 48.5 Wh (97.0%) condition: 50.0/50.0 Wh (100.0%)
    volts: 10.0 min: 10.0 model: innotek 1 type: Unknown serial: N/A
    status: N/A
CPU:
  Info: model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MCP
    arch: Zen 3 family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0x6000626
  Topology: cpus: 1x cores: 8 smt: <unsupported> cache: L1: 512 KiB
    desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 3294 min/max: N/A cores: 1: 3294 2: 3294 3: 3294
    4: 3294 5: 3294 6: 3294 7: 3294 8: 3294 bogomips: 52720
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
  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 status: Vulnerable
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Full AMD retpoline, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.19.0.0 bus-ID: 00:02.0
    chip-ID: 15ad:0405 class-ID: 0300
  Display: x11 server: X.org 1.21.1.3 compositor: gnome-shell driver:
    loaded: vmware unloaded: modesetting alternate: fbdev,vesa
    resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 82801AA AC97 Audio vendor: Dell driver: snd_intel8x0
    v: kernel bus-ID: 00:05.0 chip-ID: 8086:2415 class-ID: 0401
  Sound Server-1: ALSA v: k5.15.7-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 v: kernel port: d020
    bus-ID: 00:03.0 chip-ID: 8086:100e class-ID: 0200
  IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge
    driver: piix4_smbus v: N/A port: N/A bus-ID: 00:07.0 chip-ID: 8086:7113
    class-ID: 0680
  Device-3: Intel 82540EM Gigabit Ethernet driver: e1000 v: kernel
    port: d240 bus-ID: 00:08.0 chip-ID: 8086:100e class-ID: 0200
  IF: enp0s8 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 512 GiB used: 278.95 GiB (54.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: VirtualBox model: VBOX HARDDISK
    size: 512 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: N/A serial: <filter> rev: 1.0 scheme: MBR
Partition:
  ID-1: / raw-size: 512 GiB size: 502.89 GiB (98.22%) used: 34.16 GiB (6.8%)
    fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap:
  Alert: No swap data was found.
Sensors:
  Message: No sensor data found. Is lm-sensors configured?
Info:
  Processes: 305 Uptime: 4d 23h 12m wakeups: 62838 Memory: 24.46 GiB
  used: 9.78 GiB (40.0%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1347 lib: 304 flatpak: 0
  Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.12
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo mhwd-kernel -li
Currently running: 5.15.7-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515
[angelc@manjaro ~]$ sudo ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux515.preset

when I restart, after the upgrade, the machine takes me to a blue memtest screen, it seems unable to find the kernel. Given that I am using a virtual machine, I can take a snapshot before restarting and get back to the point after the upgrade, BTW I also have a snapshot before the upgrade and another before the rm -f /var/lib/pacman/sync/* line. I am not sure if what was done in the post above also would apply to me.

Cheers.

From this vm can you give the output of ls -lah /boot.

Hello,

The output is:

[angelc@manjaro ~]$ ls -lah /boot
total 72K
drwxr-xr-x  4 root root 4.0K Jan 30 13:51 .
drwxr-xr-x 18 root root 4.0K Dec 19 22:47 ..
-rw-r--r--  1 root root  50K Jan 11 03:33 amd-ucode.img
drwxr-xr-x  6 root root 4.0K Jan 30 13:52 grub
-rw-r--r--  1 root root   22 Jan 20 21:57 linux515-x86_64.kver
drwxr-xr-x  2 root root 4.0K Dec 11 17:57 memtest86+

Update this system and let the error come but don’t reboot yet. SInce you can’t reinstall your running kernel and chrooting in a vm isn’t easy, install linux516 which is the latest kernel and then reboot. You can switch back to 515 if everything goes well:

sudo pacman-mirrors -f5 && sudo pacman -Syyu  
sudo mhwd-kernel -i linux516
sudo update-grub

Reboot into 5.16 (Press Esc during boot to get into grub menu and boot with 5.16).

Hi,

Thanks, I did all you said:

[angelc@manjaro ~]$ ls -lah /boot
total 72K
drwxr-xr-x  4 root root 4.0K Jan 30 13:51 .
drwxr-xr-x 18 root root 4.0K Dec 19 22:47 ..
-rw-r--r--  1 root root  50K Jan 11 03:33 amd-ucode.img
drwxr-xr-x  6 root root 4.0K Jan 30 13:52 grub
-rw-r--r--  1 root root   22 Jan 20 21:57 linux515-x86_64.kver
drwxr-xr-x  2 root root 4.0K Dec 11 17:57 memtest86+
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo pacman-mirrors -f5 && sudo pacman -Syyu  
[sudo] password for angelc: 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.361 China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
::INFO Writing mirror list
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                                    167.7 KiB   470 KiB/s 00:00 [################################################] 100%
 extra                                                  1899.9 KiB  5.57 MiB/s 00:00 [################################################] 100%
 community                                                 6.9 MiB  9.90 MiB/s 00:01 [################################################] 100%
 multilib                                                174.3 KiB  2.33 MiB/s 00:00 [################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) libpamac-11.2.0-6  libpamac-flatpak-plugin-11.2.0-6  libpamac-snap-plugin-11.2.0-6

Total Download Size:   0.89 MiB
Total Installed Size:  3.63 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 libpamac-11.2.0-6-x86_64                                840.1 KiB  6.17 MiB/s 00:00 [################################################] 100%
 libpamac-flatpak-plugin-11.2.0-6-x86_64                  38.6 KiB   386 KiB/s 00:00 [################################################] 100%
 libpamac-snap-plugin-11.2.0-6-x86_64                     34.7 KiB   578 KiB/s 00:00 [################################################] 100%
 Total (3/3)                                             913.3 KiB  2.35 MiB/s 00:00 [################################################] 100%
(3/3) checking keys in keyring                                                       [################################################] 100%
(3/3) checking package integrity                                                     [################################################] 100%
(3/3) loading package files                                                          [################################################] 100%
(3/3) checking for file conflicts                                                    [################################################] 100%
(3/3) checking available disk space                                                  [################################################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/3) upgrading libpamac                                                             [################################################] 100%
(2/3) upgrading libpamac-flatpak-plugin                                              [################################################] 100%
(3/3) upgrading libpamac-snap-plugin                                                 [################################################] 100%
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Updating the MIME type database...
(4/4) Reloading system bus configuration...
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo mhwd-kernel -i linux516
:: Synchronizing package databases...
 core                                                    167.7 KiB   483 KiB/s 00:00 [################################################] 100%
 extra                                                  1899.9 KiB  5.67 MiB/s 00:00 [################################################] 100%
 community                                                 6.9 MiB  9.80 MiB/s 00:01 [################################################] 100%
 multilib                                                174.3 KiB  2.33 MiB/s 00:00 [################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (2) linux516-5.16.2-1  linux516-virtualbox-host-modules-6.1.30-3

Total Download Size:   115.86 MiB
Total Installed Size:  120.72 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 linux516-5.16.2-1-x86_64                                115.6 MiB  9.94 MiB/s 00:12 [################################################] 100%
 linux516-virtualbox-host-modules-6.1.30-3-x86_64        262.5 KiB  2.64 MiB/s 00:00 [################################################] 100%
 Total (2/2)                                             115.9 MiB  9.83 MiB/s 00:12 [################################################] 100%
(2/2) checking keys in keyring                                                       [################################################] 100%
(2/2) checking package integrity                                                     [################################################] 100%
(2/2) loading package files                                                          [################################################] 100%
(2/2) checking for file conflicts                                                    [################################################] 100%
(2/2) checking available disk space                                                  [################################################] 100%
:: Processing package changes...
(1/2) installing linux516                                                            [################################################] 100%
Optional dependencies for linux516
    crda: to set the correct wireless channels of your country [installed]
(2/2) installing linux516-virtualbox-host-modules                                    [################################################] 100%
===> You must load vboxdrv module before starting VirtualBox:
===> # modprobe vboxdrv
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Updating linux initcpios...
Using linux
linking executables.
ln: failed to create symbolic link '/root/.local/bin/./bin/alsabat-test': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/alsa-info': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/anytovcd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/cpufreq-bench_plot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/findssl': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/firegnome-enable': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gettext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gvmap': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lav2avi': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lavtc': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/listings-ext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lprsetup': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/mbedtls_key_ladder_demo': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-bug-report': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-sleep': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/setxrd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/thisroot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/unix-lpr': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/wiper': No such file or directory
Linking  //./bin/alsabat-test.sh             --->  /root/.local/bin/./bin/alsabat-test
Linking  //./bin/alsa-info.sh                --->  /root/.local/bin/./bin/alsa-info
Linking  //./bin/anytovcd.sh                 --->  /root/.local/bin/./bin/anytovcd
Linking  //./bin/cpufreq-bench_plot.sh       --->  /root/.local/bin/./bin/cpufreq-bench_plot
Linking  //./bin/findssl.sh                  --->  /root/.local/bin/./bin/findssl
Linking  //./bin/firegnome-enable.sh         --->  /root/.local/bin/./bin/firegnome-enable
Linking  //./bin/gettext.sh                  --->  /root/.local/bin/./bin/gettext
Linking  //./bin/gvmap.sh                    --->  /root/.local/bin/./bin/gvmap
Linking  //./bin/lav2avi.sh                  --->  /root/.local/bin/./bin/lav2avi
Linking  //./bin/lavtc.sh                    --->  /root/.local/bin/./bin/lavtc
Linking  //./bin/listings-ext.sh             --->  /root/.local/bin/./bin/listings-ext
Linking  //./bin/lprsetup.sh                 --->  /root/.local/bin/./bin/lprsetup
Linking  //./bin/mbedtls_key_ladder_demo.sh  --->  /root/.local/bin/./bin/mbedtls_key_ladder_demo
Linking  //./bin/nvidia-bug-report.sh        --->  /root/.local/bin/./bin/nvidia-bug-report
Linking  //./bin/nvidia-sleep.sh             --->  /root/.local/bin/./bin/nvidia-sleep
Linking  //./bin/setxrd.sh                   --->  /root/.local/bin/./bin/setxrd
Linking  //./bin/thisroot.sh                 --->  /root/.local/bin/./bin/thisroot
Linking  //./bin/unix-lpr.sh                 --->  /root/.local/bin/./bin/unix-lpr
Linking  //./bin/wiper.sh                    --->  /root/.local/bin/./bin/wiper
Using linux
linking executables.
ln: failed to create symbolic link '/root/.local/bin/./bin/alsabat-test': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/alsa-info': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/anytovcd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/cpufreq-bench_plot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/findssl': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/firegnome-enable': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gettext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gvmap': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lav2avi': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lavtc': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/listings-ext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lprsetup': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/mbedtls_key_ladder_demo': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-bug-report': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-sleep': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/setxrd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/thisroot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/unix-lpr': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/wiper': No such file or directory
Linking  //./bin/alsabat-test.sh             --->  /root/.local/bin/./bin/alsabat-test
Linking  //./bin/alsa-info.sh                --->  /root/.local/bin/./bin/alsa-info
Linking  //./bin/anytovcd.sh                 --->  /root/.local/bin/./bin/anytovcd
Linking  //./bin/cpufreq-bench_plot.sh       --->  /root/.local/bin/./bin/cpufreq-bench_plot
Linking  //./bin/findssl.sh                  --->  /root/.local/bin/./bin/findssl
Linking  //./bin/firegnome-enable.sh         --->  /root/.local/bin/./bin/firegnome-enable
Linking  //./bin/gettext.sh                  --->  /root/.local/bin/./bin/gettext
Linking  //./bin/gvmap.sh                    --->  /root/.local/bin/./bin/gvmap
Linking  //./bin/lav2avi.sh                  --->  /root/.local/bin/./bin/lav2avi
Linking  //./bin/lavtc.sh                    --->  /root/.local/bin/./bin/lavtc
Linking  //./bin/listings-ext.sh             --->  /root/.local/bin/./bin/listings-ext
Linking  //./bin/lprsetup.sh                 --->  /root/.local/bin/./bin/lprsetup
Linking  //./bin/mbedtls_key_ladder_demo.sh  --->  /root/.local/bin/./bin/mbedtls_key_ladder_demo
Linking  //./bin/nvidia-bug-report.sh        --->  /root/.local/bin/./bin/nvidia-bug-report
Linking  //./bin/nvidia-sleep.sh             --->  /root/.local/bin/./bin/nvidia-sleep
Linking  //./bin/setxrd.sh                   --->  /root/.local/bin/./bin/setxrd
Linking  //./bin/thisroot.sh                 --->  /root/.local/bin/./bin/thisroot
Linking  //./bin/unix-lpr.sh                 --->  /root/.local/bin/./bin/unix-lpr
Linking  //./bin/wiper.sh                    --->  /root/.local/bin/./bin/wiper
/usr/bin/mkinitcpio: line 371: /etc/mkinitcpio.d/linux516.preset: No such file or directory
==> ERROR: Failed to load preset: `/etc/mkinitcpio.d/linux516.preset'
error: command failed to execute correctly
(4/5) Updating Kernel initcpios for Nvidia-DRM...
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[angelc@manjaro ~]$ sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[angelc@manjaro ~]$ 

after I clicked on the restart button, instead of restarting, the screen went black and after a few minutes I had to turn the VM off. Then I turned it on and pressed esc but there is no kernel now, I only see a memtest86 entry. For some reason I am not allowed to upload media, I wanted to post a screenshot.

sudo nano/etc/mkinitcpio.d/linux516.preset

copy this

# mkinitcpio preset file for the 'linux516' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.16-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.16-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.16-x86_64-fallback.img"
fallback_options="-S autodetect"

save with Ctrl+X

sudo mhwd-kernel -i linux516
sudo update-grub
reboot

Hi,

Thanks for the instructions, I did:

  1. Go back to the snapshot before your original instructions.
  2. Do the original instructions plus the file you suggested to add:
[angelc@manjaro ~]$ ls -lah /boot
total 72K
drwxr-xr-x  4 root root 4.0K Jan 30 13:51 .
drwxr-xr-x 18 root root 4.0K Dec 19 22:47 ..
-rw-r--r--  1 root root  50K Jan 11 03:33 amd-ucode.img
drwxr-xr-x  6 root root 4.0K Jan 30 13:52 grub
-rw-r--r--  1 root root   22 Jan 20 21:57 linux515-x86_64.kver
drwxr-xr-x  2 root root 4.0K Dec 11 17:57 memtest86+
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo vim /etc/mkinitcpio.d/linux516.preset
[sudo] password for angelc: 
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ cat /etc/mkinitcpio.d/linux516.preset
# mkinitcpio preset file for the 'linux516' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.16-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.16-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.16-x86_64-fallback.img"
fallback_options="-S autodetect"
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo pacman-mirrors -f5 && sudo pacman -Syyu  
sudo mhwd-kernel -i linux516
sudo update-grub
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.353 China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
::INFO Writing mirror list
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                                    167.7 KiB   485 KiB/s 00:00 [################################################] 100%
 extra                                                  1899.9 KiB  6.04 MiB/s 00:00 [################################################] 100%
 community                                                 6.9 MiB  10.2 MiB/s 00:01 [################################################] 100%
 multilib                                                174.3 KiB  2.43 MiB/s 00:00 [################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) libpamac-11.2.0-6  libpamac-flatpak-plugin-11.2.0-6  libpamac-snap-plugin-11.2.0-6

Total Download Size:   0.89 MiB
Total Installed Size:  3.63 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 libpamac-11.2.0-6-x86_64                                840.1 KiB  6.31 MiB/s 00:00 [################################################] 100%
 libpamac-flatpak-plugin-11.2.0-6-x86_64                  38.6 KiB   643 KiB/s 00:00 [################################################] 100%
 libpamac-snap-plugin-11.2.0-6-x86_64                     34.7 KiB   578 KiB/s 00:00 [################################################] 100%
 Total (3/3)                                             913.3 KiB  2.60 MiB/s 00:00 [################################################] 100%
(3/3) checking keys in keyring                                                       [################################################] 100%
(3/3) checking package integrity                                                     [################################################] 100%
(3/3) loading package files                                                          [################################################] 100%
(3/3) checking for file conflicts                                                    [################################################] 100%
(3/3) checking available disk space                                                  [################################################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/3) upgrading libpamac                                                             [################################################] 100%
(2/3) upgrading libpamac-flatpak-plugin                                              [################################################] 100%
(3/3) upgrading libpamac-snap-plugin                                                 [################################################] 100%
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Updating the MIME type database...
(4/4) Reloading system bus configuration...
:: Synchronizing package databases...
 core                                                    167.7 KiB  30.7 KiB/s 00:05 [################################################] 100%
 extra                                                  1899.9 KiB  5.30 MiB/s 00:00 [################################################] 100%
 community                                                 6.9 MiB  9.24 MiB/s 00:01 [################################################] 100%
 multilib                                                174.3 KiB  2.13 MiB/s 00:00 [################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (2) linux516-5.16.2-1  linux516-virtualbox-host-modules-6.1.30-3

Total Download Size:   115.86 MiB
Total Installed Size:  120.72 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 linux516-5.16.2-1-x86_64                                115.6 MiB  9.90 MiB/s 00:12 [################################################] 100%
 linux516-virtualbox-host-modules-6.1.30-3-x86_64        262.5 KiB  3.20 MiB/s 00:00 [################################################] 100%
 Total (2/2)                                             115.9 MiB  9.80 MiB/s 00:12 [################################################] 100%
(2/2) checking keys in keyring                                                       [################################################] 100%
(2/2) checking package integrity                                                     [################################################] 100%
(2/2) loading package files                                                          [################################################] 100%
(2/2) checking for file conflicts                                                    [################################################] 100%
(2/2) checking available disk space                                                  [################################################] 100%
:: Processing package changes...
(1/2) installing linux516                                                            [################################################] 100%
Optional dependencies for linux516
    crda: to set the correct wireless channels of your country [installed]
(2/2) installing linux516-virtualbox-host-modules                                    [################################################] 100%
===> You must load vboxdrv module before starting VirtualBox:
===> # modprobe vboxdrv
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Updating linux initcpios...
Using linux
linking executables.
ln: failed to create symbolic link '/root/.local/bin/./bin/alsabat-test': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/alsa-info': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/anytovcd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/cpufreq-bench_plot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/findssl': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/firegnome-enable': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gettext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gvmap': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lav2avi': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lavtc': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/listings-ext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lprsetup': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/mbedtls_key_ladder_demo': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-bug-report': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-sleep': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/setxrd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/thisroot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/unix-lpr': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/wiper': No such file or directory
Linking  //./bin/alsabat-test.sh             --->  /root/.local/bin/./bin/alsabat-test
Linking  //./bin/alsa-info.sh                --->  /root/.local/bin/./bin/alsa-info
Linking  //./bin/anytovcd.sh                 --->  /root/.local/bin/./bin/anytovcd
Linking  //./bin/cpufreq-bench_plot.sh       --->  /root/.local/bin/./bin/cpufreq-bench_plot
Linking  //./bin/findssl.sh                  --->  /root/.local/bin/./bin/findssl
Linking  //./bin/firegnome-enable.sh         --->  /root/.local/bin/./bin/firegnome-enable
Linking  //./bin/gettext.sh                  --->  /root/.local/bin/./bin/gettext
Linking  //./bin/gvmap.sh                    --->  /root/.local/bin/./bin/gvmap
Linking  //./bin/lav2avi.sh                  --->  /root/.local/bin/./bin/lav2avi
Linking  //./bin/lavtc.sh                    --->  /root/.local/bin/./bin/lavtc
Linking  //./bin/listings-ext.sh             --->  /root/.local/bin/./bin/listings-ext
Linking  //./bin/lprsetup.sh                 --->  /root/.local/bin/./bin/lprsetup
Linking  //./bin/mbedtls_key_ladder_demo.sh  --->  /root/.local/bin/./bin/mbedtls_key_ladder_demo
Linking  //./bin/nvidia-bug-report.sh        --->  /root/.local/bin/./bin/nvidia-bug-report
Linking  //./bin/nvidia-sleep.sh             --->  /root/.local/bin/./bin/nvidia-sleep
Linking  //./bin/setxrd.sh                   --->  /root/.local/bin/./bin/setxrd
Linking  //./bin/thisroot.sh                 --->  /root/.local/bin/./bin/thisroot
Linking  //./bin/unix-lpr.sh                 --->  /root/.local/bin/./bin/unix-lpr
Linking  //./bin/wiper.sh                    --->  /root/.local/bin/./bin/wiper
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'default'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.16-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'fallback'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.16-x86_64'
error: command failed to execute correctly
(4/5) Updating Kernel initcpios for Nvidia-DRM...
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[angelc@manjaro ~]$ reboot
  1. rebooted

I still see a black screen afterwards. If, after five minutes I turn off the machine and restart, I see the same memtest86 only screen.

I wasn’t to reproduce the error in a vm. You can try creating a empty file there as suggested here:

sudo touch /boot/vmlinuz-5.15-x86_64 /boot/vmlinuz-5.16-x86_64
sudo mkinitcpio -P

then

Hello,

  1. I went back to the snapshot of the system before any upgrade.
  2. I followed your instructions:
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo touch /boot/vmlinuz-5.15-x86_64 /boot/vmlinuz-5.16-x86_64
[sudo] password for angelc: 
[angelc@manjaro ~]$ sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.7-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: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.7-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: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
[angelc@manjaro ~]$ sudo vim /etc/mkinitcpio.d/linux516.preset
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ cat /etc/mkinitcpio.d/linux516.preset
# mkinitcpio preset file for the 'linux516' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.16-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.16-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.16-x86_64-fallback.img"
fallback_options="-S autodetect"
[angelc@manjaro ~]$ 
[angelc@manjaro ~]$ sudo pacman-mirrors -f5 && sudo pacman -Syyu
sudo mhwd-kernel -i linux516
sudo update-grub
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.358 China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
::INFO Writing mirror list
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                                    167.7 KiB   474 KiB/s 00:00 [################################################] 100%
 extra                                                  1899.9 KiB  6.18 MiB/s 00:00 [################################################] 100%
 community                                                 6.9 MiB  10.2 MiB/s 00:01 [################################################] 100%
 multilib                                                174.3 KiB  2.24 MiB/s 00:00 [################################################] 100%
:: Starting full system upgrade...
:: Replace hwids with core/hwdata? [Y/n] Y
:: Replace kvantum-qt5 with community/kvantum? [Y/n] Y
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:

a lot of lines here that I cannot post because I would go beyond the 150 000 characters limit. The end of the dump is:

( 3/33) Reloading system manager configuration...
( 4/33) Updating udev hardware database...
( 5/33) Applying kernel sysctl settings...
( 6/33) Creating temporary files...
( 7/33) Reloading device manager configuration...
( 8/33) Arming ConditionNeedsUpdate...
( 9/33) Updating the MIME type database...
(10/33) Rebuilding certificate stores...
(11/33) Updating module dependencies...
(12/33) Updating linux initcpios...
Using linux
linking executables.
ln: failed to create symbolic link '/root/.local/bin/./bin/alsabat-test': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/alsa-info': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/anytovcd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/cpufreq-bench_plot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/findssl': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/firegnome-enable': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gettext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gvmap': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lav2avi': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lavtc': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/listings-ext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lprsetup': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/mbedtls_key_ladder_demo': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-bug-report': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-sleep': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/setxrd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/thisroot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/unix-lpr': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/wiper': No such file or directory
Linking  //./bin/alsabat-test.sh             --->  /root/.local/bin/./bin/alsabat-test
Linking  //./bin/alsa-info.sh                --->  /root/.local/bin/./bin/alsa-info
Linking  //./bin/anytovcd.sh                 --->  /root/.local/bin/./bin/anytovcd
Linking  //./bin/cpufreq-bench_plot.sh       --->  /root/.local/bin/./bin/cpufreq-bench_plot
Linking  //./bin/findssl.sh                  --->  /root/.local/bin/./bin/findssl
Linking  //./bin/firegnome-enable.sh         --->  /root/.local/bin/./bin/firegnome-enable
Linking  //./bin/gettext.sh                  --->  /root/.local/bin/./bin/gettext
Linking  //./bin/gvmap.sh                    --->  /root/.local/bin/./bin/gvmap
Linking  //./bin/lav2avi.sh                  --->  /root/.local/bin/./bin/lav2avi
Linking  //./bin/lavtc.sh                    --->  /root/.local/bin/./bin/lavtc
Linking  //./bin/listings-ext.sh             --->  /root/.local/bin/./bin/listings-ext
Linking  //./bin/lprsetup.sh                 --->  /root/.local/bin/./bin/lprsetup
Linking  //./bin/mbedtls_key_ladder_demo.sh  --->  /root/.local/bin/./bin/mbedtls_key_ladder_demo
Linking  //./bin/nvidia-bug-report.sh        --->  /root/.local/bin/./bin/nvidia-bug-report
Linking  //./bin/nvidia-sleep.sh             --->  /root/.local/bin/./bin/nvidia-sleep
Linking  //./bin/setxrd.sh                   --->  /root/.local/bin/./bin/setxrd
Linking  //./bin/thisroot.sh                 --->  /root/.local/bin/./bin/thisroot
Linking  //./bin/unix-lpr.sh                 --->  /root/.local/bin/./bin/unix-lpr
Linking  //./bin/wiper.sh                    --->  /root/.local/bin/./bin/wiper
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'default'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64.img
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.16-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'fallback'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64-fallback.img -S autodetect
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.16-x86_64'
error: command failed to execute correctly
(13/33) Updating Kernel initcpios for Nvidia-DRM...
(14/33) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.16-x86_64
Found initrd image: /boot/amd-ucode.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
(15/33) Reloading system bus configuration...
(16/33) Updating system dconf databases...
(17/33) Warn about old perl modules
(18/33) Updating fontconfig cache...
(19/33) Probing GDK-Pixbuf loader modules...
(20/33) Gnome GDM theme backup
(21/33) Manjaro GDM theme install
(22/33) Compiling GSettings XML schema files...
(23/33) Probing GTK3 input method modules...
(24/33) Updating icon theme caches...
(25/33) Updating GTK4 module cache...
(26/33) Updating TeXLive filename database...
(27/33) Changing NetworkManager Connectivity-Ping to manjaro.org
(28/33) Configuring pacman-mirrors ...
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
hint: use `pacman-mirrors` to generate and update your pacman mirrorlist.
(29/33) Updating the info directory file...
(30/33) Updating TeXLive format files...
(31/33) Updating TeXLive font maps...
(32/33) Updating the desktop file MIME type cache...
(33/33) Updating Vim help tags...
[sudo] password for angelc: 
:: Synchronizing package databases...
 core                                                                                                                                         167.7 KiB   474 KiB/s 00:00 [#########################################################################################################] 100%
 extra                                                                                                                                       1899.9 KiB  6.18 MiB/s 00:00 [#########################################################################################################] 100%
 community                                                                                                                                      6.9 MiB  10.1 MiB/s 00:01 [#########################################################################################################] 100%
 multilib                                                                                                                                     174.3 KiB  2.33 MiB/s 00:00 [#########################################################################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (1) linux516-5.16.2-1

Total Download Size:   115.61 MiB
Total Installed Size:  120.49 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 linux516-5.16.2-1-x86_64                                                                                                                     115.6 MiB  9.69 MiB/s 00:12 [#########################################################################################################] 100%
(1/1) checking keys in keyring                                                                                                                                            [#########################################################################################################] 100%
(1/1) checking package integrity                                                                                                                                          [#########################################################################################################] 100%
(1/1) loading package files                                                                                                                                               [#########################################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                                         [#########################################################################################################] 100%
(1/1) checking available disk space                                                                                                                                       [#########################################################################################################] 100%
:: Processing package changes...
(1/1) installing linux516                                                                                                                                                 [#########################################################################################################] 100%
Optional dependencies for linux516
    crda: to set the correct wireless channels of your country [installed]
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Updating linux initcpios...
Using linux
linking executables.
ln: failed to create symbolic link '/root/.local/bin/./bin/alsabat-test': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/alsa-info': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/anytovcd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/cpufreq-bench_plot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/findssl': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/firegnome-enable': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gettext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/gvmap': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lav2avi': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lavtc': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/listings-ext': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/lprsetup': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/mbedtls_key_ladder_demo': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-bug-report': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/nvidia-sleep': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/setxrd': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/thisroot': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/unix-lpr': No such file or directory
ln: failed to create symbolic link '/root/.local/bin/./bin/wiper': No such file or directory
Linking  //./bin/alsabat-test.sh             --->  /root/.local/bin/./bin/alsabat-test
Linking  //./bin/alsa-info.sh                --->  /root/.local/bin/./bin/alsa-info
Linking  //./bin/anytovcd.sh                 --->  /root/.local/bin/./bin/anytovcd
Linking  //./bin/cpufreq-bench_plot.sh       --->  /root/.local/bin/./bin/cpufreq-bench_plot
Linking  //./bin/findssl.sh                  --->  /root/.local/bin/./bin/findssl
Linking  //./bin/firegnome-enable.sh         --->  /root/.local/bin/./bin/firegnome-enable
Linking  //./bin/gettext.sh                  --->  /root/.local/bin/./bin/gettext
Linking  //./bin/gvmap.sh                    --->  /root/.local/bin/./bin/gvmap
Linking  //./bin/lav2avi.sh                  --->  /root/.local/bin/./bin/lav2avi
Linking  //./bin/lavtc.sh                    --->  /root/.local/bin/./bin/lavtc
Linking  //./bin/listings-ext.sh             --->  /root/.local/bin/./bin/listings-ext
Linking  //./bin/lprsetup.sh                 --->  /root/.local/bin/./bin/lprsetup
Linking  //./bin/mbedtls_key_ladder_demo.sh  --->  /root/.local/bin/./bin/mbedtls_key_ladder_demo
Linking  //./bin/nvidia-bug-report.sh        --->  /root/.local/bin/./bin/nvidia-bug-report
Linking  //./bin/nvidia-sleep.sh             --->  /root/.local/bin/./bin/nvidia-sleep
Linking  //./bin/setxrd.sh                   --->  /root/.local/bin/./bin/setxrd
Linking  //./bin/thisroot.sh                 --->  /root/.local/bin/./bin/thisroot
Linking  //./bin/unix-lpr.sh                 --->  /root/.local/bin/./bin/unix-lpr
Linking  //./bin/wiper.sh                    --->  /root/.local/bin/./bin/wiper
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'default'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64.img
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.16-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'fallback'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64-fallback.img -S autodetect
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.16-x86_64'
error: command failed to execute correctly
(4/5) Updating Kernel initcpios for Nvidia-DRM...
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.16-x86_64
Found initrd image: /boot/amd-ucode.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.16-x86_64
Found initrd image: /boot/amd-ucode.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

then I restarted and the black screen happens again. I turned off the machine, started it and I now see:

and when pressing enter on it I see:

BTW, it seems that I am a basic user and I can upload images now.

Cheers.

From this:

I guess that you are now at the point where you do not have a kernel installed.

Next you created empty files with the same name as the kernel-images

You could check this by again running:
ls -lah /boot

and then you ran the command to create the initial ram disk (mkinitcpio)

and used the empty files - instead of actual kernel images

You need to install a kernel!

… and you do not need the virtualbox-host-modules package
this is only needed for the host - not in the guest

I replicated the issue in a vm successfully and only way out is to chroot through a live session. Grab a iso and at top of your vm go to Devices > Optical Drives > Choose a disk file. Now reboot the vm and press f12 to select boot device. press c to select cdrom and boot into the live env. hopefully this should fix it:

manjaro-chroot -a
pacman-mirrors --fasttrack 5 && sudo pacman -Syyu 
mhwd-kernel -i linux516
update-grub
exit

This fixed it for me and I am out of ideas now if it doesn’t for you.

ss

before fixing

Screenshot_20220130_174944

2 Likes

Hi,

Thanks for your reply. From the virtual machine screenshot with the upgrade, I :

  1. made a bootable USB again and went to Devices>Optical Drives and chose the iso.
  2. Restarted and saw

without having to press f12 or selecting the cdrom, it did not even give me time to do any of this before it showed me the screen.

  1. I pressed the Boot with open source drivers button and once in the operating system I did:
    ~  manjaro-chroot -a                                                ✔ 
==> Mounting (ManjaroLinux) [/dev/sda1]
 --> mount: [/mnt]
[manjaro-gnome /]# pacman-mirrors --fasttrack 5 && sudo pacman -Syyu 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.356 China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
  0.087 China          : https://mirrors.huaweicloud.com/manjaro/
::INFO Writing mirror list
::China           : https://mirrors.huaweicloud.com/manjaro/stable/$repo/$arch
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                  167.7 KiB  2.13 MiB/s 00:00 [######################] 100%
 extra                1899.9 KiB  9.92 MiB/s 00:00 [######################] 100%
 community                                                                                                                                      6.9 MiB  10.5 MiB/s 00:01 [#########################################################################################################] 100%
 multilib                                                                                                                                     174.3 KiB  4.15 MiB/s 00:00 [#########################################################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) libpamac-11.2.0-6  libpamac-flatpak-plugin-11.2.0-6  libpamac-snap-plugin-11.2.0-6

Total Download Size:   0.89 MiB
Total Installed Size:  3.63 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 libpamac-11.2.0-6-x86_64                                                                                                                     840.1 KiB  6.46 MiB/s 00:00 [#########################################################################################################] 100%
 libpamac-flatpak-plugin-11.2.0-6-x86_64                                                                                                       38.6 KiB  2.22 MiB/s 00:00 [#########################################################################################################] 100%
 libpamac-snap-plugin-11.2.0-6-x86_64                                                                                                          34.7 KiB  2039 KiB/s 00:00 [#########################################################################################################] 100%
 Total (3/3)                                                                                                                                  913.3 KiB  4.39 MiB/s 00:00 [#########################################################################################################] 100%
(3/3) checking keys in keyring                                                                                                                                            [#########################################################################################################] 100%
(3/3) checking package integrity                                                                                                                                          [#########################################################################################################] 100%
(3/3) loading package files                                                                                                                                               [#########################################################################################################] 100%
(3/3) checking for file conflicts                                                                                                                                         [#########################################################################################################] 100%
(3/3) checking available disk space                                                                                                                                       [#########################################################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/3) upgrading libpamac                                                                                                                                                  [#########################################################################################################] 100%
(2/3) upgrading libpamac-flatpak-plugin                                                                                                                                   [#########################################################################################################] 100%
(3/3) upgrading libpamac-snap-plugin                                                                                                                                      [#########################################################################################################] 100%
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
  Skipped: Running in chroot.
(2/4) Arming ConditionNeedsUpdate...
(3/4) Updating the MIME type database...
(4/4) Reloading system bus configuration...
  Skipped: Running in chroot.
[manjaro-gnome /]# mhwd-kernel -i linux516
:: Synchronizing package databases...
 core                                                                                                                                         167.7 KiB  1677 KiB/s 00:00 [#########################################################################################################] 100%
 extra                                                                                                                                       1899.9 KiB  8.67 MiB/s 00:00 [#########################################################################################################] 100%
 community                                                                                                                                      6.9 MiB  9.76 MiB/s 00:01 [#########################################################################################################] 100%
 multilib                                                                                                                                     174.3 KiB  5.01 MiB/s 00:00 [#########################################################################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (2) linux516-5.16.2-1  linux516-virtualbox-host-modules-6.1.30-3

Total Download Size:   115.86 MiB
Total Installed Size:  120.72 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 linux516-5.16.2-1-x86_64                                                                                                                     115.6 MiB  11.2 MiB/s 00:10 [#########################################################################################################] 100%
 linux516-virtualbox-host-modules-6.1.30-3-x86_64                                                                                             262.5 KiB  5.13 MiB/s 00:00 [#########################################################################################################] 100%
 Total (2/2)                                                                                                                                  115.9 MiB  11.1 MiB/s 00:10 [#########################################################################################################] 100%
(2/2) checking keys in keyring                                                                                                                                            [#########################################################################################################] 100%
(2/2) checking package integrity                                                                                                                                          [#########################################################################################################] 100%
(2/2) loading package files                                                                                                                                               [#########################################################################################################] 100%
(2/2) checking for file conflicts                                                                                                                                         [#########################################################################################################] 100%
(2/2) checking available disk space                                                                                                                                       [#########################################################################################################] 100%
:: Processing package changes...
(1/2) installing linux516                                                                                                                                                 [#########################################################################################################] 100%
Optional dependencies for linux516
    crda: to set the correct wireless channels of your country [installed]
(2/2) installing linux516-virtualbox-host-modules                                                                                                                         [#########################################################################################################] 100%
===> You must load vboxdrv module before starting VirtualBox:
===> # modprobe vboxdrv
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'default'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64.img
==> Starting build: 5.16.2-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: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.16-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux516.preset: 'fallback'
  -> -k /boot/vmlinuz-5.16-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.16-x86_64-fallback.img -S autodetect
==> Starting build: 5.16.2-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.16-x86_64-fallback.img
==> Image generation successful
(4/5) Updating Kernel initcpios for Nvidia-DRM...
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.16-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.16-x86_64.img
Found initrd fallback image: /boot/initramfs-5.16-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro-gnome /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.16-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.16-x86_64.img
Found initrd fallback image: /boot/initramfs-5.16-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro-gnome /]# 
[manjaro-gnome /]# 
  1. I restarted but then I ended up booting from the USB, so I had to restart again and press f12, then I saw a black screen, telling me about some error, I should have taken a screenshot.

  2. In that black screen I went to Devices>Optical Drives and removed the USB with the ISO.

  3. Restarted and managed to return to the operating system. Everything seems to be fine now. For reference, I see:

angelc@manjaro ~]$ sudo mhwd-kernel -li
Currently running: 5.16.2-1-MANJARO (linux516)
The following kernels are installed in your system:
   * linux515
   * linux516

thanks for your help. Tell me if you need to know anything else from the recovered system.

Cheers.

Hi,

The instructions did seem strange, yes. However, I need this computer to work because I use it for work, so if you, the experts, tell me to make a text file and run some weird command, I am going to try it. My field of expertise is not Linux and I mostly use the computer to get stuff done, so I am not aiming at becoming a Linux guru either. I just need something that works so that I can move on with the work that I am getting paid to do.

Cheers.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.