Skocz do zawartości

Problem Z Aktualizacją


SDC

Rekomendowane odpowiedzi

Witam,

występuje problem z aktualizacją. Jak to rozwiązać?

 

[root@localhost kuba]# yum search update
Wczytane wtyczki: dellsysidplugin2, refresh-packagekit
Traceback (most recent call last):
 File "/usr/bin/yum", line 29, in <module>
   yummain.user_main(sys.argv[1:], exit_code=True)
 File "/usr/share/yum-cli/yummain.py", line 311, in user_main
   errcode = main(args)
 File "/usr/share/yum-cli/yummain.py", line 180, in main
   result, resultmsgs = base.doCommands()
 File "/usr/share/yum-cli/cli.py", line 353, in doCommands
   return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
 File "/usr/share/yum-cli/yumcommands.py", line 628, in doCommand
   return base.search(extcmds)
 File "/usr/share/yum-cli/cli.py", line 804, in search
   for (po, keys, matched_value) in matching:
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1922, in searchGenerator
   for sack in self.pkgSack.sacks.values():
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 702, in <lambda>
   pkgSack = property(fget=lambda self: self._getSacks(),
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 538, in _getSacks
   self.repos.populateSack(which=repos)
 File "/usr/lib/python2.6/site-packages/yum/repos.py", line 277, in populateSack
   sack.populate(repo, mdtype, callback, cacheonly)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 164, in populate
   if self._check_db_version(repo, mydbtype):
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 222, in _check_db_version
   return repo._check_db_version(mdtype)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1222, in _check_db_version
   repoXML = self.repoXML
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1386, in <lambda>
   repoXML = property(fget=lambda self: self._getRepoXML(),
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1378, in _getRepoXML
   self._loadRepoXML(text=self)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1368, in _loadRepoXML
   return self._groupLoadRepoXML(text, ["primary"])
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1351, in _groupLoadRepoXML
   if self._commonLoadRepoXML(text):
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1197, in _commonLoadRepoXML
   result = self._getFileRepoXML(local, text)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 976, in _getFileRepoXML
   cache=self.http_caching == 'all')
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 797, in _getFile
   result = self.grab.urlgrab(misc.to_utf8(relative), local,
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 498, in <lambda>
   grab = property(lambda self: self._getgrab())
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 493, in _getgrab
   self._setupGrab()
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 482, in _setupGrab
   self._grab = mgclass(self._grabfunc, self.urls,
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 655, in <lambda>
   urls = property(fget=lambda self: self._geturls(),
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 652, in _geturls
   self._baseurlSetup()
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 606, in _baseurlSetup
   mirrorurls.extend(self._getMirrorList())
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1625, in _getMirrorList
   print "Could not retrieve mirrorlist %s error was\n%s" % (url, e)
 File "/usr/lib/python2.6/codecs.py", line 351, in write
   data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 153: ordinal not in range(128)

Edytowane przez WalDo
Przy wklejaniu wyjścia terminal, kodów itp należy stosować [codebox][/codebox] lub [code][/code]
Odnośnik do komentarza
Udostępnij na innych stronach

Jednak dalej problem, pobiera jakieś pliki i..

kuba@localhost ~]$ su
Hasło: 
[root@localhost kuba]# yum clean all --noplugins
Czyszczenie wszystkiego
[root@localhost kuba]# yum check-update --noplugins
fedora/metalink                                          |  27 kB     00:01     
fedora                                                   | 3.8 kB     00:00     
fedora/primary_db                                        | 8.4 MB     01:20     
google-chrome                                            |  951 B     00:00     
google-chrome/primary                                    | 3.1 kB     00:00     
google-chrome                                                               5/5
Traceback (most recent call last):
 File "/usr/bin/yum", line 29, in <module>
   yummain.user_main(sys.argv[1:], exit_code=True)
 File "/usr/share/yum-cli/yummain.py", line 311, in user_main
   errcode = main(args)
 File "/usr/share/yum-cli/yummain.py", line 180, in main
   result, resultmsgs = base.doCommands()
 File "/usr/share/yum-cli/cli.py", line 349, in doCommands
   self._getTs(needTsRemove)
 File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 100, in _getTs
   self._getTsInfo(remove_only)
 File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 111, in _getTsInfo
   pkgSack = self.pkgSack
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 702, in <lambda>
   pkgSack = property(fget=lambda self: self._getSacks(),
 File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 538, in _getSacks
   self.repos.populateSack(which=repos)
 File "/usr/lib/python2.6/site-packages/yum/repos.py", line 277, in populateSack
   sack.populate(repo, mdtype, callback, cacheonly)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 164, in populate
   if self._check_db_version(repo, mydbtype):
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 222, in _check_db_version
   return repo._check_db_version(mdtype)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1222, in _check_db_version
   repoXML = self.repoXML
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1386, in <lambda>
   repoXML = property(fget=lambda self: self._getRepoXML(),
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1378, in _getRepoXML
   self._loadRepoXML(text=self)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1368, in _loadRepoXML
   return self._groupLoadRepoXML(text, ["primary"])
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1351, in _groupLoadRepoXML
   if self._commonLoadRepoXML(text):
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1197, in _commonLoadRepoXML
   result = self._getFileRepoXML(local, text)
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 976, in _getFileRepoXML
   cache=self.http_caching == 'all')
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 797, in _getFile
   result = self.grab.urlgrab(misc.to_utf8(relative), local,
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 498, in <lambda>
   grab = property(lambda self: self._getgrab())
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 493, in _getgrab
   self._setupGrab()
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 482, in _setupGrab
   self._grab = mgclass(self._grabfunc, self.urls,
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 655, in <lambda>
   urls = property(fget=lambda self: self._geturls(),
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 652, in _geturls
   self._baseurlSetup()
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 606, in _baseurlSetup
   mirrorurls.extend(self._getMirrorList())
 File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1625, in _getMirrorList
   print "Could not retrieve mirrorlist %s error was\n%s" % (url, e)
 File "/usr/lib/python2.6/codecs.py", line 351, in write
   data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 153: ordinal not in range(128)
[root@localhost kuba]#

Edytowane przez WalDo
Proszę po raz ostatni o znaczniki - patrz komentarz w post #1 :>
Odnośnik do komentarza
Udostępnij na innych stronach

" File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2407, in groupRemove

raise Errors.GroupsError, _("No Group named %s exists") % grpid

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 3: ordinal not in range(128)"

 

Udało mi się wywołać błąd jak powyżej. Wpisałem yum remove "Obsługa gruzinskiego" Czyli zamiast litery ń napisałem samo n Zatem taki błąd yuma wskazuje na literówkę. W twoim przypadku błąd tkwi w URL. Chyba jakiegoś mirrora?

"Could not retrieve mirrorlist %s error was\n%s" % (url, e)"

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...