I am having trouble updating my system. I get the message (on my laptop):
Preparing...
Synchronizing package databases...
Error: GPGME error: No data
Error: failed retrieving file 'community.db' from mirror.futureweb.be : The requested URL returned error: 404
Error: failed retrieving file 'community.db' from mirror.yandex.ru : The requested URL returned error: 404
Error: failed retrieving file 'community.db' from mirrors.xtom.ee : The requested URL returned error: 404
Error: GPGME error: No data
Failed to synchronize databases
Failed to prepare transaction:
invalid or corrupted database
I found a similar problem reported for 2022, and tried the suggestion there to force refresh of pamac (pamac update --force-refresh), but that failed to do anything.
Previously when Updates failed, I just waited a few days, and tried again, but that hasn’t worked this time.
I’ve used Manjaro for several years, but am definitely an amateur!
I mostly use my Linux system for writing up Music (Musescore) but I can’t persuade the newest AppImage to work - all was fine about a week ago!
I’m hoping time will sort the problem, but is someone can suggest an action that might work - happy to use the terminal, but limited knowledge so nothing too hard!
You need to remove (or at least add a # to the beginning of) the [community] lines in /etc/pacman.conf. Usually that and one or two following, before the next blank line.
sudo nano /etc/pacman.conf
This is documented in a Sticky at the top of the Updates section:
There will likely be a number of other files which need to be tended to. Please post output of:
pacdiff -o
… and select the pasted output, then click the </> button at the top of the reply window for proper Forum formatting.
This may also be helpful:
NOTE: Edited as I posted incorrect commands first time.
As a new or infrequent forum user, please take some time to familiarise yourself with Forum requirements, and the many ways to use the forum to your benefit:
Update Announcements
The Update Announcements contain important information and a Known Issues and Solutions section that should generally be checked before posting a request for support.
System Information
Output of this command (formatted according to forum requirements) may be useful for those wishing to help:
inxi --filter --verbosity=8
or the short form:
inxi -zv8
Be prepared to provide more information and outputs from other commands whenever asked. It’s equally important to provide as much actionable information as possible in your first post, rather than simply indicating there is a problem.
I managed to change the pacman.conf file (it had 3 lines, so presumably very old)
I tried “pacdiff -o”
But the command could not be found: (“bash: pacdiff: command not found”)
I followed, as suggested, sudo pacman-mirrors --continent && sudo pacman -Syu
But it ultimately failed:
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
0.633 United_Kingdom : https://www.mirrorservice.org/sites/repo.manjaro.org/re
0.678 United_Kingdom : http://manjaro.mirrors.uk2.net/
0.277 United_Kingdom : https://ask4.mm.fcix.net/manjaro/
::INFO Writing mirror list
::United_Kingdom : https://ask4.mm.fcix.net/manjaro/stable
::United_Kingdom : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/sta
::United_Kingdom : http://manjaro.mirrors.uk2.net/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronising package databases...
core is up to date
extra is up to date
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (76.1-1) breaks dependency 'libicui18n.so=75-64' required by electron28
:: installing icu (76.1-1) breaks dependency 'libicuuc.so=75-64' required by electron28
:: installing flac (1.5.0-1) breaks dependency 'libFLAC.so=12-64' required by electron28
:: installing icu (76.1-1) breaks dependency 'libicui18n.so=75-64' required by electron30
:: installing icu (76.1-1) breaks dependency 'libicuuc.so=75-64' required by electron30
:: installing flac (1.5.0-1) breaks dependency 'libFLAC.so=12-64' required by electron30
(I’m in the UK, so left just the UK lines above.)
Sorry for being so useless - there is probably something really obvious I just don’t know about. I hadn’t updated for a while, and expect this may be why I’m having problems. I think it may be that I really don’t quite follow how to get my system to find the new community repository.
Thank you for writing out the full command line.
You will need to install pacman-contrib — sorry, I should have mentioned that! — Do this without the yu i.e.:
sudo pacman -S pacman-contrib
There isn’t going to be a “new” community repo. The packages there were all moved to extra over a year ago.
Also, you will need to remove those old electron packages — I have a very old version (12) but it doesn’t affect anything other than etcher which I have no need for, so I’ll probably just get rid of them in my case.
Try removing:
sudo pacman -Rns electron28 electron30
If it lists dependencies or it looks like it’s going to remove a load of stuff, post the output here before proceeding (hit n to cancel).
N.B. It would not hurt to run pacman -Qii electron28 and pacman -Qii electron30 first, before attempting to remove — this will show what depends on these versions.