Browsing this Thread:   1 Anonymous Users






debian / ubuntu 为 APT 设置代理
#1
Just can't stay away
Just can't stay away


See User information
为 APT 设置代理

如果要从 Ubuntu 存储库安装软件包,则需要为 APT 设置代理。您可以通过在 /etc/apt/apt.conf.d/ 创建一个新的配置文件来做到这一点:

nano /etc/apt/apt.conf.d/proxy.conf

添加以下行:

Acquire::http::Proxy "http://username::8181/";
Acquire::https::Proxy "https://username::8182/";

完成后保存并关闭文件。您现在可以在系统中安装 Ubuntu 存储库中的任何软件包

Posted on: 9/23 17:18
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)