无法在Ubuntu 16.04

时间:2017-01-15 10:55:21

标签: git 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,我无法弄清楚为什么,但这是另一天的问题)。我尝试了各种链接并寻找解决我的问题但是徒劳无功。谁能指导我该怎么做呢?

2 个答案:

答案 0 :(得分:0)

尝试清除git文件(如果有)并运行apt-get install git-core insted;)

答案 1 :(得分:0)

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