更新时出错,包被保留

更新时出错,包被保留

我正在尝试在我的 debian(或任何其他包)上安装 nodejs 包。我收到这个错误。

pablo@debian:~/Documents/clients/stock$ 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:
 phonon : Depends: phonon-backend-vlc but it is not going to be installed or
                   phonon-backend
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我该如何解决这个问题?我知道此页面上有很多帖子,但似乎都没有解决问题:

我已经尝试过 apt-get -f install 没有任何问题

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

我也检查了/var/log/apt/term.log文件,但没有错误

答案1

您的许多软件包似乎已经过时了。

因此该包可能会引用其他未更新的包。或者旧的软件包需要无法再安装的版本。

只需运行以下命令:

apt-get update
apt-get dist-upgrade
apt-get install nodejs

相关内容