解决Ubuntu17.04不能安装git的问题 E: Package 'git' has no installation candidate

在Ubuntu系统中安装git的命令是:sudo apt install git,但比较奇怪的是,在Ubuntu17.04中输入该命令,却出现以下的情况:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package git 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 source

E: Package 'git' has no installation candidate

没有找到对应软件包'git',Why?以为没有update,但输入apt-get update,还是出现这种问题。后来,发现是更改一下Install的源地址就可以了,方法是:在System settings->software&Updates,勾选“Source code”,在Download from选择other

oftware&Updates,勾选“Source code”,在Download from选择other

点击选择“select Best Server”会自动选择网络最好的服务器,当然或者选择mirror.aliyun.com等国内镜像服务器下载。

然后Choose Server->Close->Reload即可,最后再次输入“sudo apt install git”就可以正常安装git了

解决Ubuntu17.04不能安装git的问题 E: Package 'git' has no installation candidate相关推荐

  1. 成功解决Linux安装vim不成功(package ‘vim‘ has no installation candidate)

    问题: 环境:Linux Ubuntu 17.0.0 出现的问题如下图所示,在安装vim时,错误信息:package is missing,has been obsoleted, or is only ...

  2. Ubuntu安装docker报错:Package ‘docker-ce‘ has no installation candidate

    Package 'docker-ce' has no installation candidate Ubuntu 20.04.3 安装docker报错 报错一: E: Package 'docker- ...

  3. 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 ...

  4. 解决“E: Package ‘libqtgui4‘ has no installation candidate”无法安装qt4

    使用场景:Ubuntu20.4,VMware16pro 笔者在安装Ubuntu下的网络调试助手NetAssist,遇到了"E: Package 'libqtgui4' has no inst ...

  5. docker安装问题:E: Package 'docker-ce' has no installation candidate

    我的环境是在vm虚拟机中,Ubuntu17.04 前期安装步骤不过多介绍,下面这个博客就很好 ubuntu16.10安装docker17.03.0-ce并配置国内源和加速器 http://www.cn ...

  6. APT: Package ‘vnc4server‘ has no installation candidate 排查过程及解决方法

    找不到 vnc4server 想安装 vnc4server,于是 sudo apt-get insall vnc4server,然而找不到包,说 Package 'vnc4server' has no ...

  7. 安装kalibr踩坑5:E: Package ‘python-software-properties‘ has no installation candidate

    is only available from another source However the following packages replace it:   software-properti ...

  8. ubuntu常见问题:E: Package ‘xxx‘ has no installation candidate 解决方法

    提示:ubuntu常见问题系列(学习使用) E: Package 'xxx' has no installation candidate 解决方法 出现了Package has no installa ...

  9. 【解决错误】E: Package ‘libtcl‘ has no installation candidate

    [解决错误]E: Package 'libtcl' has no installation candidate 报错E: Package 'libtcl' has no installation ca ...

最新文章

  1. 三维点云对应关系聚合算法的性能评价
  2. OpenCV中的傅里叶的门道
  3. springboot--多环境
  4. linux 进入rescue模式,一个简单小例子来说一下Rescue营救模式
  5. 计算机的数据通信的概念,计算机数据通信基础知识.ppt
  6. Cookie对象常用属性
  7. EF-使用EF写SQL语句
  8. IBM server guide download
  9. 电脑插入耳机声音奇怪,模糊不清楚。解决方法
  10. GPU架构和Compute Shader线程规划
  11. 【第二届PHP全球开发者大会】惠新宸(鸟哥):PHP7性能之源
  12. 网页优化(布局优化、图片优化)
  13. 压缩pdf大小的方法分享
  14. 学猫叫歌词计算机,学猫叫歌词 小峰峰(陈峰)、小潘潘(潘柚彤)_晴格歌词网
  15. 【Zabbix】Zabbix微信告警配置演示
  16. Android渠道包测试方案
  17. 获取公众号文章小工具
  18. 微搭使用笔记(二)微搭低代码平台介绍及基础使用
  19. 【案例实践】高光谱遥感数值建模技术及在植被、水体、土壤信息提取领域应用实践技术
  20. 查询出只有两门课程的全部学生的学号和姓名

热门文章

  1. Kindeditor小改动
  2. android intent action 介绍大全
  3. 【css】常用的几种水平垂直居中方式与盒子模型,面试经常问到!
  4. 如何批量删除QQ浏览器指定历史记录和导出指定的历史记录
  5. Jmeter初学(一)
  6. 三个对CS最大的谬误
  7. 3Delight NSI: A Streamable Render API
  8. 本人开源项目 Lu-Rpc
  9. (五)DTD验证XML文档
  10. 不擅演讲的马化腾在 08 年讲了什么?