我在Windows 10上安装了Ubuntu的unix bash(this:https://www.microsoft.com/fr-fr/p/ubuntu/9nblggh4msv6#activetab=pivot:overviewtab)
它安装得很好,但是我不能“ apt安装”(是的,在此版本上,它只是“ apt install”)
输入我的密码后,我有了这个:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 gcc-7 gcc-7-base libasan4 libatomic1 libbinutils
libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2
libquadmath0 libtsan0 libubsan0 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-7-locales gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc gcc-7-multilib
gcc-7-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg glibc-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 gcc gcc-7 gcc-7-base libasan4 libatomic1 libbinutils
libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2
libquadmath0 libtsan0 libubsan0 linux-libc-dev manpages-dev
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-20ubuntu2~18.04
Ign:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-20ubuntu2~18.04
Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.88.152 80]
Ign:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-20ubuntu2~18.04
Ign:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-20ubuntu2~18.04
Err:2 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.91.23 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 gcc-7-base amd64 7.3.0-16ubuntu3
Connection failed [IP: 91.189.88.161 80]
Err:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libisl19 amd64 0.19-1
Connection failed [IP: 91.189.88.152 80]
Err:3 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.88.149 80]
Err:4 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.88.162 80]
Err:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpc3 amd64 1.1.0-1
Connection failed [IP: 91.189.91.23 80]
Err:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 cpp-7 amd64 7.3.0-16ubuntu3
Connection failed [IP: 91.189.88.149 80]
Err:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 cpp amd64 4:7.3.0-3ubuntu2
Connection failed [IP: 91.189.88.162 80]
Err:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcc1-0 amd64 8-20180414-1ubuntu2
Connection failed [IP: 91.189.88.161 80]
Err:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgomp1 amd64 8-20180414-1ubuntu2
Connection failed [IP: 91.189.88.152 80]
Err:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 libitm1 amd64 8-20180414-1ubuntu2
Connection failed [IP: 91.189.91.23 80]
(然后继续到“ Err:30”) 然后:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
当我尝试更新时(与“缺少修正选项”相同)
您有解决该问题的想法吗?我在Google上搜索了几个小时却找不到任何东西 尝试了不同的连接,并且关闭了防病毒功能,等等。
谢谢您的时间!
答案 0 :(得分:0)
我已经看到过去使用某些IPv6地址的计算机会出现此问题。您的计算机正在使用一个吗?也有一段时间以前在另一个stackoverflow上有这个错误的讨论,我现在找不到指向它的链接。最后,这是一个企业网络问题,阻止了apt安装。检查您的防火墙设置,并尝试禁用您可能正在运行的任何第三方防病毒/防火墙。也请参考这些链接,它们应该有所帮助。
https://github.com/Microsoft/WSL/issues/1720
https://www.reddit.com/r/bashonubuntuonwindows/comments/6h71ku/bash_aptget_wont_work/