I noticed that after the last update I can no longer install packages, pacman doesn’t open, the update icon in the panel has disappeared and I don’t know how to fix it.
I have no idea what went wrong … I hope it’s not because of some pacdiff I fixed but to be honest I don’t know …
If I try to open by terminal:
[iwakura@iwakura-hp290g4microtowerpc ~]$ pacman
[iwakura@iwakura-hp290g4microtowerpc ~]$ pamac
pamac: error while loading shared libraries: /usr/lib/libpamac.so.11: file too short
Out of curiosity, I tried to see if changing kernels could improve the situation and I made a bad discovery, the page is totally blank, I can’t change kernels and it doesn’t see the available ones.
So I have to run manjaro usb like to install, open a terminal and enter these commands one by one in sequence and then restart the pc like normal.
Is it correct?
yes, you boot into manjaro usb, open terminal and run the commands above… if there are no errors from them, you reboot …
if you have encryption, or use btrfs, those commands will not work, so you mount your root partition, and then you run this:
[manjaro@manjaro ~]$ sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/until-mount.sh
sed: can't read /usr/lib/manjaro-tools/until-mount.sh: No such file or directory
[manjaro@manjaro ~]$ exit | manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/nvme0n1p2]
--> mount: [/mnt]
mount: /mnt: /dev/nvme0n1p2 already mounted on /mnt.
dmesg(1) may have more information after failed mount system call.
--> mount: [/mnt/boot/efi]
mount: /mnt/boot/efi: /dev/nvme0n1p1 already mounted on /mnt/boot/efi.
dmesg(1) may have more information after failed mount system call.
mount: /mnt/sys: sys already mounted on /sys.
dmesg(1) may have more information after failed mount system call.
--> umount: []
umount: bad usage
Try 'umount --help' for more information.
And I can’t mount my root partition because every command i tried to mount didn’t worked…just what command is right?
[manjaro@manjaro ~]$ sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
[manjaro@manjaro ~]$ exit | manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/nvme0n1p2]
--> mount: [/mnt]
mount: /mnt: /dev/nvme0n1p2 already mounted on /mnt.
dmesg(1) may have more information after failed mount system call.
--> mount: [/mnt/boot/efi]
mount: /mnt/boot/efi: /dev/nvme0n1p1 already mounted on /mnt/boot/efi.
dmesg(1) may have more information after failed mount system call.
mount: /mnt/sys: sys already mounted on /sys.
dmesg(1) may have more information after failed mount system call.
[manjaro@manjaro ~]$ sudo pacman --sysroot /mnt -S libpamac pacman --overwrite '*'
warning: libpamac-11.4.1-3 is up to date -- reinstalling
warning: pacman-6.0.2-6 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (3) manjaro-mirrors-4.23.2+2+g2f58b3c-2 libpamac-11.4.1-3
pacman-6.0.2-6
Total Installed Size: 9,07 MiB
:: Proceed with installation? [Y/n] Y
(3/3) checking keys in keyring [######################] 100%
(3/3) checking package integrity [######################] 100%
error: manjaro-mirrors: signature from "Philip Müller (Called Little) <philm@manjaro.org>" is invalid
:: File /var/cache/pacman/pkg/manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: pacman: signature from "Mark Wagie <mark@manjaro.org>" is invalid
:: File /var/cache/pacman/pkg/pacman-6.0.2-6-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: libpamac: signature from "Mark Wagie <mark@manjaro.org>" is invalid
:: File /var/cache/pacman/pkg/libpamac-11.4.1-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
Second:
[manjaro@manjaro ~]$ sudo pacman --sysroot /mnt -S libpamac pacman --overwrite '*'
warning: libpamac-11.4.1-3 is up to date -- reinstalling
warning: pacman-6.0.2-6 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (3) manjaro-mirrors-4.23.2+2+g2f58b3c-2 libpamac-11.4.1-3
pacman-6.0.2-6
Total Download Size: 2,11 MiB
Total Installed Size: 9,07 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
pacman-6.0.2-6-x... 1177,9 KiB 1280 KiB/s 00:01 [######################] 100%
libpamac-11.4.1-... 839,0 KiB 1824 KiB/s 00:00 [######################] 100%
manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz failed to download
Total (3/3) 2,1 MiB 299 KiB/s 00:07 [######################] 100%
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from ftp.belnet.be : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from mirror.futureweb.be : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from coresite.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from osmirror.org : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from manjaro.dcc.uchile.cl : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from mirror.2degrees.nz : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from mirror.kku.ac.th : The requested URL returned error: 404
error: failed retrieving file 'manjaro-mirrors-4.23.2+2+g2f58b3c-2-any.pkg.tar.xz' from mirror.is.co.za : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
you have these, but the overwrite command should take care of it… so reboot and see if it worked…
and also check with: sudo ldconfig
it should not output anything
The thing was that it was trying to retrieve an old package no longer in the mirrors and hence the 404 (404 is a HTTP return code from the server, so there is network connection). What was needed was to update the databases to retrieve the right package.