apt-get 使用代理会导致 404 错误

apt-get 使用代理会导致 404 错误

我在配置 apt-get 使用我公司的代理时遇到了一些问题。

/etc/apt/apt.conf

Acquire::http::Proxy "http://[email protected]:my+#[email protected]/";

/etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty multiverse main universe restricted #Added by software-properties

deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse main universe restricted #Added by software-properties

deb http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe

deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse

deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse #Added by software-properties

deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse main universe restricted #Added by software-properties
deb http://archive.ubuntu.com/ubuntu trusty-security universe
deb http://archive.ubuntu.com/ubuntu trusty-security multiverse

deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

输出

Err http://archive.ubuntu.com trusty-security/restricted Sources
  404  Not Found [IP: xxx]
Err http://archive.ubuntu.com trusty-security/main i386 Packages
  404  Not Found [IP: xxx]
Err http://archive.ubuntu.com trusty-security/restricted i386 Packages
  404  Not Found [IP: xxx]
Err http://archive.ubuntu.com trusty-security/universe i386 Packages
  404  Not Found [IP: xxx]
Err http://archive.ubuntu.com trusty-security/multiverse i386 Packages
  404  Not Found [IP: xxx]

我想这可能是代理配置中我的用户名有“@”的问题,但如果是这样的话,我该如何写我的用户名呢?但是,你知道我做错了什么吗?

更新:

我尝试使用下面推荐的反斜杠,但错误仍然相同。我还再次检查了错误消息中的 IP,它们有时是 192.xx.xx.xx,有时是 139.xx.xx.xx。

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found [IP: 139.23.xx.xx 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/multiverse/source/Sources  404  Not Found [IP: 192.129.xx.xx 80]

问候

答案1

问题已经解决了。proxyconf.example.com移交了一个代理配置脚本,但 ATP 无法正确理解。我更改了代理服务器,现在它运行良好。

相关内容