20-04 dist-upgrade 后大量软件消失

20-04 dist-upgrade 后大量软件消失

我使用的是 20.04,推迟更新到 22.04(旧系统,需要先研究性能影响)。

我不断收到“部分升级”消息,并希望它们消失,所以我只是执行了 apt update + dist-upgrade。

今天早上,我注意到很多软件都丢失了。Gimp、Kdenlive,甚至 ffmpeg!

当我尝试重新安装 ffmpeg 时,出现以下信息:

sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec58 (= 7:4.4.3-0ubuntu1~20.04.sav3)
          Depends: libavdevice58 (= 7:4.4.3-0ubuntu1~20.04.sav3) but it is not going to be installed
          Depends: libavfilter7 (= 7:4.4.3-0ubuntu1~20.04.sav3)
          Depends: libavformat58 (= 7:4.4.3-0ubuntu1~20.04.sav3)
E: Unable to correct problems, you have held broken packages.

怎么回事?为什么更新会删除我明明在使用的东西?我猜 dist-upgrade 会主动删除仍在使用的依赖项。再也不会用那个命令了哈哈。

我该如何解决这个问题?我是不是只需要咬紧牙关,让它升级到 22.04,然后手动重新安装所有导致 Thanos 从我这里消失的软件?

预计到达时间:

如果我沿着图书馆的踪迹走,我最终会到达:

E: Package 'libilbc3' has no installation candidate

答案1

当您的操作系统损坏时,切勿尝试升级。升级只会带来问题。全新安装新操作系统始终是最佳选择,甚至可能更快。

相关内容