无法在 Ubuntu 16.04 中安装 git

Can't install git in Ubuntu 16.04

我最近用 Windows 10 和 Ubuntu 16.04 双启动了我的笔记本电脑。我正在尝试使用 sudo apt-get install git 安装 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,624 kB of archives.
After this operation, 27.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://archive.ubuntu.com/ubuntu yakkety/main amd64 liberror-perl all 0.17024-1
Could not connect to archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused) [IP: 91.189.88.152 80]
Err:2 http://archive.ubuntu.com/ubuntu yakkety/main amd64 git-man all 1:2.9.3-1
Unable to connect to archive.ubuntu.com:http: [IP: 91.189.88.152 80]
Err:3 http://archive.ubuntu.com/ubuntu yakkety/main amd64 git amd64 1:2.9.3-1
Unable to connect to archive.ubuntu.com:http: [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libe/liberror-perl/liberror-perl_0.17024-1_all.deb  Could not connect to archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused) [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git-man_2.9.3-1_all.deb  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/git/git_2.9.3-1_amd64.deb  Unable to connect to archive.ubuntu.com:http: [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我对 ubuntu 很陌生。我已连接到 Lan 连接并且互联网工作正常(虽然我无法连接到 Ubuntu 上的 wifi,我不明白为什么,但这是另一天的问题)。我尝试访问各种链接并寻找解决问题的方法,但没有成功。谁能指导我如何处理它?

如果有 git 文件,请尝试清除 运行 apt-get install git-core ;)

我找到了解决方案。我正在使用代理,所以我需要在网络设置中进行代理手动设置,然后我需要安装软件更新。 无论如何,谢谢大家的回复:)