當在用pacman 安裝軟件的時候,會出現這樣的問題
:: 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)
:: package-query: requires pacman<3.6
若,我們之前有安裝過yaourt的話,則需要先把yaourt卸載。使用命令
pacman -R yaourt
然後,
pacman -Rsn package-query pacman-color
pacman -Syyu
pacman-db-upgrade
pacman -Syu
install yaourt and pacman-color-testing (until pacman-color 3.5.1 is out).
經過上面的步驟之後,第一次遇到的問題已經可以解決了,但是之後,又出現了其他的問題了。
error: pacman: signature from "Allan McRae <[email protected]>" is unknown trust
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
[r-c@r-c-laptop ~]$
Those errors shows me during upgrade, why? What that mean? How to solve it?
從這裏的錯誤報告,大概可以猜測出是關於安全方面的問題,爲了簡單解決這個問題,我用了一個很不好的方法,就是把安全方面的設置全部否決。
只需要在/etc/pacman.conf配置文件裏,修改這個配置文件裏的一些配置就可以。具體配置如下:
61 [testing]
62 Include = /etc/pacman.d/mirrorlist
63 SigLevel = Optional TrustAll
64
65 [core]
66 Include = /etc/pacman.d/mirrorlist
67 SigLevel = Optional TrustAll
68
69 [extra]
70 Include = /etc/pacman.d/mirrorlist
71 SigLevel = Optional TrustAll
72
73 [archlinuxfr]
74 Server = http://repo.archlinux.fr/i686
75 SigLevel = Optional TrustAll
這樣子,就可以忽略調安全的把關了。
到此,pacman的問題告一段落!!!!