Can't update or install software: invalid or corrupted database

   ~  pamac update                                                       ✔ 
Preparing...
Synchronizing package databases...
unable to lock database
Failed to synchronize databases
https://aur.manjaro.org/packages-meta-ext-v1.json.gz: Unacceptable TLS certificate
Failed to synchronize AUR database
Checking pacman-mirrors dependencies...
Checking google-chrome dependencies...
Checking protonvpn-gui dependencies...
Checking python-protonvpn-nm-lib dependencies...
Checking ceph-libs dependencies...
Checking libcurl-compat-minimal-git dependencies...
bsdtar: Failed to set default locale
Error: Failed to prepare transaction: invalid or corrupted database



Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.

Have you tried to search the forum about that?

Remove that package. It fails to build, and you probably don’t need it anyway.

how whats the command line

pamac remove ceph-libs

   ~  sudo pacman -Syyu  :heavy_check_mark:  58s 
[sudo] password for mono:
error: GPGME error: No data
:: Synchronizing package databases…
core 163.9 KiB 105 KiB/s 00:02 [########################] 100%
extra 1865.0 KiB 776 KiB/s 00:02 [########################] 100%
community 7.5 MiB 2.19 MiB/s 00:03 [########################] 100%
multilib 169.3 KiB 111 KiB/s 00:02 [########################] 100%
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)

yup it shows to update the mirrors ad i did it nothing happens

The post @anon89812132 linked to tells you to do a whole lot more than just update your mirrors. :face_with_raised_eyebrow:

[ Error writing /etc/pacman.conf: Permission denied ]

You need to do that as root, or with sudo. Unprivileged users don’t have write access to system directories.

   /home  sudo rm -f /var/lib/pacman/sync/  1 ✘  
rm: cannot remove ‘/var/lib/pacman/sync/’: Is a directory

Try… :arrow_down:

sudo rm -f /var/lib/pacman/sync/*

no match found

sudo rm -f /var/lib/pacman/sync/  1 ✘
[sudo] password for mono:
rm: cannot remove ‘/var/lib/pacman/sync/’: Is a directory

No problem then, I guess. :man_shrugging:

should i proceed with this now ass said

sudo pacman-mirrors --continent

That’s not legible, so you must have made a mistake in your command. You’re not supposed to remove the directory — only its contents.

what the hell am i suppos to doo now

Try this… :arrow_down:

LC_ALL=C sudo rm -f /var/lib/pacman/sync/*