新部署的云服务器出现如下错误:

root@iZj6cbjalvhsw0fhndmm5xZ:~# apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,898 kB/3,918 kB of archives.
After this operation, 25.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main i386 git-man all 1:2.7.4-0ubuntu1.2
Ign:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 git amd64 1:2.7.4-0ubuntu1.2
Ign:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 git-man all 1:2.7.4-0ubuntu1.2
Err:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 git amd64 1:2.7.4-0ubuntu1.2
404 Not Found
Err:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main i386 git-man all 1:2.7.4-0ubuntu1.2
404 Not Found
Err:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main i386 git-man all 1:2.7.4-0ubuntu1.2
404 Not Found
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/pool/main/g/git/git-man_2.7.4-0ubuntu1.2_all.deb 404 Not Found E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/pool/main/g/git/git_2.7.4-0ubuntu1.2_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

(这不很明显是一些安装源失效,甚至还有命令提示)为了避免像我一样看到错误就百度一波,结果没找到一个靠谱的方法。

超简单,更新一下源就可以了。

sudo apt-get update

最新文章

  1. Oracle行转列操作
  2. Atitit  如何让精灵控件运动
  3. ubuntu系统下更新jdk版本
  4. Linux进程间通信:IPC对象——信号灯集详解
  5. dede调用文章里的图片
  6. Innode引擎监控的开启的方法
  7. HTML5之缓存
  8. Oracle中正则表达式的使用
  9. 递归:这帮坑爹的小兔崽子 - 零基础入门学习Python023
  10. 学习笔记:javascript 文档对象(document)
  11. 01、NetCore2.0优化之Web服务器 与 IIS解耦
  12. 使用 .NET Core 开发 BT Tracker 服务器
  13. Makefile模板(C++)
  14. JS浏览器兼容问题
  15. ThinkPHP 缓存技术详解 使用大S方法
  16. Vue框架H5商城类项目商品详情点击返回弹出推荐商品弹窗的实现方案
  17. 基于redis的分布式ID生成器
  18. 对象本田CRV
  19. The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all Stacktrace
  20. [转载]持续交付和DevOps的前世今生

热门文章

  1. 【Linux学习】Linux系统管理2—作业调度
  2. 3-C++程序的结构1.2
  3. DOM学习笔记(三)DOM元素的访问、修改与事件
  4. Linux 一些问题
  5. 进击python第一篇:相遇
  6. 原生js回到顶部
  7. Sql Server2008R2与IDEA的连接
  8. SpringBoot整合Memached
  9. Nacos深入浅出(一)
  10. Codeforces 1139E(二分图最大匹配)