Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t在Ubuntu 16.04中安装git_Git_Ubuntu 16.04 - Fatal编程技术网

Can';t在Ubuntu 16.04中安装git

Can';t在Ubuntu 16.04中安装git,git,ubuntu-16.04,Git,Ubuntu 16.04,我最近用Windows10和Ubuntu 16.04双重启动了我的笔记本电脑。我试图通过使用sudo apt get install git安装git来安装git,但我收到了以下消息- Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: git-man

我最近用Windows10和Ubuntu 16.04双重启动了我的笔记本电脑。我试图通过使用
sudo apt get install git安装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非常陌生。我连接到局域网,互联网工作正常(虽然我无法连接到Ubuntu上的wifi,我不知道为什么,但这是另一天的问题)。我试图通过各种链接寻找解决问题的方法,但都没有成功。有人能告诉我怎么做吗?

如果有git文件,请尝试清除您的文件,然后运行
apt get install git core
insted;)

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

无法连接到archive.ubuntu.com:80(91.189.88.152)connect(111:连接被拒绝)[IP:91.189.88.152 80]表明连接存在一些问题。你想让互联网正常工作吗?你是否遵守一些代理/防火墙规则?