Erro ao instalar o Apache no CentOS 5.2

Após efetuar uma atualização no Sistema com o comando:
yum update

todo o sistema base foi atualizado. Porém, precisei instalar o Apache, e o seguinte erro ocorreu.

yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.centos-br.org
* updates: mirror.centos-br.org
* addons: mirror.centos-br.org
* extras: mirror.centos-br.org
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-22.el5.centos.2 set to be updated
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.4/site-packages/yum/__init__.py", line 647, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 696, in resolveDeps
CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 779, in _resolveRequires
thisneeds = self._checkInstall(txmbr)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 851, in _checkInstall
provs = self.tsInfo.getProvides(*req)
File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 432, in getProvides
result.update(self.getNewProvides(name, flag, version))
File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 414, in getNewProvides
for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 300, in getProvides
return self._computeAggregateDictResult("getProvides", name, flags, version)
File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 470, in _computeAggregateDictResult
sackResult = apply(method, args)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 861, in getProvides
return self._search("provides", name, flags, version)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc
return func(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 837, in _search
for pkg in self.searchFiles(name, strict=True):
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 43, in newFunc
return func(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 586, in searchFiles
self._sql_pkgKey2po(rep, cur, pkgs)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 470, in _sql_pkgKey2po
pkg = self._packageByKey(repo, ob['pkgKey'])
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 413, in _packageByKey
po = self.pc(repo, cur.fetchone())
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in __init__
self._read_db_obj(db_obj)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in _read_db_obj
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object

Para corrigir esse problema, executei:
yum clean all

e em seguida:
yum install httpd
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.centos-br.org
* updates: mirror.centos-br.org
* addons: mirror.centos-br.org
* extras: mirror.centos-br.org
base | 1.1 kB 00:00
primary.xml.gz | 878 kB 00:00
base 2508/2508
updates | 951 B 00:00
primary.xml.gz | 317 kB 00:00
updates 478/478
addons | 951 B 00:00
primary.xml.gz | 157 B 00:00
extras | 1.1 kB 00:00
primary.xml.gz | 107 kB 00:00
extras 324/324
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-22.el5.centos.2 set to be updated
filelists.xml.gz | 2.8 MB 00:00
filelists.xml.gz | 2.4 MB 00:00
filelists.xml.gz | 151 kB 00:00
filelists.xml.gz | 150 B 00:00
--> Processing Dependency: libaprutil-1.so.0 for package: httpd
--> Processing Dependency: libapr-1.so.0 for package: httpd
--> Running transaction check
---> Package apr-util.i386 0:1.2.7-7.el5_3.2 set to be updated
--> Processing Dependency: libpq.so.4 for package: apr-util
---> Package apr.i386 0:1.2.7-11.el5_3.1 set to be updated
--> Running transaction check
---> Package postgresql-libs.i386 0:8.1.11-1.el5_1.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================
Package Arch Version Repository Size
================================
Installing:
httpd i386 2.2.3-22.el5.centos.2 updates 1.2 M
Installing for dependencies:
apr i386 1.2.7-11.el5_3.1 updates 123 k
apr-util i386 1.2.7-7.el5_3.2 updates 76 k
postgresql-libs i386 8.1.11-1.el5_1.1 base 196 k

Transaction Summary
================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): apr-util-1.2.7-7.el5_3.2.i386.rpm | 76 kB 00:00
(2/4): apr-1.2.7-11.el5_3.1.i386.rpm | 123 kB 00:00
(3/4): postgresql-libs-8.1.11-1.el5_1.1.i386.rpm | 196 kB 00:00
(4/4): httpd-2.2.3-22.el5.centos.2.i386.rpm | 1.2 MB 00:00
————————————————-
Total 5.1 MB/s | 1.6 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : apr [1/4]
Installing : postgresql-libs [2/4]
Installing : apr-util [3/4]
Installing : httpd [4/4]

Installed: httpd.i386 0:2.2.3-22.el5.centos.2
Dependency Installed: apr.i386 0:1.2.7-11.el5_3.1 apr-util.i386 0:1.2.7-7.el5_3.2 postgresql-libs.i386 0:8.1.11-1.el5_1.1
Complete!

Fato triste são as dependências….por isso prefiro Slackware!!!

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *