Arch升级installing libcap (2.49-1) breaks dependency ‘libcap=2.48‘ required by lib32-libcap

问题描述

$ 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 中的某些软件需要更新,然而大门却被我关上了。开启然后就可以正常更新了

更多细节请看原文

参考

Pacman arch wiki

System_maintenance arch wiki

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

End

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值