又是更新archlinux(N久没更新了)

1
2
3
4
5
6
7
8
9
10
11
sudo pacman -Syu
:: The following packages should be upgraded first :
    pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: pacman-color: requires pacman<3.6
:: package-query: requires pacman<3.6

参考http://archlinuxarm.org/forum/viewtopic.php?f=15&t=2303卸载了上在两个包:

1
2
pacman -Rdd pacman-color
pacman -Rdd package-query

这次还是出现了上面类似的错误,显示:

1
:: pyalpm: requires pacman<3.6

于是把这个pyalpm也卸载了。
然后 pacman -Syu 更新了pacman .

1
2
warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
 >>> Run `pacman-key --init` to set up your pacman keyring.

新的pacman.conf已经被安装为pacman.conf.pacnew了,可以根据自己的需要决定是否使用新版配置文件。
然后,

1
pacman-key --init

如果提示:

Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 277 more bytes)

只要打开其它软件做一些操作,如打开deadbeef 放一首歌什么的,就OK了。

最后检查文件冲突时又出错了:

(324/324) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
linux-firmware: /lib/firmware/bnx2x/bnx2x-e1-6.2.5.0.fw exists in filesystem
linux-firmware: /lib/firmware/bnx2x/bnx2x-e1h-6.2.5.0.fw exists in filesystem
linux-firmware: /lib/firmware/bnx2x/bnx2x-e2-6.2.5.0.fw exists in filesystem
Errors occurred, no packages were upgraded.

https://bbs.archlinux.org/viewtopic.php?id=82009找到答案,直接强制更新即可:

1
pacman -Sfyu

还有,httpd.conf也有新版的配置文件:

( 43/324) upgrading apache [######################] 100%
warning: /etc/httpd/conf/httpd.conf installed as /etc/httpd/conf/httpd.conf.pacnew

有时间再把新版配置文件修改配置下吧。Ok,更新总算搞定了。

更多
One Response Post a comment
  1. yetone

    我昨天也更新了,更新出一大堆问题,幸亏都一一解决了 :roll:

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS