ARCH Linux Pacman Package Manager Error Summary

Source: Internet
Author: User
Tags arch linux

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.