root@kali:~/Desktop/tests# apt-get update
错误:1 https://mirrors.aliyun.com/kali kali-rolling InRelease
无法连接上 127.0.0.1:8889 (127.0.0.1)。 - connect (111: 拒绝连接)
正在读取软件包列表... 完成
W: 无法下载 https://mirrors.aliyun.com/kali/dists/kali-rolling/InRelease 无法连接上 127.0.0.1:8889 (127.0.0.1)。 - connect (111: 拒绝连接)
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
root@kali:~/Desktop/tests# env | grep -i proxy
no_proxy=localhost,127.0.0.0/8,::1
ftp_proxy=http://127.0.0.1:8889/
https_proxy=http://127.0.0.1:8889/
NO_PROXY=localhost,127.0.0.0/8,::1
FTP_PROXY=http://127.0.0.1:8889/
HTTPS_PROXY=http://127.0.0.1:8889/
HTTP_PROXY=http://127.0.0.1:8889/
http_proxy=http://127.0.0.1:8889/
ALL_PROXY=socks://127.0.0.1:1089/
all_proxy=socks://127.0.0.1:1089/
root@kali:~/Desktop/tests# unset HTTPS_PROXY
root@kali:~/Desktop/tests# unset https_proxy
root@kali:~/Desktop/tests# unset ftp_proxy
root@kali:~/Desktop/tests# unset FTP_proxy
root@kali:~/Desktop/tests# unset http_proxy
root@kali:~/Desktop/tests# unset HTTP_PROXY
root@kali:~/Desktop/tests# env | grep -i proxy
no_proxy=localhost,127.0.0.0/8,::1
NO_PROXY=localhost,127.0.0.0/8,::1
FTP_PROXY=http://127.0.0.1:8889/
ALL_PROXY=socks://127.0.0.1:1089/
all_proxy=socks://127.0.0.1:1089/
root@kali:~/Desktop/tests# unset FTP_PROXY
root@kali:~/Desktop/tests# env | grep -i proxy
no_proxy=localhost,127.0.0.0/8,::1
NO_PROXY=localhost,127.0.0.0/8,::1
ALL_PROXY=socks://127.0.0.1:1089/
all_proxy=socks://127.0.0.1:1089/
root@kali:~/Desktop/tests# apt-get update
获取:1 https://mirrors.aliyun.com/kali kali-rolling InRelease [30.6 kB]
获取:2 https://mirrors.aliyun.com/kali kali-rolling/main Sources [14.3 MB]
获取:3 https://mirrors.aliyun.com/kali kali-rolling/main amd64 Packages [17.9 MB]
已下载 32.2 MB,耗时 12秒 (2,640 kB/s)
正在读取软件包列表... 完成