Pc crashes in the middle of an upgrade

the usual, my pc freezes running an upgrade but now when i made the live usb to finish the installation the code:

manjaro-chroot -a

returns:

==> Mounting (ManjaroLinux) [/dev/sdc4]
 --> mount: [/mnt]
mount: /mnt: /dev/sdc4 already mounted on /mnt.
 --> mount: [/mnt/home]
 --> mount: [/mnt/boot/efi]
mount: /mnt/sys: sys already mounted on /sys.
chroot: failed to run command '/bin/bash': Input/output error
 --> umount: [/mnt/boot/efi]
 --> umount: [/mnt/home]

and after run:

mount /dev/sdc4 /mnt
mount -t proc proc /mnt/proc; mount --rbind /sys /mnt/sys; mount --rbind /dev /mnt/dev
sudo pacman --sysroot /mnt -Syu

returns for every package:

(1/1) checking keys in keyring                                   [####################################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity                                 [####################################] 100%
error: GPGME error: Invalid crypto engine
error: cairo: missing required signature
:: File /var/cache/pacman/pkg/cairo-1.17.8-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

poweruser edit - please use the formatting utility correct when posting console and code fragments

This is happening more frequent these days - I don’t quite understand why though.

It may happen when you leave the system unattended during update - then - due to apparent absense of operator the system locks and goes into sleep mode - and that is devastating for the update transaction.

It may also happen if you run a major system update from the GUI and important GUI libraries are replaced - also devastating.

Likely filesystem error or disk error.

input/output error is common when the kernel cannot figure out the filesystem due to corruption.

1 Like

The alternative way to use chroot is
to mount the partition(s) yourself
to /mnt for example

and then not using manjaro-chroot -a
but instead:
manjaro-chroot /mnt /bin/bash

or use a sequence like you described - but with a slight variation and as single commands, one command at a time (to catch errors, to see what’s going on …)

cd /mnt
mount -t proc /proc proc/
mount -t sysfs /sys sys/
mount -o bind /dev dev/

then:
chroot /mnt /bin/bash

-o bind has some advantage --rbind will require a reboot
see:

chroot - ArchWiki

I have seen people using the chroot command twice - and then wondering about strange errors …

1 Like

Doesnt seem like my filesystem is on error or disk error since i can mount it alternative using the 2nd way. And the filesystem is not corrupt either

The only way i was able to mount was using the 2nd way i posted but every time i run pacman -S or any of its variants shows me the crypto engine error following the invalid signature gpg error

i keep stuck, but following some guide im now at a different scenario, what i need i to resolve this:

call to execv failed (Input/output error)

[manjaro manjaro]# sudo pacman --sysroot /mnt -S glibc --overwrite=“*”
warning: glibc-2.37-2 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Packages (1) glibc-2.37-2

Total Installed Size: 47.46 MiB

:: Proceed with installation? [Y/n]
(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%
:: Running pre-transaction hooks…
(1/1) Creating Timeshift snapshot before upgrade…
call to execv failed (Input/output error)
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.

It looks like timeshift failed to execute.
I’d disable that so that you can update.
I don’t know how.

Sometimes it is easier to reinstall than trying to correct all the errors of the OS.

its there a way to reinstall without loosing data, settings and installed apps?

any hints to repair this error:
call to execv failed (Input/output error)

If you install correctly, then you don´t loose your personal data:
a separate /home partition.

In the other case: backup your data.

This is the error that get me stuck
call to execv failed (Input/output error)

https://forum.manjaro.org/search?q=reinstall%20manjaro%20without%20losing%20data