用socks代理使用apt-get命令

Posted

安装

apt-get install tsocks

配置 ```bash /etc/tsocks.conf vi /etc/tsocks.conf

local = 192.168.1.0/255.255.255.0 #local表示本地的网络,也就是不使用socks代理的网络 ... server = 127.0.0.1 #socks服务器的IP server_type = 5 #socks服务版本 server_port = 7070 #socks服务使用的端口



```bash
tsocks apt-get update
tsocks aptitude upgrade

在命令前面“tsocks”会用“exec”来执行。

转载 http://www.linuxdiyf.com/viewarticle.php?id=78483


此文章 短链接: http://dlj.bz/1hGKSy