【问题标题】:E: Unable to correct problems, you have held broken packages when trying to install yaws 1.98 on Ubuntu 12.04 [closed]E:无法纠正问题,您在尝试在 Ubuntu 12.04 上安装 yaws 1.98 时持有损坏的软件包 [关闭]
【发布时间】:2022-01-21 15:53:18
【问题描述】:

尝试在 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.

【问题讨论】:

标签: ubuntu dependencies apt yaws package-management


【解决方案1】:

由于您持有损坏的包裹,您可能想尝试advice provided here 来解决该问题,然后再尝试install Yaws

【讨论】:

    【解决方案2】:

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

    安装 aptitude:

    sudo apt install aptitude
    

    使用 aptitude 交互式解决you have held broken packages 错误,命令形式如下:

    sudo aptitude install 包名

    【讨论】:

    • 在我运行sudo apt install aptitude后,它再次显示:“E:无法纠正问题,您持有损坏的包。”
    • 使用 aptitude aptitude 的交互式依赖解析功能来解决问题。有时您需要反复使用 aptitude 的交互式依赖关系解析功能来一次解决一个问题,直到解决包管理问题。
    猜你喜欢
    • 2018-11-12
    • 1970-01-01
    • 1970-01-01
    • 2021-04-12
    • 1970-01-01
    • 2022-10-16
    • 2017-06-17
    相关资源
    最近更新 更多