Kernel panic after running an install script

check again:

ls -l /usr/lib/libc.so.6
[manjaro /]# ls -l /usr/lib/libc.so.6
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

The file has seemed to disappear after doing the unlinking. I backed it up in the live dowload folder, but cannot paste it back there, is it because I’m chroot?

I was unable to go back to chroot after doing that, so I opened Thunar as root and pasted the backed-up files back in the folder. Back to the previous step, I guess.

your system is a mess…
there is pacman static, try with it:

wget https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/pacman-static
chmod +x pacman-static
./pacman-static -Syyu glibc lib32-glibc

do I do this after chroot?

yes you need to be chrooted

wget https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/pacman-static
--2022-07-16 20:43:41--  https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/pacman-static
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving pkgbuild.com (pkgbuild.com)... 2a01:4f8:c2c:51e2::1, 78.46.178.133
Connecting to pkgbuild.com (pkgbuild.com)|2a01:4f8:c2c:51e2::1|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-07-16 20:43:41 ERROR 404: Not Found.

god damn haha … found it elsewhere:

wget https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
chmod +x pacman-static
./pacman-static -Syyu glibc lib32-glibc
[manjaro /]# wget https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
--2022-07-16 20:48:19--  https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving pkgbuild.com (pkgbuild.com)... 2a01:4f8:c2c:51e2::1, 78.46.178.133
Connecting to pkgbuild.com (pkgbuild.com)|2a01:4f8:c2c:51e2::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4606712 (4.4M) [application/octet-stream]
Saving to: 'pacman-static'

pacman-static                  100%[====================================================>]   4.39M  1.17MB/s    in 3.8s    

2022-07-16 20:48:23 (1.15 MB/s) - 'pacman-static' saved [4606712/4606712]

[manjaro /]# chmod +x pacman-static                                                       
[manjaro /]# ./pacman-static -Syyu glibc lib32-glibc
warning: config file /etc/pacman.conf, line 20: directive 'SyncFirst' in section 'options' not recognized.
:: Synchronizing package databases...
 core                                          168.2 KiB   327 KiB/s 00:01 [##########################################] 100%
 extra                                        1867.1 KiB  1201 KiB/s 00:02 [##########################################] 100%
 community                                       7.1 MiB  1173 KiB/s 00:06 [##########################################] 100%
 multilib                                      177.5 KiB   612 KiB/s 00:00 [##########################################] 100%
:: Starting full system upgrade...
:: Replace breath2-icon-themes with community/plasma5-themes-breath? [Y/n]

This last part might be mundane, but do I answer Y?

click y

Should I answer all the followups Y as well?

:: Replace crda with core/wireless-regdb? [Y/n]

yes, since you didnt update your system for so long, there were some package replacement etc…

[manjaro /]# ./pacman-static -Syyu glibc lib32-glibc
warning: config file /etc/pacman.conf, line 20: directive 'SyncFirst' in section 'options' not recognized.
:: Synchronizing package databases...
 core                                          168.2 KiB   526 KiB/s 00:00 [##########################################] 100%
 extra                                        1867.1 KiB  1174 KiB/s 00:02 [##########################################] 100%
 community                                       7.1 MiB  1189 KiB/s 00:06 [##########################################] 100%
 multilib                                      177.5 KiB  1517 KiB/s 00:00 [##########################################] 100%
:: Starting full system upgrade...
:: Replace breath2-icon-themes with community/plasma5-themes-breath? [Y/n] y
:: Replace crda with core/wireless-regdb? [Y/n] y
:: Replace hwids with core/hwdata? [Y/n] y
:: Replace plasma5-themes-breath2 with community/plasma5-themes-breath? [Y/n] y
:: Replace sdl with community/sdl12-compat? [Y/n] y
resolving dependencies...
:: There are 2 providers available for pipewire-session-manager:
:: Repository extra
   1) pipewire-media-session  2) wireplumber

Enter a number (default=1): 1
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing nvidia-utils (515.57-1) breaks dependency 'nvidia-utils=470.63.01' required by linux513-nvidia

Well, I knew Nvidia had to get involved at some point. :fu:

remove it first:
./pacman-static -R linux513-nvidia
then run update again:
./pacman-static -Syyu

and when you are prompted here:

1) pipewire-media-session  2) wireplumber

select number 2


[manjaro /]# ./pacman-static -R linux513-nvidia
warning: config file /etc/pacman.conf, line 20: directive 'SyncFirst' in section 'options' not recognized.
checking dependencies...

Packages (1) linux513-nvidia-470.63.01-3

Total Removed Size:  39.63 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing linux513-nvidia                                             [##########################################] 100%
:: 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
==> Starting build: 5.10.59-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.35' not found (required by /usr/lib/libgcc_s.so.1)
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1)
==> ERROR: failed to detect root filesystem
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.35' not found (required by /usr/lib/libgcc_s.so.1)
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1)
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.10-x86_64.img
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
bsdtar: Write error
bsdtar: Write error
==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error
==> 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
==> Starting build: 5.10.59-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]
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.10-x86_64-fallback.img
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
bsdtar: Write error
: Write error==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error
==> Building image from preset: /etc/mkinitcpio.d/linux513.preset: 'default'
  -> -k /boot/vmlinuz-5.13-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.13-x86_64.img
==> Starting build: 5.13.11-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.35' not found (required by /usr/lib/libgcc_s.so.1)
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1)
==> ERROR: failed to detect root filesystem
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.35' not found (required by /usr/lib/libgcc_s.so.1)
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1)
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.13-x86_64.img
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
bsdtar: Write error
bsdtar: Write error
==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error
==> Building image from preset: /etc/mkinitcpio.d/linux513.preset: 'fallback'
  -> -k /boot/vmlinuz-5.13-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.13-x86_64-fallback.img -S autodetect
==> Starting build: 5.13.11-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]
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.13-x86_64-fallback.img
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
bsdtar: Write error
bsdtar: Write error
==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'default'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64.img
==> Starting build: 5.4.141-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.35' not found (required by /usr/lib/libgcc_s.so.1)
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1)
==> ERROR: failed to detect root filesystem
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.35' not found (required by /usr/lib/libgcc_s.so.1)
findmnt: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libgcc_s.so.1)
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.4-x86_64.img
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
bsdtar: Write error
: Write error==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'fallback'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64-fallback.img -S autodetect
==> Starting build: 5.4.141-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]
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.4-x86_64-fallback.img
gzip: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gzip)
bsdtar: Write error
: Write error==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error

Not sure if it was successful.

regardless of all the errors the first command gave me, this now prompts me to proceed with installation:

./pacman-static -Syyu

it failed again because of this:

/usr/lib/libc.so.6: version `GLIBC_2.35' not found 

So even though there is no more nvidia conflict error, is it not safe to proceed with
./pacman-static -Syyu
?

it should be since it will reinstall the glibc anyway but just to be sure run this first:
./pacman-static -S glibc lib32-glibc
then:
./pacman-static -Syyu