我使用的是带有 Kde 的 Arch Linux。
我有一段时间没有更新软件包了,在尝试更新时遇到了问题:
我尝试的第一件事是:sudo pacman -Syu
正如文档所述,我收到此错误:
:: Synchronizing package databases...
testing is up to date
core is up to date
extra is up to date
community is up to date
:: 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)
:: packagekit: requires pacman<3.6.0
:: package-query: requires pacman<3.6
我检查了我的 pacman 版本,我有 v3.5.4:
.--. Pacman v3.5.4 - libalpm v6.0.4
/ _.-' .-. .-. .-. Copyright (C) 2006-2011 Pacman Development Team
\ '-. '-' '-' '-' Copyright (C) 2002-2006 Judd Vinet
'--'
This program may be freely redistributed under
the terms of the GNU General Public License.
我猜哪一个似乎没问题?
以防万一我尝试先更新 yaourt 并且收到相同的消息:
testing is up to date
core is up to date
extra is up to date
community is up to date
error: failed to prepare transaction (could not satisfy dependencies)
:: Starting full system upgrade...
:: packagekit: requires pacman<3.6.0
:: packagekit: requires pacman<3.6.0
我运行了以下命令来查看是否可以获得有用的信息并得到这我无法从那里获得更多有用的信息,但也许你可以。
以防万一我也用 KPackageKit 尝试过,也得到了同样的错误:
:: packagekit: requires pacman<3.6.0
:: packagekit: requires pacman<3.6.0
我希望您已获得所需的所有信息,否则请询问。提前致谢。
答案1
答案2
第一步是强制刷新主包列表。这是由 完成的pacman -Syy
。完成后,再试一次pacman -Syu
。