1、pacman 报错现象

[dae@wg sync]$ sudo pacman -Syu
:: Synchronizing package databases...
core                                        614.0 KiB   865 KiB/s 00:01 [########################################] 100%
extra                                       614.0 KiB  1462 KiB/s 00:00 [########################################] 100%
community                              614.0 KiB  2.07 MiB/s 00:00 [########################################] 100%
multilib                                    614.0 KiB  2047 KiB/s 00:00 [########################################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
there is nothing to do

2、解决方法:

# cd /etc/pacman.d/ 
# mv ./mirrorlist mirrorlist.backup
# curl -o /etc/pacman.d/mirrorlist https://archlinux.org/mirrorlist/all/
# pacman -Syyu

 

posted on 2021-11-23 09:56  rangowang  阅读(302)  评论(0)    收藏  举报