E: Package ‘curl‘ has no installation candidate(问题解决)
文章目录
- 1. 问题:E: Package 'curl' has no installation candidate
- 2. 解决
1. 问题:E: Package ‘curl’ has no installation candidate
Package curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another sourceE: Package 'curl' has no installation candidate
2. 解决
备份系统自带的源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
复制阿里或者清华源:
阿里源: https://opsx.alibaba.com/mirror
清华源:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
本人使用的是阿里源,以及是Ubuntu系统,ubuntu 18.04(bionic) 配置如下:deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
打开/etc/apt/sources.list文件,将原来的内容删除,然后将上述ubuntu 18.04(bionic)
的配置,粘贴上,保存:sudo vi /etc/apt/sources.list
输入命令sudo apt-get update进行更新:
sudo apt-get update
最后,下载curl:
sudo apt-get install curl
Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed:libcurl4 The following NEW packages will be installed:curl The following packages will be upgraded:libcurl4 1 upgraded, 1 newly installed, 0 to remove and 448 not upgraded. Need to get 378 kB of archives. After this operation, 411 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrors.aliyun.com/ubuntu bionic-security/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.16 [220 kB] Get:2 http://mirrors.aliyun.com/ubuntu bionic-security/main amd64 curl amd64 7.58.0-2ubuntu3.16 [159 kB] Fetched 378 kB in 0s (1,739 kB/s) (Reading database ... 228625 files and directories currently installed.) Preparing to unpack .../libcurl4_7.58.0-2ubuntu3.16_amd64.deb ... Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.16) over (7.58.0-2ubuntu3.9) ... Selecting previously unselected package curl. Preparing to unpack .../curl_7.58.0-2ubuntu3.16_amd64.deb ... Unpacking curl (7.58.0-2ubuntu3.16) ... Setting up libcurl4:amd64 (7.58.0-2ubuntu3.16) ... Setting up curl (7.58.0-2ubuntu3.16) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ...
E: Package ‘curl‘ has no installation candidate(问题解决)相关推荐
- E:Package ‘Vim‘ has no installation candidate问题解决
E:Package 'Vim' has no installation candidate问题解决 参考文章: (1)E:Package 'Vim' has no installation candi ...
- E:Package 'Vim' has no installation candidate问题解决
E:Package 'Vim' has no installation candidate问题解决 参考文章: (1)E:Package 'Vim' has no installation candi ...
- ubuntu常见问题:E: Package ‘xxx‘ has no installation candidate 解决方法
提示:ubuntu常见问题系列(学习使用) E: Package 'xxx' has no installation candidate 解决方法 出现了Package has no installa ...
- Ubuntu安装docker报错:Package ‘docker-ce‘ has no installation candidate
Package 'docker-ce' has no installation candidate Ubuntu 20.04.3 安装docker报错 报错一: E: Package 'docker- ...
- ubuntu16.4版本安装docker-ce提示Package ‘docker-ce‘ has no installation candidate解决的办法
ubuntu16.4版本安装docker-ce提示Package 'docker-ce' has no installation candidate解决的办法 原文链接:https://www.cnb ...
- 安装docker时出现以下错误:Package ‘docker-ce‘ has no installation candidate
实行了以下命令,出现 Package 'docker-ce' has no installation candidate $ sudo apt install apt-transport-https ...
- docker安装问题:E: Package 'docker-ce' has no installation candidate
我的环境是在vm虚拟机中,Ubuntu17.04 前期安装步骤不过多介绍,下面这个博客就很好 ubuntu16.10安装docker17.03.0-ce并配置国内源和加速器 http://www.cn ...
- 解决Ubuntu17.04不能安装git的问题 E: Package 'git' has no installation candidate
解决Ubuntu17.04不能安装git的问题 E: Package 'git' has no installation candidate 在Ubuntu系统中安装git的命令是:sudo apt ...
- APT: Package ‘vnc4server‘ has no installation candidate 排查过程及解决方法
找不到 vnc4server 想安装 vnc4server,于是 sudo apt-get insall vnc4server,然而找不到包,说 Package 'vnc4server' has no ...
最新文章
- 概率论快速学习03:概率公理补充
- Linux下rgmii接口,zynq7010 petalinux 2019.2 RGMII via EMIO 连接问题
- cjmx:JConsole的命令行版本
- ASP.NET-EF基础知识
- Mr.J-- 图片墙动画效果
- Crackme008
- Java进阶03 IO基础
- C#--打包安装项目
- 天翼网盘在线直链解析源码
- 如何练就DOTA绝世神功宝典(转)
- 随机效应估算与固定效应估算_面板数据固定效应 vs. 随机效应
- PHP加密平台,在线加密sg11,混淆,Leave,EnPHPV2等
- JAVA应用生产问题排查步骤
- 简单好听的id_简单好听的微信id(精选500个)_见过的最好看的微信id_简单好记好看的微信号 - 第4页...
- 校园二手交易平台毕设 校园二手商城毕业设计 毕设二手校园商品交易 二手商城系统 java二手交易市场 springboot商城 ssm二手交易平台下载 源代码+数据库+调试运行+讲解代码
- 安卓APP开发发展趋势与前景
- 数学物理方法·基础④复平面/辐角/复数表示形式
- AI是一场革命,不要笑,我是认真的。
- YOLOv3 车辆,行人,自行车检测
- 手把手系列--验证自己编写的STM32H750XBH6_ArtPi平台Keil MDK Flash下载算法