There have been many updates waiting for the system, because for some time already, when I “apply” updates, there is a response:
“Failed to prepare transaction.
Invalid or corrupted database”.
I have not experienced such a problem before, and I don’t know what are causes, and what can be done about it.
There are already 877 updates waiting, and this problem continues for two months, or even longer.
Try opening a terminal and running the following command:
pamac update --no-aur --force-refresh
If that does not work, then please copy the output from the terminal and paste it here.
If that does successfully update your system, then you can move on to the next step - updating any AUR packages you may have installed:
pamac update --aur --force-refresh
It might be good to first check mirrors and refresh those:
sudo pacman-mirrors --continent && pacman-mirrors
great, I will do it right away
there are ERRORS for mirrors in China, but the rest is fine
Did not work:
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Pablo (pablo)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Error: GPGME error: No data
Refreshing core.db...
Refreshing extra.db...
Refreshing community.db...
Refreshing multilib.db...
Error: GPGME error: No data
Refreshing core.files...
Refreshing extra.files...
Refreshing community.files...
Refreshing multilib.files...
Failed to synchronize databases
cp: cannot access '/var/lib/pacman/sync/download-47gLkB': Permission denied
Error: Failed to prepare transaction: invalid or corrupted database
You might need to rebuild the database.
This should work:
I believe you need:
And this:
Suggests you have many .pacnew
files to attend. See:
and
https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave#.pacnew
I will read wiki and see what I can do about my little problem. Thanx.
This one ([SOLVED] Error updating system (error: GPGME error: No data) / Newbie Corner / Arch Linux Forums) solved my problem, and the system is updating. Thank you all who assisted me. It is good to be supported by such kind and knowledgeable people.
I had only 3 mirrors, though running this just now I got a bunch more (from Bangkok here)…
❯ sudo pacman-mirrors --continent && pacman-mirrors
Pacman-mirrors version 4.28
Local mirror status for testing branch
Mirror #1 OK 02:08 Singapore https://mirror.freedif.org/Manjaro/
Mirror #2 OK 07:16 China https://mirrors.jlu.edu.cn/manjaro/
Mirror #3 OK 02:07 Indonesia http://kartolo.sby.datautama.net.id/manjaro/
Mirror #4 OK 00:29 Taiwan https://mirror.archlinux.tw/Manjaro/
Mirror #5 OK 07:15 China https://mirrors.tuna.tsinghua.edu.cn/manjaro/
Mirror #6 OK 02:05 Bangladesh https://bd.mirror.vanehost.com/Manjaro/
Mirror #7 OK 00:37 Japan http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
Mirror #8 OK 00:28 Singapore http://ossmirror.mycloud.services/os/linux/manjaro/
Mirror #9 OK 05:47 Japan https://mirrors.xtom.jp/manjaro/
Mirror #10 OK 07:19 Turkey https://ftp.linux.org.tr/manjaro/
Mirror #11 OK 02:35 China https://mirrors.sjtug.sjtu.edu.cn/manjaro/
Mirror #12 OK 01:16 Georgia http://manjaro.grena.ge/
Mirror #13 OK 04:55 Bangladesh http://mirror.xeonbd.com/manjaro/
Mirror #14 OK 02:07 Japan https://mirror.phoepsilonix.love/manjaro/
So it’s often worth another spin I tend to type ‘mirrors’ every update, then ‘upmirrors’ to do the continental refresh if there’s too much red in there - but it’s nice to know you’re all fixed up now.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.