使用 -Syu 更新所有 ArchLinux 软件包时出错

Tru*_*ufa 7 arch-linux pacman upgrade package-management yaourt

我使用 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
Run Code Online (Sandbox Code Playgroud)

我检查了我有什么版本的 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.
Run Code Online (Sandbox Code Playgroud)

我猜这似乎没问题?

以防万一我尝试先更新 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
Run Code Online (Sandbox Code Playgroud)

我跑以下命令来看看我是否能得到有用的信息,并得到这个从我不能得到任何更多有用的信息,但也许你可以。

以防万一我也用 KPackageKit 尝试过,也得到了同样的错误:

:: packagekit: requires pacman<3.6.0
:: packagekit: requires pacman<3.6.0
Run Code Online (Sandbox Code Playgroud)

我希望你有你需要的所有信息,否则请询问。提前致谢。

jas*_*yan 7

有两个独立但相关的问题。首先,package-query是一个不受支持的包(来自AUR),并且您有责任在其他依赖项(在本例中pacman)更新时重建它。

卸载它,更新pacman,然后package-query针对较新版本重建。

其次,除了Shawn 建议强制重新同步您的软件包列表之外,您还应该确保同步到最新的镜像。