Problems while running sudo pacman -Syu

When I’m trying to run sudo pacman -Syu this error comes up

[manjaro@manjaro ~]$ sudo pacman -Syu
[sudo] password for manjaro:
:: Synchronizing package databases…
core is up to date
extra is up to date
community is up to date
multilib is up to date
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
error: database ‘core’ is not valid (invalid or corrupted database (PGP signature))
error: database ‘extra’ is not valid (invalid or corrupted database (PGP signature))
error: database ‘community’ is not valid (invalid or corrupted database (PGP signature))
error: database ‘multilib’ is not valid (invalid or corrupted database (PGP signature))
:: Starting full system upgrade…
there is nothing to do

pamac tells me that I have several packages in need of an upgrade (all of them are from the AUR), which makes me confused as -Syu doesnt do anything. At the same time, I dont understand why the databsed arent valid and unrecognized.

Hardware
CPU -Intel i5-4210U 4-cores 2.7GHz
GPUs - Nvidia GeForce 820m & Intel Haswell-ULT
8gb RAM (I assume DDR3)
1gb HDD

Software
Kernel: 5.7.19-2-MANJARO
OS: Manjaro x86
DE: xfce 4.14

Wlecome at the forum, @klarinettsug

Have you tried updating your mirrors first by:

sudo pacman-mirrors -f && sudo pacman -Syyu

If it’s not working try this before updating:

rm -R /var/lib/pacman/sync/

Reference and further tipps:
https://wiki.manjaro.org/index.php/Pacman_troubleshooting

1 Like

Use an AUR helper like yay to install AUR packages from the command line.

pacman is not able to update AUR packages, but pamac can

pamac update

pamac usually does not need option -a to update from AUR
(see pamac update --help for more options)

2 Likes

OP already has pamac installed as an AUR helper and should not need another one

1 Like

Thanks!

It works for me:
sudo pacman-mirrors -f && sudo pacman -Syyu (!!)

  • Thanks