PDA

View Full Version : Yum problem....



Jackster
02-12-10, 18:10
yum groupinstall php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
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 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread
errr?

I have tried #yum clear all

Didn't work :(



This is on my UK server witch dose not have Cpanel installed.

Lorem-Ipsum
02-12-10, 18:21
in /etc/yum.conf try removing fastestmirror .

Jackster
02-12-10, 18:24
This is all i have in it:


[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Lorem-Ipsum
02-12-10, 18:42
change :


plugins=1

to

plugins=0

and see if that makes any difference. It shouldn't but it seems to be fastestmirror that's causing issues.

I'm not really sure though. Its been a while since I've mucked about with yum.

Jackster
02-12-10, 18:56
Seams to have done something:


yum install php
updates | 1.9 kB 00:00
updates/primary_db | 864 kB 00:00
Error: no such table: packages






[root@server10 ~]# yum groupinstall php
addons | 951 B 00:00
addons/primary | 202 B 00:00
base | 2.1 kB 00:00
base/primary_db | 1.6 MB 00:00
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 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 260, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 226, in _check_db_version
return repo._check_db_version(mdtype)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1229, in _check_db_version
repoXML = self.repoXML
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1392, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1384, in _getRepoXML
self._loadRepoXML(text=self)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1374, in _loadRepoXML
return self._groupLoadRepoXML(text, ["primary"])
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1359, in _groupLoadRepoXML
self._commonRetrieveDataMD(mdtypes)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1336, in _commonRetrieveDataMD
misc.bunzipFile(dl_local, local)
File "/usr/lib/python2.4/site-packages/yum/misc.py", line 615, in bunzipFile
data = s_fn.read(1024000)
MemoryError
[root@server10 ~]#

Lorem-Ipsum
02-12-10, 20:22
Have you ever updated this server. The package repositories could be old.

yum update ?

also try:


yum clean all

again.

Jackster
02-12-10, 21:04
Have done 30 times over :(

Just backing the box up then installing CentOS 4.5.. Can't find any bugs in 4.5 :)

Lorem-Ipsum
02-12-10, 21:12
I would highly recommend using a deb based system such as debian or ubuntu.

I have had nothing but trouble using rpm based systems with Yum such as CentOS, Red Hat and Fedora.

Just my experience though. Your's may be completely different.

Jackster
02-12-10, 21:15
Ill have a look and see if Cpanel's Game Panel works with them.

Lorem-Ipsum
02-12-10, 21:22
Hmm, good point.

I don't think they support anything other than FreeBSD, RehHat and CentOS. :(

Jackster
02-12-10, 21:32
Cpanel don't but the cPGS might...

Anyway it is back up and I'm trying to config it now :)