curl及apt操作返回403 Forbidden但ping正常的网络问题求助
我已经被这个问题卡了整整一周了——每次执行apt update或者安装几乎任何软件包都会报错。用curl -I http://google.com测试网络也返回403错误,具体输出如下:
HTTP/1.1 403 Forbidden
Server: nginx/1.14.1
Date: Mon, 19 Aug 2024 10:28:39 GMT
Content-Type: text/plain
Content-Length: 332
Connection: keep-alive
Content-Type: text/html
奇怪的是ping操作完全正常,但curl提示*“this category is blocked by sdns”*。我试着重新安装证书,执行了这条命令:
root@hse:/var/www/html# sudo apt update && sudo apt install --reinstall ca-certificates
结果所有Ubuntu官方源都返回403 Forbidden错误:
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
403 Forbidden [IP: 208.91.112.55 80]
Err:2 http://archive.ubuntu.com/ubuntu noble InRelease
403 Forbidden [IP: 208.91.112.55 80]
Err:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
403 Forbidden [IP: 208.91.112.55 80]
Err:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
403 Forbidden [IP: 208.91.112.55 80]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from...
备注:内容来源于stack exchange,提问作者hossein




