我可以通过 Tor 使用 apt 吗?
Yes, deb.torproject.org
is also served through via an Onion Service: http://apow7mjfryruh65chtdydfmqfpj5btws7nbocgtaovhvezgccyjazpqd.onion/
Note: The symbol # refers to running the code as root. This means you should have access to a user account with system administration privileges, e.g your user should be in the sudo group.
如需通过 Tor 使用apt,需要安装 apt 运载工具。
# apt install apt-transport-tor
Then you need to add the following entries to /etc/apt/sources.list
or a new file in /etc/apt/sources.list.d/
:
# 对于稳定版本。
deb tor://apow7mjfryruh65chtdydfmqfpj5btws7nbocgtaovhvezgccyjazpqd.onion/torproject.org <DISTRIBUTION> main
# 对于不稳定版本。
deb tor://apow7mjfryruh65chtdydfmqfpj5btws7nbocgtaovhvezgccyjazpqd.onion/torproject.org tor-nightly-master-<DISTRIBUTION> main
Replace <DISTRIBUTION>
with your Operating System codename. Run lsb_release -c
or cat /etc/debian_version
to check the Operating System version.
Now refresh your sources and try to install tor again:
# apt update
# apt install tor