четверг, 27 ноября 2008 г.

Ошибка в yum после обновления до Fedora 10

После обновления с Fedora 8 до Fedora 10 при попытке установки или удаления пакетов с помощью yum возникала ошибка:
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 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 145, in main
(result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 649, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 704, in resolveDeps
for po, dep in self._checkFileRequires():
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 901, in _checkFileRequires
for pkg in self.rpmdb.returnPackages():
File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 297, in returnPackages
self._makePackageObject(hdr, idx)
File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 430, in _makePackageObject
po = RPMInstalledPackage(hdr, index, self)
File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 37, in __init__
YumInstalledPackage.__init__(self, rpmhdr)
File "/usr/lib/python2.5/site-packages/yum/packages.py", line 1205, in __init__
YumHeaderPackage.__init__(self, fakerepo, hdr)
File "/usr/lib/python2.5/site-packages/yum/packages.py", line 981, in __init__
self.summary = misc.share_data(self.hdr['summary'].replace('\n', ''))
AttributeError: 'list' object has no attribute 'replace'


Помогла замена в файле
/usr/lib/python2.5/site-packages/yum/packages.py:
self.summary = misc.share_data(self.hdr['summary'].replace('\n', ''))
на:
try:
self.summary = misc.share_data(self.hdr['summary'].replace('\n', ''))
except:
print 'Here is the error with replace'
print 'name = ', self.name


Источник: fedoraforum.org

Ранее с ошибкой:
The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadName (named color or font does not exist)'.
(Details: serial 780 error_code 15 request_code 45 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

помогли справиться aam и r1mson удалив /etc/X11/xorg.conf

2 комментария:

aam комментирует...

Вот ссылка на мои заметки про Firefox, про которые я говорил.

r1mson комментирует...

В каком файле надо замену производить?

Отправить комментарий