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)
这是我所做的步骤:
sudo apt-get install curl
sudo apt-get install curl
sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean
然后再次运行第一步。我也尝试过: 添加 PPA 后如何解决未满足的依赖项?
并且仍然抛出相同的错误。此时我不知道我做错了什么,在 ubuntu 中无法安装 curl 吗?
刚遇到这个问题,因为它有一个不同的问题和解决方案,我要把它贴在这里。
就我而言,我使用的是 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-security
并trusty-updates
在仓库Software & Updates
工具,也许依赖将要被从仓库的一个安装:
底线是:确保您启用了所有需要的存储库。
正如上面评论中所讨论的(@fboaventura),事实证明我使用的 ubuntu 镜像以某种方式导致了错误,请更改它 us.archive.ubuntu.com 解决它。总体而言:
us.archive.ubuntu.com
ubuntu 主服务器update manager>settings
sudo apt-get update && sudo apt-get upgrade && sudo apt-get -f install
sudo apt-get install curl
这就是全部希望这个答案对某人有帮助。
归档时间: |
|
查看次数: |
16376 次 |
最近记录: |