Error 404: Failed to prepare transaction

Hello everybody!

I have the following problem. When I tried to update the system from Pamac, I am receiving the massage: Failed to prepare transaction, Invalid or corrupted database and long list of notices from the sort: Error: failed retrieving file ‘community.db’ from mirrors.gigenet.com : The requested URL returned error: 404

What can I do in this situation? When I put # in the file sudo nano /etc/pacman.conf all updates disappeared and I can’t update the system again. I wrote that the mirror list is changed… May be to wait this problem to be fixed?

1 Like

How to edit /etc/pacman.conf to move to extra repo?

It is the configuration file for pacman.
It is a normal text file - but you need admin (root) permissions to alter it.

How would you edit text files?

I’d use an editor:
sudo nano /etc/pacman.conf

You just remove or comment out two lines.

… the so far ignored .pacnew file is also likely still around

You don’t move to extra repo. The contents of community were moved to extra 2 years ago. The empty community repo was removed from the servers recently. You just need to remove the outdated references to community from your /etc/pacman.conf file.

What to edit exactly in the file? Can you explain me more precisely?



change this:

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

to this:

#[community]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

or just delete those three lines

then run:
sudo pacman-mirrors -f
to refresh the list of mirrors

1 Like

Wow, the problem is solved! Thank you!!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.