Doesnt seem like I can
[manjaro /]# mhwd-kernel -r linux510 linux518
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux510 breaks dependency 'linux510' required by linux-latest
Doesnt seem like I can
[manjaro /]# mhwd-kernel -r linux510 linux518
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux510 breaks dependency 'linux510' required by linux-latest
is that the whole command, it looks like its cut at the end
Yeah, that is what I got.
[manjaro@manjaro ~]$ sudo manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sdb1]
--> mount: [/mnt]
--> mount: [/mnt/home/pina/windows]
[manjaro /]# mhwd-kernel -r linux510 linux518
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux510 breaks dependency 'linux510' required by linux-latest
[manjaro /]#
I can remove just 518 though.
[manjaro /]# mhwd-kernel -r linux510
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux510 breaks dependency 'linux510' required by linux-latest
[manjaro /]# mhwd-kernel -r linux518
checking dependencies...
Packages (2) linux518-5.18.6-1 linux518-nvidia-515.48.07-7
Total Removed Size: 171.67 MiB
:: Do you want to remove these packages? [Y/n] y
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
:: Processing package changes...
(1/2) removing linux518-nvidia [####################################################################] 100%
depmod: ERROR: could not open directory /lib/modules/5.18.6-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
error: command failed to execute correctly
(2/2) removing linux518 [####################################################################] 100%
ldconfig: /usr/lib/libhiredis.so is for unknown machine 40.
ldconfig: /usr/lib/libpollux.so is for unknown machine 40.
ldconfig: /usr/lib/libhiredis.so.0.13 is for unknown machine 40.
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Updating Kernel initcpios for Nvidia-DRM...
(4/4) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-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.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Found Windows 10 on /dev/sda1
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mhwd-kernel -r linux510
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux510 breaks dependency 'linux510' required by linux-latest
After which,
[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
[manjaro /]#
what the hell is linux latest… try this command:
pacman -Rns linux510
I have no idea. I thought I kinda knew what was going on at first, but I am quite lost at the moment.
[manjaro /]# pacman -Rns linux510
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux510 breaks dependency 'linux510' required by linux-latest
:: removing linux510 breaks dependency 'linux510' required by linux510-nvidia
[manjaro /]#
According to this, I should get rid of linux-latest
i didnt find linux-latest in pamac, so yes remove it first
pacman -Rns linux-latest
pacman -Rns linux510-nvidia
pacman -Rns linux510
At some time the package linux-latest has been used to update to every latest kernel that got available. (best to be removed !)
[manjaro /]# pacman -Rns linux510-nvidia
checking dependencies...
Packages (1) linux510-nvidia-515.48.07-7
Total Removed Size: 36.32 MiB
:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing linux510-nvidia [####################################################################] 100%
depmod: ERROR: could not open directory /lib/modules/5.10.124-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
error: command failed to execute correctly
ldconfig: /usr/lib/libhiredis.so is for unknown machine 40.
ldconfig: /usr/lib/libpollux.so is for unknown machine 40.
ldconfig: /usr/lib/libhiredis.so.0.13 is for unknown machine 40.
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating Kernel initcpios for Nvidia-DRM...
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
error: command failed to execute correctly
I guess I will try starting to remove linux-latest and work out from there
yes i edited my post …
thank you for the info
Thanks for that.
I have now removed 510, so the result:
[manjaro /]# mkinitcpio -P
==> ERROR: No presets found in /etc/mkinitcpio.d
so now install them again:
mhwd-kernel -i linux510 linux518
install nvidia:
mhwd -a pci nonfree 0300
these again:
update-grub
mkinitcpio -P
exit
systemctl reboot
and if there are errors in the mkinit command, dont reboot, post the errors here
hmm… does not seem to reinstall
[manjaro /]# mhwd-kernel -i linux510 linux518
:: Synchronizing package databases...
core 167.4 KiB 786 KiB/s 00:00 [####################################################################] 100%
extra 1864.1 KiB 13.3 MiB/s 00:00 [####################################################################] 100%
community 7.0 MiB 38.2 MiB/s 00:00 [####################################################################] 100%
multilib 175.5 KiB 4.76 MiB/s 00:00 [####################################################################] 100%
error: no targets specified (use -h for help)
[manjaro /]# mhwd-kernel -i linux510 linux518 -h
Error: Invalid argument.
Please choose one of the available kernels:
* linux419
* linux510
* linux515
* linux517
* linux518
* linux519
* linux54
* linux515-rt
* linux518-rt
[manjaro /]#
and one at a time:
mhwd-kernel -i linux510
mhwd-kernel -i linux518
then continue with the commands from post above
I tried that as well. But nope.
[manjaro /]# mhwd-kernel -i linux510
:: Synchronizing package databases...
core 167.4 KiB 364 KiB/s 00:00 [####################################################################] 100%
extra 1864.1 KiB 14.0 MiB/s 00:00 [####################################################################] 100%
community 7.0 MiB 45.7 MiB/s 00:00 [####################################################################] 100%
multilib 175.5 KiB 5.19 MiB/s 00:00 [####################################################################] 100%
error: no targets specified (use -h for help)
[manjaro /]# mhwd-kernel -i linux518
:: Synchronizing package databases...
core 167.4 KiB 56.1 KiB/s 00:03 [####################################################################] 100%
extra 1864.1 KiB 9.95 MiB/s 00:00 [####################################################################] 100%
community 7.0 MiB 609 KiB/s 00:12 [####################################################################] 100%
multilib 175.5 KiB 354 KiB/s 00:00 [####################################################################] 100%
error: no targets specified (use -h for help)
[manjaro /]#
and using pacman:
pacman -S linux510 linux518
Pacman does seem to do the trick, but then I run into the old problem.
[manjaro /]# pacman -S linux510 linux518
resolving dependencies...
looking for conflicting packages...
Packages (2) linux510-5.10.124-1 linux518-5.18.6-1
Total Installed Size: 211.43 MiB
:: Proceed with installation? [Y/n] y
(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 linux510 [####################################################################] 100%
Optional dependencies for linux510
wireless-regdb: to set the correct wireless channels of your country [installed]
(2/2) installing linux518 [####################################################################] 100%
Optional dependencies for linux518
wireless-regdb: to set the correct wireless channels of your country [installed]
ldconfig: /usr/lib/libhiredis.so is for unknown machine 40.
ldconfig: /usr/lib/libpollux.so is for unknown machine 40.
ldconfig: /usr/lib/libhiredis.so.0.13 is for unknown machine 40.
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
depmod: ERROR: could not open directory /lib/modules/5.10.124-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: ERROR: could not open directory /lib/modules/5.18.6-1-MANJARO: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'default'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64.img
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'fallback'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
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.18-x86_64
Found initrd image: /boot/intel-ucode.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-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.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Found Windows 10 on /dev/sda1
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mhwd-kernel -li
Currently running: 5.15.48-1-MANJARO (linux515)
The following kernels are installed in your system:
* linux510
* linux518
[manjaro /]# mhwd -a pci nonfree 0300
> Skipping already installed config 'video-nvidia' for device: 0000:01:00.0 (0300:10de:1c02) Display controller nVidia Corporation GP106 [GeForce GTX 1060 3GB]
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.18-x86_64
Found initrd image: /boot/intel-ucode.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-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.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Found Windows 10 on /dev/sda1
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
-> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.10.124-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'default'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64.img
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'fallback'
-> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64-fallback.img -S autodetect
==> ERROR: '/lib/modules/5.18.6-1-MANJARO' is not a valid kernel module directory
[manjaro /]#
try running a system update again:
pacman -Syyuu
any errors from this command?
Nope. It just says there is nothing to do
[manjaro /]# pacman -Syyuu
:: Synchronizing package databases...
core 167.4 KiB 747 KiB/s 00:00 [####################################################################] 100%
extra 1864.1 KiB 13.0 MiB/s 00:00 [####################################################################] 100%
community 7.0 MiB 37.0 MiB/s 00:00 [####################################################################] 100%
multilib 175.5 KiB 5.04 MiB/s 00:00 [####################################################################] 100%
:: Starting full system upgrade...
there is nothing to do
this is a mess…
so uninstall them again:
pacman -R linux510 linux518
then run again:
update-grub
mkinitcpio -P
and post again output from these:
ls /etc/mkinitcpio.d/*
sudo ls /boot/initramfs-*
sudo ls /boot/vmlinuz-*
sudo ls /usr/lib/modules/*