Fedorayum error Solution

Source: Internet
Author: User
The following error occurs when you reinstall Fedora9 to update the software. SudoyuminstallmysqlLoadedplugins: refresh-packagekitYumRepoWarning: notusingftp, http [s], orfileforrepos, skipping-YumRepoWarning: notusingftp, ht

The following error occurs when you reinstall Fedora 9 to update the software.

Sudo yum install mysql
Loaded plugins: refresh-packagekit
YumRepo Warning: not using ftp, http [s], or file for repos, skipping-
YumRepo Warning: not using ftp, http [s], or file for repos, skipping-
Traceback (most recent call last ):
File "/usr/bin/yum", line 29, in
Yummain. user_main (sys. argv [1:], exit_code = True)
File "/usr/share/yum-cli/yummain. py", line 241, in user_main
Errcode = main (args)
File "/usr/share/yum-cli/yummain. py", line 116, in main
Result, resultmsgs = base. doCommands ()
File "/usr/share/yum-cli/cli. py", line 307, in doCommands
Self. _ getTs ()
File "/usr/lib/python2.5/site-packages/yum/depsolve. py", line 98, in _ getTs
Self. _ getTsInfo ()
File "/usr/lib/python2.5/site-packages/yum/depsolve. py", line 104, in _ getTsInfo
Self. _ tsInfo. setDatabases (self. rpmdb, self. pkgSack)
File "/usr/lib/python2.5/site-packages/yum/_ init _. py", line 576, in
PkgSack = property (fget = lambda self: self. _ getSacks (),
File "/usr/lib/python2.5/site-packages/yum/_ init _. py", line 419, in _ getSacks
Self. repos. populateSack (which = repos)
File "/usr/lib/python2.5/site-packages/yum/repos. py", line 245, in populateSack
Sack. populate (repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 149, in populate
If self. _ check_db_version (repo, mydbtype ):
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 203, in _ check_db_version
Return repo. _ check_db_version (mdtype)
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 928, in _ check_db_version
RepoXML = self. repoXML
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 1086, in
RepoXML = property (fget = lambda self: self. _ getRepoXML (),
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 1078, in _ getRepoXML
Self. _ loadRepoXML (text = self)
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 1068, in _ loadRepoXML
Return self. _ groupLoadRepoXML (text, ["primary"])
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 1052, in _ groupLoadRepoXML
If self. _ commonLoadRepoXML (text ):
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 904, in _ commonLoadRepoXML
Result = self. _ getFileRepoXML (local, text)
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 772, in _ getFileRepoXML
Cache = self. http_caching = 'all ')
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 643, in _ getFile
Result = self. grab. urlgrab (relative, local,
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 463, in
Grab = property (lambda self: self. _ getgrab ())
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 458, in _ getgrab
Self. _ setupGrab ()
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 447, in _ setupGrab
Self. _ grab = mgclass (self. _ grabfunc, self. urls,
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 548, in
Urls = property (fget = lambda self: self. _ geturls (),
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 545, in _ geturls
Self. _ baseurlSetup ()
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 514, in _ baseurlSetup
Self. Required URLs = self. _ replace_and_check_url (required URLs)
File "/usr/lib/python2.5/site-packages/yum/yumRepo. py", line 536, in _ replace_and_check_url
Print 'yum repo Warning: not using ftp, http [s], or file for repos, skipping-% s' % (url)
File "/usr/lib/python2.5/codecs. py", line 303, in write
Data, consumed = self. encode (object, self. errors)
UnicodeDecodeError: 'ascii 'codec can't decode byte 0xbb in position 78: ordinal not in range (128)

I checked through GOOGLE and found someone solved this problem.

Yum remove yum-fastmirror

I also tried it and did not solve it.

My solution is: yum clean all

Released by: Netstu

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.