Consequences of adding a Package Manager software Repository

Source: Internet
Author: User

Just installed centos
5. I belong to cainiao. I accidentally added a software repository to the package manager, so I couldn't open the PM, and the software package couldn't be installed (so depressing ....), it took two days to complete the process. Finally

Http://forums.fedoraforum.org/archive/index.php/t-124067.html

(Tired ...).

The following error message is displayed:

Omponent: pirut
Summary: tbdcbee201 urllib2.py: 1141: open_local_file: gaierror: (-2,
'/Xe6/x9c/xAA/xe7/x9f/xa5/xe7/x9a/x84/xe5/x90/x8d/xe7/Xa7/xb0/xe6/x88/x96/xe6/ x9c/x8d/xe5/x8a/xA1 ')

Traceback (most recent call last ):
File "/usr/sbin/system-install-packages", line 315, in _ apply
Self. _ ensure_repos ()
File "/usr/sbin/system-install-packages", line 305, in _ ensure_repos
Self. dorefreshrepos ()
File "/usr/lib/python2.4/Site-packages/pirut/_ init _. py", line 344, in dorefreshrepos
Self. reposSetup (pbar, thisrepo)
File "/usr/lib/python2.4/site-packages/pirut/_ init _. py", line 320, in reposSetup
Self. doGroupSetup ()
File "/usr/lib/python2.4/site-packages/yum/_ init _. py", line 470, in doGroupSetup
Return self. _ getGroups ()
File "/usr/lib/python2.4/site-packages/yum/_ init _. py", line 497, in _ getGroups
If not repo. ready ():
File "/usr/lib/python2.4/site-packages/yum/yumRepo. py", line 285, in ready
Return self. repoXML is not None
File "/usr/lib/python2.4/site-packages/yum/yumRepo. py", line 781, in <lambda>
RepoXML = property (fget = lambda self: self. _ getRepoXML (),
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 773, in _ getrepoxml
Self. _ loadrepoxml (text = self)
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 756, in _ loadrepoxml
Cache = self. http_caching = 'all ')
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 624, in _ GetFile
Result = self. Grab. urlgrab (relative, local,
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 449, in <Lambda>
Grab = property (lambda self: Self. _ getgrab ())
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 444, in _ getgrab
Self. _ setupgrab ()
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 433, in _ setupgrab
Self. _ grab = mgclass (self. _ grabfunc, self. URLs,
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 528, in <Lambda>
URLs = property (fget = Lambda self: Self. _ geturls (),
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 525, in _ geturls
Self. _ baseurlsetup ()
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 490, in _ baseurlsetup
Extends URLs. Extend (self. _ getasklist ())
File "/usr/lib/python2.4/Site-packages/Yum/yumrepo. py", line 940, in _ getasklist
Fo = urlgrabber. Grabber. urlopen (URL, proxies = self. proxy_dict)
File "/usr/lib/python2.4/Site-packages/urlgrabber/grabber. py", line 605, in urlopen
Return default_grabber.urlopen (URL, ** kwargs)
File "/usr/lib/python2.4/Site-packages/urlgrabber/grabber. py", line 884, in urlopen
Return self. _ retry (OPTs, retryfunc, URL)
File "/usr/lib/python2.4/Site-packages/urlgrabber/grabber. py", line 845, in _ retry
R = Apply (func, (OPTs,) + ARGs ,{})
File "/usr/lib/python2.4/Site-packages/urlgrabber/grabber. py", line 883, in retryfunc
Return urlgrabberfileobject (URL, filename = none, opts = opts)
File "/usr/lib/python2.4/Site-packages/urlgrabber/grabber. py", line 1001, in _ init __
Self. _ do_open ()
File "/usr/lib/python2.4/Site-packages/urlgrabber/grabber. py", line 1072, in _ do_open
Fo, HDR = self. _ make_request (req, opener)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber. py", line 1172, in _ make_request
Fo = opener. open (req)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
Response = self. _ open (req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _ open
'_ Open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _ call_chain
Result = func (* args)
File "/usr/lib/python2.4/urllib2.py", line 1116, in file_open
Return self. open_local_file (req)
File "/usr/lib/python2.4/urllib2.py", line 1141, in open_local_file
If not host or/
Gaierror: (-2, '/xe6/x9c/xAA/xe7/x9f/xa5/xe7/x9a/x84/xe5/x90/x8d/xe7/Xa7/xb0/xe6/x88/x96/xe6/ x9c/x8d/xe5/x8a/xA1 ')

And so on ........

 

In the/etc/yum. Repos. d/L directory, view the *. Repo file and find
The two files you modified the information, delete it (or modify it), I am leaving the CentOS-Base.repo and centos-Dag = at. repo. This is the case. Open it again.
Package Manager. Now, note that it cannot be displayed quickly. It may be that you can download the software package information that can be updated or installed (possibly). After a while, you can see the interface. I started by turning CentOS-Base.repo and centos-Dag =. both the repo files are removed from yum. repos. D folder. The page is displayed immediately after the package manager is opened, but you can only see the installed software package.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.