LMLPHP后院

ArchLinux 更新报错解决 ffmpeg2.8 libxfont技术

maybe yes 发表于 2018-08-26 13:12

ArchLinux 更新报错,主要两类错误,一个是 ffmpeg2.8,另一个是 libxfont。

报错如下:

0123456
looking for conflicting packages...error: failed to prepare transaction (could not satisfy dependencies):: ffmpeg2.8: installing libvpx (1.7.0-1) breaks dependency 'libvpx.so=4-64':: ffmpeg2.8: removing libx264 breaks dependency 'libx264.so=148-64':: ffmpeg2.8: installing x265 (2.8-1) breaks dependency 'libx265.so=130-64':: libxfont: removing fontsproto breaks dependency 'fontsproto>=2.1.3'

查看 pacman 版本

01234567
pacman -V .--. Pacman v5.0.2 - libalpm v10.0.2/ _.-' .-. .-. .-. Copyright (C) 2006-2016 Pacman Development Team\ '-. '-' '-' '-' Copyright (C) 2002-2006 Judd Vinet '--' This program may be freely redistributed under the terms of the GNU General Public License.

解决方法

更新 vlc

0
sudo pacman -Sy vlc

删除 ffmpeg2.8

0
sudo pacman -R ffmpeg2.8

删除 libxfont

0123
sudo pacman -Rs libxfontchecking dependencies...error: failed to prepare transaction (could not satisfy dependencies):: xorg-bdftopcf: removing libxfont breaks dependency 'libxfont'

删除报错,尝试更新 xorg-bdftopcf

0
sudo pacman -Sy xorg-bdftopcf

再次删除 libxfont

0
sudo pacman -Rs libxfont

最后更新系统,pacman -Syu,成功执行。

解决这些问题的思路大致如下:

一级一级的往下找,如果发现下级依赖超级多,那肯定不应该是全部删除,只能尝试更新。

为什么系统更新这么麻烦,还是需要去做这件事情呢?主要还是不更新,后续软件都没法装了。

参考:https://bbs.archlinux.org/viewtopic.php?id=237522 http://tieba.baidu.com/p/5715672675 http://tieba.baidu.com/p/5723755919 https://www.v2ex.com/amp/t/430321

2025-05-04 13:50:24 1746337824 0.007496