问题描述
$ sudo pacman -Syu
:: 正在同步软件包数据库...
core 已经是最新版本
extra 已经是最新版本
community 已经是最新版本
:: 正在进行全面系统更新...
正在解析依赖关系...
正在查找软件包冲突...
错误:无法准备事务处理 (无法满足依赖关系)
:: 安装 libcap (2.49-1) 破坏依赖 'libcap=2.48' (lib32-libcap 需要)
:: 安装 libjpeg-turbo (2.1.0-1) 破坏依赖 'libjpeg-turbo=2.0.6' (lib32-libjpeg-turbo 需要)
用中文啥也搜不出来
# 将语言格式切换为 ascii 字符
$ export LANG=C
$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing libcap (2.49-1) breaks dependency 'libcap=2.48' required by lib32-libcap
:: installing libjpeg-turbo (2.1.0-1) breaks dependency 'libjpeg-turbo=2.0.6' required by lib32-libjpeg-turbo
解决过程
在阅读 [SOLVED] Pacman -Syu: installing libcap breaks dependency 2021-02-11时,有一句话让我似乎想起了啥,想到我之前好像在整 wine 的时候开启过这个 Multilib 仓库,装完之后好像也没管过,一看发现被我给关上了。。
If you have things installed from multilib, you can’t just disable the repo and expect things to work.
$ sudo nano /etc/pacman.conf
# 去掉下面的内容前面的 ‘#’ 注释
[multilib]
Include = /etc/pacman.d/mirrorlist
这么一说的话,原来是 multilib 中的某些软件需要更新,然而大门却被我关上了。开启然后就可以正常更新了
更多细节请看原文
参考
If a partial upgrade scenario has been created, and binaries are broken because they cannot find the libraries they are linked against, do not “fix” the problem simply by symlinking. Libraries receive soname bumps when they are not backwards compatible. A simple pacman -Syu to a properly synced mirror will fix the problem as long as pacman is not broken.
Official repositories arch wiki
ArchLinux近期更新依赖问题解决 StriverLite 2020-01-13 :在Pacman arch wiki表示这个指令有破坏系统的能力,应该尽量避免使用。最后我也没有用这个办法
sudo pacman -Rdd xxx xxx && sudo pacman -Syu
ArchLinux 升级导致的wifi故障 csfreebird 2016-05-01 :降级版本(/var/cache/pacman/pkg/) + pacman的ignore配置
[SOLVED] libcap (2.46) breaks dependency ‘libcap=2.45’ required by lib32-libcap 4 December 2020
i added lib32-libpcap to lib32-testing (multilib-testing) now.
[SOLVED] Pacman -Syu: installing libcap breaks dependency 2021-02-11
Arch Linux wine 微信、heidissql、chrome - AUR heplers - yay Kearney form An idea 2021-03-17
6 个用于 Arch Linux 的最佳 AUR 助手 作者: Magesh Maruthamuthu 译者: LCTT hkurj | 2020-03-21 08:30