This afternoon I booted my computer and was greeted with a scary black screen with white text. These are the first few lines of it:
initramfs unpacking failed: read error
init[1]: segfault at 8 ip 00007fcfd222a7d7 sp 00007fff156c8810 error 4 in ld-linux-x86-64.so 2[herewentlotsofnumbers] likely on CPU 1 (core 1, socket 0)
code lots of numbers
Kernel panic - not syncing: attempted to kill init! exitcode =000
CPU: 1 PID: 1 comm: init not tained
Hardware name: to e filled by O.E.M. To be filled by O.E.M /z370 Pro$. BIos p4.30 10/31/2019
Looking at the message it is talking about hardware (CPU), but I got an update prompt yesterday afternoon and I ran that, so I thought it might be related.
So I went and downloaded the latest Manjaro xfce Iso. When I booted there I got the option to select a two fallback options. One was with a 5. something kernel and the other was with a 4 something kernel, I think. As I had seen something about a problem with the a 5.something kernel I chose the 4.something version fallback and the system booted and loaded my desktop, but it seems to be an older version.
What should I do now to get back to the version I had yesterday?
On a side note, I do not think I was running the problematic Kernel as I had not updated the kernel in a while. I cannot remember which one it was, but I think it was the latest LTS kernel
Most likely it was 4.19 and 5.4? There was a change which defaults mkinitcpio to use zstd for compression. For these old kernel versions, you would need to explicitly configure, that it uses gzip instead, since zstd is only supported since 5.10.
In general:
boot a live sessions
chroot into the local installation
edit /etc/mkinitcpio.conf and set COMPRESSION="gzip"
Recreate the images: mkinitcpio -P
Or search the forum, there might be a better description.
When I boot from live usb: Manjaro linux - goes to the same error screen
under Advanced options for Manjaro linux
- Kernel 6.1.41-1 goes to the same error
- Kernel 6.1.41-1 (fallback) returns error: file /boot/initramfs-6.1-x86_64-fallback-img not found
and the press any key to continue does not work. kernel 4.19.289-1- lets me load, but when I run sudo manjaro-chroot -a returns command not found kernel 4.19.289-1 (fallback) also lets me in but sudo manjaro-chroot -a returns command not found
Oh, that makes sense, thank you.
So I finally I got on live usb.
And ran manjaro-chroot -a
and then mhwd-kernel --list and I got these to chose from:
linux419
linux510
linux515
linux54
linux61
linux64
linux65
linux61-rt
linux64-rt
Would the longterm: 6.1.45 be a good option to go for, and would it be possible, given when I tried to choose it earlier it reverted me to the initial? initramfs error
[manjaro /]# [ -f /var/lib/pacman/db.lck ] && rm -f /var/lib/pacman/db.lck
[manjaro /]# pacman -Syu
:: Synchronizing package databases...
core.db failed to download
error: failed retrieving file 'core.db' from mirror.netcologne.de : Could not resolve host: mirror.netcologne.de
warning: too many errors from mirror.netcologne.de, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.nic.cz : Could not resolve host: mirrors.nic.cz
warning: too many errors from mirrors.nic.cz, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.telepoint.bg : Could not resolve host: mirror.telepoint.bg
warning: too many errors from mirror.telepoint.bg, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.astra.in.ua : Could not resolve host: manjaro.astra.in.ua
warning: too many errors from manjaro.astra.in.ua, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mnvoip.mm.fcix.net : Could not resolve host: mnvoip.mm.fcix.net
warning: too many errors from mnvoip.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.sonic.net : Could not resolve host: mirrors.sonic.net
warning: too many errors from mirrors.sonic.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.pku.edu.cn : Could not resolve host: mirrors.pku.edu.cn
warning: too many errors from mirrors.pku.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from free.nchc.org.tw : Could not resolve host: free.nchc.org.tw
warning: too many errors from free.nchc.org.tw, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)
[manjaro /]# mhwd-kernel -i linux515
:: Synchronizing package databases...
core.db failed to download
error: failed retrieving file 'core.db' from mirror.netcologne.de : Could not resolve host: mirror.netcologne.de
warning: too many errors from mirror.netcologne.de, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.nic.cz : Could not resolve host: mirrors.nic.cz
warning: too many errors from mirrors.nic.cz, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.telepoint.bg : Could not resolve host: mirror.telepoint.bg
warning: too many errors from mirror.telepoint.bg, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.astra.in.ua : Could not resolve host: manjaro.astra.in.ua
warning: too many errors from manjaro.astra.in.ua, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mnvoip.mm.fcix.net : Could not resolve host: mnvoip.mm.fcix.net
warning: too many errors from mnvoip.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.sonic.net : Could not resolve host: mirrors.sonic.net
warning: too many errors from mirrors.sonic.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.pku.edu.cn : Could not resolve host: mirrors.pku.edu.cn
warning: too many errors from mirrors.pku.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from free.nchc.org.tw : Could not resolve host: free.nchc.org.tw
warning: too many errors from free.nchc.org.tw, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)
resolving dependencies...
looking for conflicting packages...
Packages (2) linux515-5.15.125-1 linux515-virtualbox-host-modules-7.0.10-7
Total Download Size: 100.29 MiB
Total Installed Size: 104.80 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux515-5.15.125-1-x86_64.pkg.tar.zst failed to download
Total (1/2) 100.3 MiB 9.79 GiB/s 00:00 [######################] 100%
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from mirror.netcologne.de : Could not resolve host: mirror.netcologne.de
warning: too many errors from mirror.netcologne.de, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from mirrors.nic.cz : Could not resolve host: mirrors.nic.cz
warning: too many errors from mirrors.nic.cz, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from mirror.telepoint.bg : Could not resolve host: mirror.telepoint.bg
warning: too many errors from mirror.telepoint.bg, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from manjaro.astra.in.ua : Could not resolve host: manjaro.astra.in.ua
warning: too many errors from manjaro.astra.in.ua, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from mnvoip.mm.fcix.net : Could not resolve host: mnvoip.mm.fcix.net
warning: too many errors from mnvoip.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from mirrors.sonic.net : Could not resolve host: mirrors.sonic.net
warning: too many errors from mirrors.sonic.net, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from mirrors.pku.edu.cn : Could not resolve host: mirrors.pku.edu.cn
warning: too many errors from mirrors.pku.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'linux515-5.15.125-1-x86_64.pkg.tar.zst' from free.nchc.org.tw : Could not resolve host: free.nchc.org.tw
warning: too many errors from free.nchc.org.tw, skipping for the remainder of this transaction
warning: failed to retrieve some files
error: failed to commit transaction (invalid url for server)
Errors occurred, no packages were upgraded.
[manjaro /]#
You need to chroot to your broken system with live USB stick, then edit /etc/mkinitpcio.conf to change the compression to gzip, then run mkinitcpio -P && update-grub, then reboot
And then Zesko saying that one can just update mkinitcpio
If I update mkinitcpio to the latest version while on chroot, do you think that would solve the issue?
My network is good, optic fiber and quite fast, so I dont think that is the problem.
I tried sudo pacman-mirrors -c all
but got lots of errors again.
I dont know what to do next.
If I manage to log in fallback mode again, could I upgrade this mkinitcpio from there?
Some is acceptable, maybe even expected, when going through all mirrors globally …
But I am not sure because I dont know the errors exactly.
The point is you want a good working mirror.
(and so far it does not appear that you do)
This is so weird. I used the same live usb that I created to try to sort this issue to install Manjaro XCFE on an old laptop and on that laptop I am able to run updates with no problem
I have logged back in to my system using the option of kernel 4.19.289-1
Some of the software I use for work does not load, so somehow I need to fix this.
I took a look at the latest updates and it seems mkinitcpio was upgraded from version 3 to version 4. Perhaps I should try to roll back that one?
Then I took a look I also checked the mkinitcpio.conf and it has this:
# COMPRESSION
# Use this to compress the initramfs image. **By default, gzip compression**
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"
I have also found that the kernel I was running was 6.1.31
I could run a clean reinstall of it all, but I would try to avoid it as it will take me a couple of days probably to get it configured back again
No, finally I just logged out of live USB and logged in under Advanced options for Manjaro Linux (as I did earlier), then there I selected the lower kernel.
The mirror issue I only had on the Live USB, weirdly enough. If I log in with this lower kernel I can run that command without errors
Would it make any difference to change the mkinitcpio.conf file if the default is already set to the correct one?
And yes I think I will go back to a newer kernel, but I not sure which one to pick and if it was 6.1.31 that created issues
I dont think so.
You had a number of issues, including out of date configurations leading to incompatible options with the kernels, while you were also either out of date or in a partial upgrade state.
Make sure you are fully up to date and try installing a kernel again.
5.15, 6.1, 6.4 are your options … 5.10 if none of those work.
I installed 5.15 and rebooted, but the system now boots automatically with 4.19.
6.1.44 was installed too. I thought the newer versions would be picked automatically.
The system loads, but I cannot run Slack for instance. It does not load. It is a snap installation and if I try to run it from terminal I get cannot attach cgroup program: Operation not permitted
And I never postpone an update prompt more than a day. I will run them after work (I usually use Pamac), so I thought the system was up to date.
I dont know much about SNAP…
But is snapd running?
systemctl status snapd
And … are the snaps updated?
snap refresh
It being snap and all … theres not usually much the distro can do besides allow snap … after that, assuming its working, its up to the snap maintainer.