Solution for Linux YUM unavailability in proxy surfing
Background:
The company's computer accesses the Internet through proxy. The next CentOS 6.5 _ 64 System in VMware, the network mode is NAT. You can ping the internet, but yum installation always reports an error, as shown in figure
Root@www.bkjia.com ~ # Yum list
Loaded plugins: fastest, refresh-packagekit, securitySetting up
Remove ProcessNo Match for argument: mysql-serverLoading mirror speeds
From cached hostfilecocould not retrieve into list
Release = 6 & arch = x86_64 & repo = OS & infra = stock error was14:
Pycurl error 7-"Failed to connect to 2a02: 2498: 1: 3d: 5054: ff: fed3: e91a:
Network is unreachable "Error: Cannot find a valid baseurl for repo: base
Root@www.bkjia.com ~ #
Solution:
Ping the proxy website on the host machine to obtain the IP address
Perform the following operations on a Linux machine:
Root@www.bkjia.com ~ # Vim/etc/profile
Root@www.bkjia.com ~ # Tail-3/etc/profile
Export http_proxy = 10.14.36.103: 8080
Export https_proxy = 10.14.36.103: 8080
Root@www.bkjia.com ~ # Source/etc/profile
Root@www.bkjia.com ~ #
Run the yum command again.
Resolved!
RedHat 6.2 modify yum source in Linux use CentOS source for free
Configure the epel yum Source
Redhat local yum source configuration
Description of yum configuration file
Install yum in RedHat 6.1)
YUM installation and cleaning
Build yum local source on CentOS 6.4
This article permanently updates the link address: