0

尝试在 Ubuntu 12.04 上安装 yaws 1.98 时出现以下错误。

bash$ sudo apt-get install yaws
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:
yaws : Depends: erlang-yaws (>= 1.92-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
4

2 回答 2

0

由于您持有损坏的软件包,您可能想尝试此处提供的建议来解决该问题,然后再次尝试安装 Yaws

于 2014-03-17T13:06:05.280 回答
0

aptitude 的依赖解析器比 apt 的依赖解析器更适合交互式依赖解析。aptitude 会记住哪些包是明确请求的,哪些包是由于依赖关系才安装的。aptitude 将提出一系列建议,并为您提供可能的依赖解决方案选择。

安装能力:

sudo apt install aptitude

使用 aptitude 通过you have held broken packages 以下形式的命令交互式解决错误:

sudo aptitude 安装包名
于 2021-12-02T14:41:48.130 回答