我无法在 arch 上更新我的系统。我在用
Operating System: Arch Linux
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
当我跑步时
sudo pacman -Syu
我明白了
:: Synchronizing package databases...
core is up to date
extra is up to date
:: Starting full system upgrade...
:: Replace attica with extra/attica5? [Y/n] Y
...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing kxmlgui breaks dependency 'kxmlgui' required by kfloppy
...
如果我拒绝我得到的替代品
:: Synchronizing package databases...
core is up to date
extra is up to date
:: Starting full system upgrade...
:: Replace attica with extra/attica5? [Y/n] n
...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: kitemmodels5 and kitemmodels are in conflict (kitemmodels<5.111)
所以我感觉有些东西与我的 kde-framework 版本不匹配。有人可以帮忙吗?
答案1
我想到了:
- 问题的根源在于qt5即将更新为qt6。因此,开发人员决定为所有软件包添加后缀,
5
以便更好地识别它们 - 因此,所有心灵感应软件包也将从 KDE 中删除,因为将来似乎不会再开发它们
所以我必须先删除所有心灵感应包,按照这个 Arch Linux 论坛帖子:
sudo pacman -Rns $(sudo pacman -Qq | grep "telepathy-*")
然后我手动删除了kfloppy:
sudo pacman -R kfloppy
最后它起作用了:
sudo pacman -Syu
答案2
我认为您安装了一些孤立的软件包。您可以在更新之前尝试使用以下命令删除这些软件包:
# pacman -Qtdq | pacman -Rns -
阅读更多:https://wiki.archlinux.org/title/pacman/Tips_and_tricks#Removing_unused_packages_(orphans)