无法sudo pacman -Syu
在代理网络下使用来更新pacman 。我尝试使用导出环境变量
export http_proxy='http://uem:[email protected]:3128/'
因为我的工作场所网络使用代理和身份验证。
然后使用更新
sudo -E pacman -Syu
但它返回error 407
并且error: failed to synchronize any databases
我无法重复您的问题。sudo -E pacman -Syu
用export http_proxy
我的作品。
我会检查您的用户名和密码是否正确(我知道这很傻,但是很幽默)。
用curl或wget测试。
如果您可以使用其中之一,请更新pacman.conf:
XferCommand = /路径/到/命令%u
If set, an external program will be used to download all remote files. All instances of %u will be replaced with the download URL. If present, instances of %o will be replaced with the local filename, plus a “.part” extension, which allows programs like wget to do file resumes properly. This option is useful for users who experience problems with built-in HTTP/FTP support, or need the more advanced proxy support that comes with utilities like wget.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句