如何安装带有依赖错误的 curl 13.04

wha*_*ard 5 apt curl software-installation

如何在 ubuntu 13.04 中安装 curl?它总是抛出这个错误:

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:
 curl : Depends: libcurl3 (= 7.29.0-1ubuntu3) but 7.29.0-1ubuntu3.2 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

使用时sudo apt-get update,它显示:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

这是我所做的步骤:

  1. 使用 sudo apt-get install curl
  2. 然后删除 google-chrome-stable 和 Chrome 浏览器 sudo apt-get install curl
  3. 使用sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean然后再次运行第一步。

我也尝试过: 添加 PPA 后如何解决未满足的依赖项?

并且仍然抛出相同的错误。此时我不知道我做错了什么,在 ubuntu 中无法安装 curl 吗?

s3v*_*v3n 7

刚遇到这个问题,因为它有一个不同的问题和解决方案,我要把它贴在这里。

就我而言,我使用的是 Ubuntu 14.04,错误是:

The following packages have unmet dependencies:
curl : Depends: libcurl3 (= 7.35.0-1ubuntu2) but 7.35.0-1ubuntu2.2 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

就我而言,问题是,我已经不加以控制,错误,trusty-securitytrusty-updates在仓库Software & Updates工具,也许依赖将要被从仓库的一个安装:

软件和更新

底线是:确保您启用了所有需要的存储库。

  • Thx...我一天中的几个小时都在寻找其他东西,删除 PPA 等,而我所要做的就是选中两个复选框(并下载 438 个更新)。我以前从未见过这些复选框,所以我知道我从未取消选中它们,但它们仍然未选中。 (2认同)

wha*_*ard 4

正如上面评论中所讨论的(@fboaventura),事实证明我使用的 ubuntu 镜像以某种方式导致了错误,请更改它 us.archive.ubuntu.com 解决它。总体而言:

  1. 使用以下命令将镜像更改回us.archive.ubuntu.comubuntu 主服务器update manager>settings
  2. 运行命令sudo apt-get update && sudo apt-get upgrade && sudo apt-get -f install
  3. 运行命令sudo apt-get install curl

这就是全部希望这个答案对某人有帮助。