Ubuntu系统
sudo apt update
sudo apt install tor
Centos系统
yum install tor
如果没有源,添加阿里云的yum源再尝试上面安装命令
cd /etc/yum/repos.d
sudo wget http://mirrors.aliyun.com/repo/epel-7.repo
sudo wget http://mirrors.163.com/.help/CentOS7-Base-163.repo // 网易
sudo wget http://mirrors.aliyun.com/repo/Centos-7.repo // 阿里云
yum clean all
yum makecache
如果提示HTTP请求失败404,打开 CentOS-Base.repo 发现其中的:
http://mirrors.aliyun.com/centos/basearch/
等URL通过http的形式根本无法访问,此时将变量releasever都改为7。
网友评论