[ArchLinux]pacman -S sudo不成功
条评论I want to install sudo. So I type in pacman -S sudo. But then I get the following errors:
1 | ~$: pacman -S sudo |
Firstly, try running pacman -Syy, then try to install sudo again.
Check that the repositories are uncommented in /etc/pacman.conf.
Or your mirrorlist might be outdated: Generate a current list of mirrors and copy it to /etc/pacman.d/mirrorlist
Quoting from this relevant forum thread:
You can:
pick another mirror
try using an http mirror, not an ftp one (pick http mirror from the mirrorlist).
Alternatively you can manually download the databases with:
1 | wget ftp://mirror.csclub.uwaterloo.ca/archlinux/community/os/x86_64/community.db |
move them to /var/lib/pacman/sync/ and run ‘pacman -Syu’ again. If you find any *.part files in /var/lib/pacman/sync/
e.g. /var/lib/pacman/sync/core.db.part
- remove them.
To prevent having problems like these it is critical to understand pacman. To learn more about using pacman, see the ArchWiki pacman article, and consult man pacman.
本文标题:[ArchLinux]pacman -S sudo不成功
文章作者:xmaihh
发布时间:2018-07-10
最后更新:2018-07-10
原始链接:https://xmaihh.github.io/blog/2018/07/10/archlinux-pacman-s-sudo-bu-cheng-gong/
版权声明:采用[CC BY-NC-SA 4.0许可协议]进行许可
分享