由于保留了软件包,无法将 18.04 升级到 20.04/20.10

由于保留了软件包,无法将 18.04 升级到 20.04/20.10

我正在尝试从 18.04 升级到 20.10。我的理解是,我需要先更新到 20.04,然后再更新到 20.10。我按照这一页

当我跑步时sudo apt upgrade我收到此消息:

The following packages have been kept back:   
  frei0r-plugins libssh-4 
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

我不知道为什么这些被阻止了。我依稀记得安装了第一个包,但不知道我安装了什么需要第二个包。

当我跑步时,sudo apt dist-upgrade我收到了完全相同的消息。

当我继续操作时sudo apt do-release-upgrade收到此错误:

Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

好的,我猜测这和被扣留的包裹有关系吗?我读到过一个地方说我可以取消对包裹的扣留标记,但这样做不行:

$ sudo apt-mark unhold frei0r-plugins libssh-4
frei0r-plugins was already not hold.
libssh-4 was already not hold.

我在其他地方读到过,这sudo aptitude safe-upgrade可能会修复问题。它安装了一些 i386 软件包,但之后当我尝试升级时,我仍然收到与以前相同的消息/错误。

我还读到我应该运行apt list --upgradablesudo apt-get install单独列出每个包。但是当我尝试这样做时,我得到了这个错误:

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:
 frei0r-plugins : Depends: libopencv-objdetect4.2 but it is not going to be installed
                  Depends: libopencv-video4.2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

此外,当我尝试安装第二个依赖项时,我说它将删除四个 remmina 包,而这并不想要,因为我经常使用这个程序!

答案1

您可以尝试卸载 frei0r-plugins 和 libssh-4,然后尝试升级。如果成功,则重新安装 frei0r-plugins 和 libssh-4。您需要这两个安装吗? https://packages.debian.org/sid/libssh-4 https://frei0r.dyne.org/

答案2

我尝试更新时也遇到了同样的问题

我解决了这个问题,强制更新包,如下所示:
sudo apt-get install {package-name}

注意:
不确定这是否是处理事情的正确方法,但它对我来说很有效:)

相关内容