可能重复:
apt-get 不适用于代理
我尝试将终端中的代理设置更改为:
export HTTP_PROXY=http://10.1.3.1:8080
Run Code Online (Sandbox Code Playgroud)
和
export http_proxy=http://10.1.3.1:8080
Run Code Online (Sandbox Code Playgroud)
但是当我尝试安装新软件包或更新 apt-get 时,apt-get 开始显示似乎正在尝试连接到先前设置的代理的消息:
sudo apt-get update
0% [Connecting to 10.1.2.2 (10.1.2.2)] [Connecting to 10.1.2.2 (10.1.2.2)
Run Code Online (Sandbox Code Playgroud)
我曾尝试通过 bashrc 文件设置代理,但该 din 也可以工作。据我所知,10.1.2.2 是使用 GNOME GUI 设置的,但我现在无法访问 GUI,所以我试图从终端设置它。
我正在尝试将网络代理设置为使用 LAN 的 Internet 连接来更新软件包。虽然代理设置适用于我的firefox,但包管理器仍然无法连接到 Internet。我已经设置了代理,System >> Preferences >> Network Proxy并且我也在“详细信息”中输入了代理的用户/通行证。
如何确保正确应用代理网络?
我在 Windows 10 上使用 Ubuntu WSL。如何配置带有身份验证的 HTTP 代理?
可能重复:
apt-get 不适用于代理
我使用需要代理、用户名和密码的网络连接,我可以通过firefox访问网络,但我无法更新我的系统或使用Ubuntu软件中心。
我在 Synaptic 和 Network Proxy 中设置了代理和用户名/密码,然后编辑 apt.conf bu 这个命令:
sudo gedit /etc/apt/apt.conf
Run Code Online (Sandbox Code Playgroud)
但更新不起作用
我已经完成了有关 Ubuntu 论坛帖子的答案中提到的步骤。
如何在代理后面使用 apt-get/synaptic ?
我昨天使用 Windows 安装程序 (Wubi) 安装了 Ubuntu 12.04 LTS。然后我尝试安装 Chrome、Flash 播放器等,但没有任何效果。然后我尝试使用软件中心安装一些随机包(看看它是否可以工作),但也没有用。大多数时候它显示更新缓存,但此后没有任何反应。有时我会收到一条消息,说它无法下载存储库(我不知道这是什么意思)并告诉我检查我的 Internet 连接。
我正在将我的机构 LAN 网络与需要使用用户名和密码进行身份验证的代理一起使用。Firefox 工作正常...!
我在互联网上浏览了解决方案,并在终端中尝试了许多命令,但没有任何效果。今天我卸载了然后重新安装了一遍,然后我做的第一件事就是在这里问这个问题。所以请帮助我...给我一个逐步征服 Ubuntu 的程序。
可能重复:
apt-get 不适用于代理
我是 Ubuntu/Linux 的新手。我在办公园区使用 Ubuntu,我们有一个代理服务器。我想更新或安装新软件,如 Flash、媒体播放器、网络工具等,但我无法从 Synaptic 软件包管理器安装。
我创建了一个apt.conf文件,其中包含Acquire::http::Proxy "http://192.168.1.6:3128/";我还有一个apt.conf.d文件,但它是空的,我不知道如何处理这个文件。
这是我尝试更新时遇到的错误:
E: Syntax error /etc/apt/apt.conf.d/proxy:3: Extra junk at end of file
E: Syntax error /etc/apt/apt.conf:2: Extra junk at end of file
Run Code Online (Sandbox Code Playgroud) 我从 Ubuntu 12.04 升级到 Ubuntu 12.10。在此之后,它不再更新。软件更新程序出现此错误:
W:Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-proposed/Release.gpg Unable to connect to 10.4.42.15:8080:
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/restricted/source/Sources Unable to connect to 10.4.42.15:8080:
W:Failed to …Run Code Online (Sandbox Code Playgroud)