Chinaunix首页 | 论坛 | 博客
  • 博客访问: 512345
  • 博文数量: 113
  • 博客积分: 2239
  • 博客等级: 大尉
  • 技术积分: 1280
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-20 20:51
文章分类

全部博文(113)

文章存档

2015年(6)

2014年(15)

2013年(1)

2012年(91)

我的朋友

分类: LINUX

2012-06-01 20:25:02

warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist

error: failed to prepare transaction (could not find database)

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:
wget ftp://mirror.csclub.uwaterloo.ca/archlinux/community/os/x86_64/community.db
wget ftp://mirror.csclub.uwaterloo.ca/archlinux/extra/os/x86_64/extra.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.

阅读(1451) | 评论(0) | 转发(0) |
0

上一篇:FlightGear飞行游戏

下一篇:arch更新出错

给主人留下些什么吧!~~