Use the command most often when using arch:
sudo pacman-s Ruby
Terminal error:
Error:could not open file/var/lib/pacman/sync/apricity-core.db:unrecognized archive format
It made me toss for a long time, and finally came to the great God to conclude that
He will pacman.conf inside the official source comment out, and then go to/etc/pacman.d/mirrorlist file 163 source, because 163 source has stopped updating, choose other fast source, such as: China Education Network. In the use command:
sudo Pacman-syyu
Update system complete in use:
Pacman-syy
And don't forget that Yaort is going to have to try.
Yaort-syy
After everything is correct:
sudo pacman-s Ruby
。 There are many reasons why this problem is caused, sometimes because a process in the system occupies the *.db file, This time will be reported to you to delete the Db.lock file prompt, this time do not delete this file, you can find the occupied thread and then kill it, delete this file you have all the *.db file permissions, when you use the Pacman will be with other occupied threads to generate read and write DB conflict , I think you should wait, other threads do not take too long, the Db.lock file will be deleted automatically.
In addition when I appeared problem to Google search, many foreigners also appear this problem, the cause of this problem is a lot of, here only to do a summary of the method.
ARCH Linux Pacman Package Manager Error Summary