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

naah stiil no matches found

sudo pacman install mplayer  TSTP ✘  17s   
warning: database file for ‘core’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘extra’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘community’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘multilib’ does not exist (use ‘-Sy’ to download)
error: no operation specified (use -h for help)

install is not a valid option to pacman. In addition to that, it is telling you to download the databases. :arrow_down:

sudo pacman -Syyu mplayer
1 Like

Even it is possible it creates issues hard to troubleshoot.
In pamac preferences - remove the option to rebuild aur package automagically - it is an expert only option.

Then check custom packages - remove then

pacman -Qqm

To remove all custom packages in one command

sudo pacman -Rns (pacman -Qqm)

The proper command is sudo rm -rf .
The -r is for recursive, in this case all the files in the aforementioned directory along with the directory itself.
And you really don’t need the -f (force)
Or you can simply CD to the directory and delete the files from there.

Then sudo pacman -Scc to clear the pacman cache

The run
sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu
to refresh mirror list and update package lists and install any updates.

1 Like