Перейти к содержанию

[решено] Проблема с YUM на CentOS 5.5


Рекомендуемые сообщения

В общем у меня VPS на Centos 5.5. По умолчанию стоял php 5.1.6, я проапгрейдил до 5.3.8 вроде все прошло хорошо и все работало ок. После этого не однократно устанавливал дополнения php через yum. Но в один прекрасный момент при любом вызове yum получаю следующую ошибку.

yum update

Loading "installonlyn" plugin

Setting up Update Process

Setting up repositories

epel 100% |=========================| 3.7 kB 00:00

atomic 100% |=========================| 1.9 kB 00:00

base 100% |=========================| 1.1 kB 00:00

addons 100% |=========================| 951 B 00:00

updates 100% |=========================| 1.9 kB 00:00

extras 100% |=========================| 2.1 kB 00:00

Reading repository metadata in from local files

Traceback (most recent call last):

File "/usr/bin/yum", line 29, in ?

yummain.main(sys.argv[1:])

File "/usr/share/yum-cli/yummain.py", line 94, in main

result, resultmsgs = base.doCommands()

File "/usr/share/yum-cli/cli.py", line 381, in doCommands

return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmd

s)

File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand

return base.updatePkgs(extcmds)

File "/usr/share/yum-cli/cli.py", line 684, in updatePkgs

obsoleting_pkg = self.getPackageObject(obsoleting)

File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1473, in getPackageObjec

t

pkgs = self.pkgSack.searchPkgTuple(pkgtup)

File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 66, in searchPkgTuple

return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r)

File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 232, in searchNevra

return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch)

File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 369, in _computeAggre

gateListResult

sackResult = apply(method, args)

File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 574, in searchNevra

returnList.append(self.pc(rep,self.db2class(x)))

File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class

y.checksum = {'pkgid': 'YES','type': db.checksum_type,

File "/usr/lib64/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__

raise AttributeError, key

AttributeError: CHECKSUM_VALUE

Хостер послал подальше, видите ли после установки php 5.3 я слетел с обслуживания и они могут только откатить в первоначальное состояние. Поиск по гуглу дал несколько вариантов решения, но ничего не помогло. Помогите плиз!!!
Ссылка на комментарий
Поделиться на другие сайты

a_n_d_y писал(а) Пнд, 19 Сентябрь 2011 11:58

Оба варианта уже попробовал, результата никакого.

Тогда можно посмотреть, что последнее ставилось через yum в систему?

Это можно к примеру посмотреть через историю bash-а

Ссылка на комментарий
Поделиться на другие сайты

Все началось с неудачной попытки установки php-pecl-memcached

yum install php-pecl-memcacheservice httpd restartmcyum install php-pecl-memcachedyum install php-zend-abiyum clean metadatayum install php-zend-abiyum install php-pecl-memcachedyum clean metadatayum install php-pecl-memcachedyum clean allyum install php-memcachedyum install php-pecl-memcachedrebootyum install php-pecl-memcachedyum install php-pecl-memcached --disablerepo=[*] -- enablerepo=[atomic]yum install php-pecl-memcached --disablerepo=* -- enablerepo=atomicyum upgradeyum upgradeyum upgrade php-pecl-memcachedmcyum upgrade yumyum upgrade yumyum clean allmcservice httpd restartmcmccd etcyum upgrademcservice httpd restartmcmcyum install php-memcachedyum install php-pecl-memcachedyum upgradeTraceback (most recent call last):  File "/usr/bin/yum", line 29, in ?    yummain.main(sys.argv[1:])yum clean allyum upgraderm /dev/urandomrm /dev/urandomrm /dev/urandomyesrm /dev/urandomFile: .bash_history     Line 92 Col 0      4881 bytes                                52%./configureyum instal php-develyum install php-develphpize./configuremake && make installpecl install imagickyum install php-pecl-imagickservise httpd restartservice httpd restartyum install php-memcacheyum search php-memcacheyum search memcacheyum install memcacheyum install php-memcachedyum install memcachedservice httpd restartyum install php-pecl-memcacheservice httpd restart
куча лишних команд конечно. Но я не так давно столкнулся с администрированием сервера. До этого лишь на php писал...
Ссылка на комментарий
Поделиться на другие сайты

Они в итоге не установились, там был конфликт каких-то библиотек, сейчас не скажу каких именно.

# yum remove php-memcachedLoading "installonlyn" pluginSetting up Remove ProcessNo Match for argument: php-memcachedNo Packages marked for removal# yum remove php-pecl-memcachedLoading "installonlyn" pluginSetting up Remove ProcessNo Match for argument: php-pecl-memcachedNo Packages marked for removal# yum remove memcachedLoading "installonlyn" pluginSetting up Remove ProcessResolving Dependencies--> Populating transaction set with selected packages. Please wait.---> Package memcached.x86_64 0:1.4.5-1.el5.art set to be erased--> Running transaction checkDependencies Resolved============================================================================= Package                 Arch       Version          Repository        Size=============================================================================Removing: memcached               x86_64     1.4.5-1.el5.art  installed         144 kTransaction Summary=============================================================================Install      0 Package(s)Update       0 Package(s)Remove       1 Package(s)Is this ok [y/N]: yDownloading Packages:Running Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction  Removing  : memcached                    ######################### [1/1]Removed: memcached.x86_64 0:1.4.5-1.el5.artComplete!# yum clean allLoading "installonlyn" pluginCleaning up Everything# yum updateLoading "installonlyn" pluginSetting up Update ProcessSetting up repositoriesepel                      100% |=========================| 3.7 kB    00:00atomic                    100% |=========================| 1.9 kB    00:00base                      100% |=========================| 1.1 kB    00:00addons                    100% |=========================|  951 B    00:00updates                   100% |=========================| 1.9 kB    00:00extras                    100% |=========================| 2.1 kB    00:00Reading repository metadata in from local filesb8deaeb1e4dea4ccb721263a7 100% |=========================| 2.2 MB    00:00epel      : ################################################## 6707/6707primary.xml.gz            100% |=========================| 417 kB    00:01atomic    : ################################################## 1210/1210primary.xml.gz            100% |=========================| 1.2 MB    00:03base      : ################################################## 3566/3566primary.xml.gz            100% |=========================|  204 B    00:00primary.xml.gz            100% |=========================|  81 kB    00:01updates   : ################################################## 174/174primary.xml.gz            100% |=========================|  88 kB    00:00extras    : ################################################## 233/233Traceback (most recent call last):  File "/usr/bin/yum", line 29, in ?    yummain.main(sys.argv[1:])  File "/usr/share/yum-cli/yummain.py", line 94, in main    result, resultmsgs = base.doCommands()  File "/usr/share/yum-cli/cli.py", line 381, in doCommands    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)  File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand    return base.updatePkgs(extcmds)  File "/usr/share/yum-cli/cli.py", line 684, in updatePkgs    obsoleting_pkg = self.getPackageObject(obsoleting)  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1473, in getPackageObject    pkgs = self.pkgSack.searchPkgTuple(pkgtup)  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 66, in searchPkgTuple    return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r)  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 232, in searchNevra    return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch)  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 369, in _computeAggregateListResult    sackResult = apply(method, args)  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 574, in searchNevra    returnList.append(self.pc(rep,self.db2class(x)))  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class    y.checksum = {'pkgid': 'YES','type': db.checksum_type,  File "/usr/lib64/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__    raise AttributeError, keyAttributeError: CHECKSUM_VALUE
Ссылка на комментарий
Поделиться на другие сайты

Тогда так:

Вывод этой команды запостите пожалуйста сюда:

rpm -qa | egrep 'yum|rpm'

Скорее всего у вас будет два пакета

Потом удалите:

yum remove yum-metadata-parser.x86_64

И руками поставьте yum-metadata-parser.x86_64

Его можно взять к примеру отсюда: ftp://ftp.yandex.ru/centos/5.7/os/x86_64/CentOS/yum-metadata -parser-1.1.2-3.el5.centos.x86_64.rpm

Ссылка на комментарий
Поделиться на другие сайты

# rpm -Uvh ftp://ftp.yandex.ru/centos/5.7/os/x86_64/CentOS/yum-m

etadata-parser-1.1.2-3.el5.centos.x86_64.rpm

Retrieving ftp://ftp.yandex.ru/centos/5.7/os/x86_64/CentOS/yum-metadata -parser-1.1.2-3.e

l5.centos.x86_64.rpm

error: Failed dependencies:

yum < 3.2.0 conflicts with yum-metadata-parser-1.1.2-3.el5.centos.x86_64

Ссылка на комментарий
Поделиться на другие сайты

a_n_d_y писал(а) Пнд, 19 Сентябрь 2011 13:35

Извиняюсь за ламерский вопрос. А как определить, что именно нужно удалить?

Вот это:

rpm-4.4.2.3-18.el5

yum-3.0.5-1.el5.centos.2

rpm-libs-4.4.2.3-18.el5

rpm-python-4.4.2.3-18.el5

Ссылка на комментарий
Поделиться на другие сайты

yum remove rpm-4.4.2.3-18.el5
Loading "installonlyn" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package rpm.x86_64 0:4.4.2.3-18.el5 set to be erased
--> Running transaction check
Setting up repositories
epel 100% |=========================| 3.7 kB 00:00
atomic 100% |=========================| 1.9 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
updates 100% |=========================| 1.9 kB 00:00
extras 100% |=========================| 2.1 kB 00:00
Reading repository metadata in from local files
--> Processing Dependency: rpm = 4.4.2.3-18.el5 for package: rpm-python
--> Processing Dependency: rpm = 4.4.2.3-18.el5 for package: rpm-libs
--> Processing Dependency: rpm for package: man
--> Processing Dependency: /bin/rpm for package: policycoreutils
--> Processing Dependency: rpm >= 0:4.4.2 for package: yum
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package rpm-libs.x86_64 0:4.4.2.3-18.el5 set to be erased
---> Package man.x86_64 0:1.6d-1.1 set to be erased
---> Package yum.noarch 0:3.0.5-1.el5.centos.2 set to be erased
---> Package rpm-python.x86_64 0:4.4.2.3-18.el5 set to be erased
---> Package policycoreutils.x86_64 0:1.33.12-14.8.el5 set to be erased
--> Running transaction check
--> Processing Dependency: librpm-4.4.so()(64bit) for package: plesk-core
--> Processing Dependency: librpmio-4.4.so()(64bit) for package: psa-autoinstaller
--> Processing Dependency: librpmio-4.4.so()(64bit) for package: plesk-core
--> Processing Dependency: librpm-4.4.so()(64bit) for package: net-snmp
--> Processing Dependency: librpmio-4.4.so()(64bit) for package: net-snmp
--> Processing Dependency: yum >= 2.2 for package: atomic-release
--> Processing Dependency: librpmdb-4.4.so()(64bit) for package: psa-autoinstaller
--> Processing Dependency: librpmdb-4.4.so()(64bit) for package: plesk-core
--> Processing Dependency: yum for package: remi-release
--> Processing Dependency: /sbin/restorecon for package: xorg-x11-xfs
--> Processing Dependency: librpm-4.4.so()(64bit) for package: psa-autoinstaller
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package net-snmp.x86_64 1:5.3.2.2-9.el5_5.1 set to be erased
---> Package atomic-release.noarch 0:1.0-13.el5.art set to be erased
---> Package plesk-core.x86_64 0:10.12.0-cos5.build1012110629.18 set to be erased
---> Package psa-autoinstaller.x86_64 0:3.10.0-110629.12 set to be erased
---> Package remi-release.noarch 0:5-8.el5.remi set to be erased
---> Package xorg-x11-xfs.x86_64 1:1.0.2-5.el5_6.1 set to be erased
--> Running transaction check
--> Processing Dependency: xfs for package: chkfontpath
--> Processing Dependency: plesk-core >= 10.3.0 for package: pp-sitebuilder
--> Processing Dependency: plesk-core >= 10.12.0 for package: psa-imp
--> Processing Dependency: plesk-core >= 10.12.0 for package: plesk-l10n
--> Processing Dependency: plesk-core >= 10.12.0 for package: psa-vhost
--> Processing Dependency: plesk-core >= 10.12.0 for package: psa-horde
--> Processing Dependency: net-snmp = 1:5.3.2.2-9.el5_5.1 for package: net-snmp-utils
--> Processing Dependency: plesk-core >= 10.12.0 for package: psa-backup-manager
--> Processing Dependency: plesk-core >= 10.12.0 for package: psa
--> Processing Dependency: plesk-core >= 10.12.0 for package: psa-atmail
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package psa.x86_64 0:10.3.1-cos5.build1012110718.17 set to be erased
---> Package psa-vhost.noarch 0:10.12.0-cos5.build1012110601.18 set to be erased
---> Package plesk-l10n.noarch 0:10.12.0-cos5.build1012110727.11 set to be erased
---> Package chkfontpath.x86_64 0:1.10.1-1.1 set to be erased
---> Package psa-horde.noarch 0:3.3.10-cos5.build1012110607.15 set to be erased
---> Package pp-sitebuilder.noarch 0:10.3.0-35814.11063001 set to be erased
---> Package psa-imp.noarch 0:4.3.9-cos5.build1012110628.15 set to be erased
---> Package psa-atmail.noarch 1:1.04-cos5.build1012110601.15 set to be erased
---> Package psa-backup-manager.x86_64 0:10.12.0-cos5.build1012110629.18 set to be erase
d
---> Package net-snmp-utils.x86_64 1:5.3.2.2-9.el5_5.1 set to be erased
--> Running transaction check
--> Processing Dependency: psa-horde for package: psa-turba
--> Processing Dependency: chkfontpath for package: urw-fonts
--> Processing Dependency: psa >= 10.3.0 for package: psa-updates
--> Processing Dependency: psa-imp for package: psa-passwd
--> Processing Dependency: psa-backup-manager >= 10.12.0 for package: psa-backup-manager
-vz
--> Processing Dependency: psa-horde for package: psa-kronolith
--> Processing Dependency: psa-horde for package: psa-ingo
--> Processing Dependency: psa for package: psa-miva
--> Processing Dependency: psa-horde for package: psa-mimp
--> Processing Dependency: psa-imp for package: psa-mimp
--> Processing Dependency: psa-imp for package: psa-ingo
--> Processing Dependency: psa-imp for package: psa-turba
--> Processing Dependency: psa-imp for package: psa-kronolith
--> Processing Dependency: psa-horde for package: psa-mnemo
--> Processing Dependency: psa for package: SSHTerm
--> Processing Dependency: psa-horde for package: psa-passwd
--> Processing Dependency: psa-imp for package: psa-mnemo
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package psa-mnemo.noarch 0:2.2.4-cos5.build1012110525.15 set to be erased
---> Package psa-miva.x86_64 1:5.06-cos5.build1012110525.15 set to be erased
---> Package SSHTerm.noarch 0:0.2.2-10.11032115 set to be erased
---> Package psa-passwd.noarch 0:3.1.3-cos5.build1012110525.15 set to be erased
---> Package psa-ingo.noarch 0:1.2.5-cos5.build1012110525.15 set to be erased
---> Package psa-mimp.noarch 0:1.1.3-cos5.build1012110321.15 set to be erased
---> Package psa-backup-manager-vz.x86_64 0:10.12.0-cos5.build1012110321.15 set to be er
ased
---> Package psa-turba.noarch 0:2.3.5-cos5.build1012110525.15 set to be erased
---> Package urw-fonts.noarch 0:2.3-6.1.1 set to be erased
---> Package psa-updates.noarch 0:10.3.0-cos5.build1012110525.15 set to be erased
---> Package psa-kronolith.noarch 0:2.3.5-cos5.build1012110525.15 set to be erased
--> Running transaction check
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ghostscript.x86_64 0:8.70-6.el5 set to be erased
--> Running transaction check
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript
--> Processing Dependency: libgs.so.8()(64bit) for package: ImageMagick
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ghostscript.i386 0:8.70-6.el5 set to be erased
---> Package ImageMagick.x86_64 0:6.2.8.0-4.el5_5.3 set to be erased
--> Running transaction check
--> Processing Dependency: ghostscript for package: ghostscript-fonts
--> Processing Dependency: ghostscript = 8.70-6.el5 for package: ghostscript-devel
--> Processing Dependency: libWand.so.10()(64bit) for package: ImageMagick-devel
--> Processing Dependency: libgs.so.8 for package: ImageMagick
--> Processing Dependency: libMagick.so.10()(64bit) for package: ImageMagick-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ghostscript-devel.x86_64 0:8.70-6.el5 set to be erased
---> Package ghostscript-fonts.noarch 0:5.50-13.1.1 set to be erased
---> Package ImageMagick.i386 0:6.2.8.0-4.el5_5.3 set to be erased
---> Package ImageMagick-devel.x86_64 0:6.2.8.0-4.el5_5.3 set to be erased
--> Running transaction check
--> Processing Dependency: ImageMagick = 6.2.8.0-4.el5_5.3 for package: ImageMagick-deve
l
--> Processing Dependency: libWand.so.10 for package: ImageMagick-devel
--> Processing Dependency: libMagick.so.10 for package: ImageMagick-devel
--> Processing Dependency: ghostscript-devel for package: ImageMagick-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ImageMagick-devel.i386 0:6.2.8.0-4.el5_5.3 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
rpm x86_64 4.4.2.3-18.el5 installed 3.6 M
Removing for dependencies:
ImageMagick x86_64 6.2.8.0-4.el5_5.3 installed 11 M
ImageMagick i386 6.2.8.0-4.el5_5.3 installed 11 M
ImageMagick-devel i386 6.2.8.0-4.el5_5.3 installed 312 k
ImageMagick-devel x86_64 6.2.8.0-4.el5_5.3 installed 312 k
SSHTerm noarch 0.2.2-10.11032115 installed 4.9 M
atomic-release noarch 1.0-13.el5.art installed 2.9 k
chkfontpath x86_64 1.10.1-1.1 installed 16 k
ghostscript x86_64 8.70-6.el5 installed 29 M
ghostscript i386 8.70-6.el5 installed 28 M
ghostscript-devel x86_64 8.70-6.el5 installed 62 k
ghostscript-fonts noarch 5.50-13.1.1 installed 1.4 M
man x86_64 1.6d-1.1 installed 354 k
net-snmp x86_64 1:5.3.2.2-9.el5_5.1 installed 2.8 M
net-snmp-utils x86_64 1:5.3.2.2-9.el5_5.1 installed 381 k
plesk-core x86_64 10.12.0-cos5.build1012110629.18 installed
67 M
plesk-l10n noarch 10.12.0-cos5.build1012110727.11 installed
17 M
policycoreutils x86_64 1.33.12-14.8.el5 installed 2.1 M
pp-sitebuilder noarch 10.3.0-35814.11063001 installed 142 M
psa x86_64 10.3.1-cos5.build1012110718.17 installed 44
9 k
psa-atmail noarch 1:1.04-cos5.build1012110601.15 installed 1
3 M
psa-autoinstaller x86_64 3.10.0-110629.12 installed 8.8 M
psa-backup-manager x86_64 10.12.0-cos5.build1012110629.18 installed 8
.4 M
psa-backup-manager-vz x86_64 10.12.0-cos5.build1012110321.15 installed 1
.6 k
psa-horde noarch 3.3.10-cos5.build1012110607.15 installed 2
0 M
psa-imp noarch 4.3.9-cos5.build1012110628.15 installed 12
M
psa-ingo noarch 1.2.5-cos5.build1012110525.15 installed 5.0
M
psa-kronolith noarch 2.3.5-cos5.build1012110525.15 installed 6.2
M
psa-mimp noarch 1.1.3-cos5.build1012110321.15 installed 2.7
M
psa-miva x86_64 1:5.06-cos5.build1012110525.15 installed 4.
5 M
psa-mnemo noarch 2.2.4-cos5.build1012110525.15 installed 4.0
M
psa-passwd noarch 3.1.3-cos5.build1012110525.15 installed 3.7
M
psa-turba noarch 2.3.5-cos5.build1012110525.15 installed 5.9
M
psa-updates noarch 10.3.0-cos5.build1012110525.15 installed 0
.0
psa-vhost noarch 10.12.0-cos5.build1012110601.18 installed 1
59 k
remi-release noarch 5-8.el5.remi installed 1.9 k
rpm-libs x86_64 4.4.2.3-18.el5 installed 2.0 M
rpm-python x86_64 4.4.2.3-18.el5 installed 131 k
urw-fonts noarch 2.3-6.1.1 installed 5.7 M
xorg-x11-xfs x86_64 1:1.0.2-5.el5_6.1 installed 118 k
yum noarch 3.0.5-1.el5.centos.2 installed 1.8 M

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 41 Package(s)
Я вижу тут куча относящихся в плеску вещей слетит. Если я правильно понимаю, плеск ляжет после этого?
Ссылка на комментарий
Поделиться на другие сайты

  • 2 недели спустя...

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

Загрузка...
×
×
  • Создать...