我连接到大学路由器,我知道它们有很多限制,但是firefox没有任何问题地访问回购链接,但是终端不能。
如何使终端使用与firefox相同的协议?
我的Ubuntu版本是18.04 LTS
此外,ubuntu软件包管理器看起来可以工作,因为我可以开始安装VLC,但从未超过6-8%,我每次都会超时。
我试过使用Synaptic,但同样403禁止。
我尝试使用代理,通过ssh从我的手机隧道我的连接,但包管理器(apt或synaptic)没有通过认证阶段。
此外,我知道学校正在使用fortiguard,但正如我所说,我可以使用firefox访问所有远程回购。
wadaane@wadaane-ubuntu:~$ sudo apt update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
403 Forbidden [IP: 91.189.91.26 80]
Err:2 http://sy.archive.ubuntu.com/ubuntu bionic InRelease
403 Forbidden [IP: 91.189.88.161 80]
Err:3 http://sy.archive.ubuntu.com/ubuntu bionic-updates InRelease
403 Forbidden [IP: 91.189.88.162 80]
Err:4 http://sy.archive.ubuntu.com/ubuntu bionic-backports InRelease
403 Forbidden [IP: 91.189.88.162 80]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is no longer signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 403 Forbidden [IP: 91.189.91.26 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://sy.archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
E: Failed to fetch http://sy.archive.ubuntu.com/ubuntu/dists/bionic/InRelease 403 Forbidden [IP: 91.189.88.161 80]
E: Failed to fetch http://sy.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 403 Forbidden [IP: 91.189.88.162 80]
E: The repository 'http://sy.archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://sy.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 403 Forbidden [IP: 91.189.88.162 80]
E: The repository 'http://sy.archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details. 编辑:
以下是来自tcpdump的截断输出:
22:15:22.144893 IP wadaane-ubuntu.32779 > 172.18.3.2.domain: 62851+ [1au] PTR? 23.91.189.91.in-addr.arpa. (54)
22:15:22.152815 IP 172.18.3.2.domain > wadaane-ubuntu.32779: 62851 1/0/1 PTR economy.canonical.com. (89)
22:15:22.144309 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [S], seq 704597193, win 29200, options [mss 1460,sackOK,TS val 2654335473 ecr 0,nop,wscale 7], length 0
22:15:22.152697 IP economy.canonical.com.http > wadaane-ubuntu.36120: Flags [S.], seq 2352942977, ack 704597194, win 5792, options [mss 1460,sackOK,TS val 746784843 ecr 2654335473,nop,wscale 7], length 0
22:15:22.152765 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [.], ack 1, win 229, options [nop,nop,TS val 2654335482 ecr 746784843], length
22:15:22.153117 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [P.], seq 1:160, ack 1, win 229, options [nop,nop,TS val 2654335482 ecr 746784843], length 159: HTTP: GET /ubuntu/dists/bionic/InRelease HTTP/1.1
22:15:22.168911 IP economy.canonical.com.http > wadaane-ubuntu.36120: Flags [P.], seq 1:1449, ack 160, win 5792, options [nop,nop,TS val 746784843 ecr 2654335482], length 1448: HTTP: HTTP/1.1 403 Forbidden
22:15:22.168951 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [.], ack 1449, win 251, options [nop,nop,TS val 2654335498 ecr 746784843], length 0
22:15:22.169724 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [F.], seq 160, ack 1449, win 251, options [nop,nop,TS val 2654335499 ecr 746784843], length 0
22:15:22.178134 IP economy.canonical.com.http > wadaane-ubuntu.36120: Flags [P.], seq 1449:2897, ack 160, win 5792, options [nop,nop,TS val 746784843 ecr 2654335482], length 1448: HTTP
22:15:22.178177 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [R], seq 704597353, win 0, length 0
22:15:22.179030 IP economy.canonical.com.http > wadaane-ubuntu.36120: Flags [FP.], seq 2897:2912, ack 160, win 5792, options [nop,nop,TS val 746784843 ecr 2654335482], length 15: HTTP
22:15:22.179049 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [R], seq 704597353, win 0, length 0
22:15:22.185000 IP economy.canonical.com.http > wadaane-ubuntu.36120: Flags [.], ack 161, win 5792, options [nop,nop,TS val 746784843 ecr 2654335499], length 0
22:15:22.185182 IP wadaane-ubuntu.36120 > economy.canonical.com.http: Flags [R], seq 704597354, win 0, length 0发布于 2018-12-12 01:05:08
好的,所以网络问题是不能解决的,就像大多数人说的,这是IT部门的事情。
因此,最后的解决方案是使用apt离线。
发布于 2018-12-11 14:15:22
移除现有的包,然后尝试以下操作:
dns-nameserver 8.8.8.8
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
apt-get update
apt-get upgradehttps://askubuntu.com/questions/1099922
复制相似问题