升级到 20.04.2 LTS 后无法安装软件包

升级到 20.04.2 LTS 后无法安装软件包

我正在尝试安装 nodejs,但是收到以下错误消息:

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:
 nodejs : Depends: python-minimal but it is not installable
E: Unable to correct problems, you have held broken packages.

然后尝试安装 python-minimal 时失败,并显示 python2-minimal 已替换。Python2-minimal 已经是最新版本

sudo apt-get -f install

返回

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

命令:

dpkg --get-selections | grep hold

未列出任何输出。

有什么建议么?

sudo apt update 输出

Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:5 https://deb.nodesource.com/node_14.x bionic InRelease
Fetched 101 kB in 0s (254 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

sudo apt upgrade 输出

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

完整的 sudo apt-get install nodejs 输出

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:
 nodejs : Depends: python-minimal but it is not installable
E: Unable to correct problems, you have held broken packages.

相关内容