无法安装git
Tofloor
poster avatar
祖林
deepin
2020-09-13 18:48
Author
安装git提示找不到。请问如何解决


  1. sudo apt-get install git
  2. 正在读取软件包列表... 完成
  3. 正在分析软件包的依赖关系树      
  4. 正在读取状态信息... 完成      
  5. 将会同时安装下列软件:
  6.   git-man liberror-perl
  7. 建议安装:
  8.   git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki
  9.   git-svn
  10. 下列【新】软件包将被安装:
  11.   git git-man liberror-perl
  12. 升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
  13. 需要下载 6,912 kB/6,943 kB 的归档。
  14. 解压缩后会消耗 36.9 MB 的额外空间。
  15. 您希望继续执行吗? [Y/n] y
  16. 忽略:1 https://community-packages.deepin.com/deepin apricot/main amd64 git-man all 1:2.20.1.1-2+deb10u3+dde
  17. 错误:2 https://community-packages.deepin.com/deepin apricot/main amd64 git amd64 1:2.20.1.1-2+deb10u3+dde
  18.   404  Not Found [IP: 223.111.183.30 443]
  19. 错误:1 https://community-packages.deepin.com/deepin apricot/main amd64 git-man all 1:2.20.1.1-2+deb10u3+dde
  20.   404  Not Found [IP: 223.111.183.30 443]
  21. E: 无法下载 https://community-packages.deepin.com/deepin/pool/main/g/git/git-man_2.20.1.1-2+deb10u3+dde_all.deb  404  Not Found [IP: 223.111.183.30 443]
  22. E: 无法下载 https://community-packages.deepin.com/deepin/pool/main/g/git/git_2.20.1.1-2+deb10u3+dde_amd64.deb  404  Not Found [IP: 223.111.183.30 443]
  23. E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?
Copy the Code

Reply Favorite View the author
All Replies
Ziggy
deepin
2020-09-13 19:32
#1
看提示操作,sudo apt -f install,404可能是服务器堵塞,过段时间看看,错峰使用
Reply View the author
山高谷深
deepin
2020-09-13 19:37
#2
试试:sudo sh -c 'echo "61.54.25.98    community-packages.deepin.com" >> /etc/hosts'
Reply View the author
祖林
deepin
2020-09-14 07:12
#3
https://bbs.deepin.org/post/201961
试试:sudo sh -c 'echo "61.54.25.98    community-packages.deepin.com" >> /etc/hosts'

按照您的方式可以了。谢谢
Reply View the author