Before I start I will specify that I am running a Ryzen 9 5900 and an RTX 3070 ti with Manjaro gnome.
I was recently working on my computer and saw that I had updates pending (default update indicator). In “Add/Remove Software” I just hit apply to all updates and after the update had started I saw something along the lines of a conflict with two versions of my NVIDIA drivers (I use proprietary drivers). I quickly restarted the system and it hung trying to boot for a while. I realised that I should probably roll back the update so I switched to VTY and following linuxconfig (can’t include links in post because this is a brand new account) , I did. Rebooted and nothing changed so I simply undid that with a “sudo pacman -Syu”. I read through the log files (/var/log/*.log) and noticed that under NVIDIA it had “failed to initialise the NVIDIA kernel module” I was reading through the log files and looking around online as to what to do and after making no noticeable changes ctr + alt + Fx stopped working. I have set up a bootable usb of Manjaro and can’t really figure out what to do from here because the vast majority of solutions rely on TTY. Any help would be greatly appreciated.
This kernel has been dropped from all repository’s. Please upgrade to a LTS (Long Term Support) kernel such as 5.15 or 5.10.
These commands should change the kernel to 5.10. (Run from Live USB Stick)
sudo manjaro-chroot -a
mhwd-kernel -i linux510
mhwd-kernel -r linux513
exit
Reboot and you should be running 5.10 and the updates should work again. Next time maybe wait until an update post has been posted and check it.
After trying to install kernel version 5.15 it gave me the message that it could not reinstall the current kernel. So I downloaded 5.10 and didn’t notice that there was an error saying no targets specified (I took a picture of all output and saw it afterwards, massive oversight on my part). Removed kernel 5.13, rebooted, and then grub refused to started. Now listing the kernel says none are installed but 5.15 is my current kernel. Booted straight into the USB and managed to get grub back up and running (despite only having my motherboard settings as an option and seeing windows and a couple other entries when listing them but that’s the least of my worried right now).
Any way to get around the no targets specified error?
Problem is trying to install Linux kernel 5.15 it says you can’t reinstall your current kernel and with 5.10 it starts downloading before throwing “error: no targets specified (use -h for help)”
MHWD-kernel -i doesn’t work from a chroot environment, apparently, so I had to install it from the live boot in chroot using: sudo pacman -S linux515
That meant grub started working properly and I could boot up into the TTY using ctr+shift+F2
I also installed the linux 5.10 kernel from here using the preferred: sudo mhwd-kernel -i linux 510 so that I could boot up using that kernel remove the 5.15 kernel that I installed using pacman and reinstall it using sudo mhwd-kernel -i linux 515 later.
After that within the TTY I just tried uninstalling and reinstalling the video-nvidia drivers using: sudo mhwd -r pci video-nvidia and then sudo mhwd -i pci video-nvidia
It chugged on in the background for a while before finally booting straight into the login page.
Thank you so much to @stephane@ThommoMC and @andreas85 for contributing.
I’ll make sure to keep my kernel up to date and stable and make sure to wait for information to come out on an update before I do apply it.