How to Use the agent to upgrade and update In Debian
Source: Internet
Author: User
Article Title: How to Use the agent to upgrade and update In Debian. Linux is a technology channel of the IT lab in China. It includes desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. If you use a college campus network or company intranet, you can sometimes access the Internet through a proxy account. In this case, how can I use the agent to update (apt-get) or download In debian or Ubuntu.
Method 1:
This is a temporary method. If you only need to use apt-get through http Proxy temporarily, you can use this method.
Before using apt-get, enter the following command in the terminal (replace yourproxyaddress and proxyport according to your actual situation; if you do not need a proxy account or password, remove proxyusr: password ).
It is said that the proxy is canceled
Export http_proxy = ""
You can.
Method 2:
This method requires the apt. conf file in the/etc/apt/folder. If you want apt-get (instead of other applications) to always use http proxy, you can use this method.
Note: In some cases, the apt configuration file is not created during system installation. The following operations modify the existing configuration file or create a new configuration file as needed.
Sudo gedit/etc/apt. conf Add the following line to your apt. conf file (replace yourproxyaddress and proxyport according to your actual situation ).
Acquire: http: Proxy "http: // proxyusr: password @ yourproxyaddress: proxyport"; Save the apt. conf file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service