ubuntu代理设置:
- ~/.bashrc
- 添加:
- http_proxy=http://xxx.xxx.xxx.xxx:XXXX
- ftp_proxy=http://xxx.xxx.xxx.xxx:XXXX
apt代理设置:
即使ubuntu的代理在网络设置中设定好了,浏览器可以打开网页了。但是apt update 依旧temporary failure resolving
- 打开文件(若无,创建该文件)
- /etc/apt/apt.conf.d/10proxy
- 添加设置内网中的代理机器ip
- Acquire::http::Proxy "http://user:pwd@192.168.1.1:808";
pip代理设置:
- 如果没有这个文件夹
- mkdir $HOME/.config/pip
- sudo gedit $HOME/.config/pip/pip.conf
- 添加:(经试验这里pip需要指定http)
- [global]
- proxy=http://127.0.0.1:19964
- index-url = https://pypi.tuna.tsinghua.edu.cn/simple
conda代理设置:
- 文件$HOME/.condarc添加:
- proxy_servers:
- http: http://10.254.252.10:808
- https: https://10.254.252.10:808