Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: KaiNeR on June 09, 2005, 05:18:49 AM
-
[root@p31000 /]# yum update
Gathering package information from servers
Getting headers from: SME 6.5 Beta2 Base
Traceback (innermost last):
File "/usr/bin/yum", line 44, in ?
yummain.main(sys.argv[1:])
File "yummain.py", line 144, in main
File "clientStuff.py", line 688, in get_package_info_from_servers
File "clientStuff.py", line 128, in HeaderInfoNevralLoad
ValueError: unpack list of wrong size
here's what my /etc/yum.conf looks like
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
[base]
name=SME 6.5 Beta2 Base
baseurl=http://www.ibiblio.org/pub/linux/distributions/smeserver/releases/6.5RC1/os/e-smith/RPMS/
[updates]
name=SME 6.5 Beta2 Updates
baseurl=http://www.ibiblio.org/pub/linux/distributions/smeserver/updates/6.5RC1/i386/
--
does anyone know what this means ?
:-? :hammer:
-
After a fresh install of SME 6.5 RC1 follow by an installation of Yum. I experienced the same problem. Have anyone found a solution?
/Carsten
-
I compared it with the yum config of my Centos 4.0 and I cant see any obvious errors, but ..
What about read/write access here:
cachedir=/var/cache/yum
logfile=/var/log/yum.log
What about testing with 777 just to check it out ..
(Don't know which user that "owns" the yum process .. )
Arne.
-
I testet the read/write access by changing to 777 like you sugested. It does not make any difference. Yum still return the following:
Gathering package information from servers
Getting headers from: Base
Traceback (innermost last):
File "/usr/bin/yum", line 44, in ?
yummain.main(sys.argv[1:])
File "yummain.py", line 144, in main
File "clientStuff.py", line 688, in get_package_info_from_servers
File "clientStuff.py", line 128, in HeaderInfoNevralLoad
ValueError: unpack list of wrong size
In the /var/cache/yum/base/headers.info it is indicated, that yum seems to stop when reaching php. The following is sniped from the end of headers.info:
snip....
0:basesystem-7.0-2.noarch=basesystem-7.0-2.noarch.rpm
0:horde-2.2.1-1es00.noarch=horde-2.2.1-1es00.noarch.rpm
0:ppp-modules-2
I do not know why.
/Carsten
-
bump:
I have the same problem and don't know how to fix it.
Any ideas anyone.
TIA
Mudra
-
Because there is no headers file for the updates repository:
http://mirror.contribs.org/smeserver/updates/6.5RC1/i386/
...yum is crashing.
comment out the updates repo for now:
#[updates]
#name=SME 6.5 Beta2 Updates
#baseurl=http://www.ibiblio.org/pub/linux/distributions/smeserver/updates/6.5RC1/i386/
Greg
-
Because there is no headers file for the updates repository:
http://mirror.contribs.org/smeserver/updates/6.5RC1/i386/
...yum is crashing.
comment out the updates repo for now:
#[updates]
#name=SME 6.5 Beta2 Updates
#baseurl=http://www.ibiblio.org/pub/linux/distributions/smeserver/updates/6.5RC1/i386/
Greg
-
I have been trying to figure out which yum.conf i need to edit to hash out the repositry updates.
i had a look in /etc/yum.conf
but there was a message at the top saying "DO NOT EDIT THIS FILE EDIT THE FILE IN THE TEMPLATES-CUSTOM.
but when i checked the template-custom, the yum.conf was infact a directory, so i tried editing the 2 file inside that directory (20repositories & 10main) but neither of these files contained the url to the repositries ??? so which yum.conf do i edit
any help would be appreciated
thanks
-
Sorry to say I haven't got sme 6.5 at hand.
Here's the equivalent solution for 7.0:
/etc/e-smith/templates/yum.conf/20repositories uses a database file. Show the contents of the file with db show:
db /home/e-smith/yum_repositories show
Then disable the repository:
db /home/e-smith/yum_repositories setprop \
some_entry status disabled
And finally expand yum.conf:
/sbin/e-smith/expand-template /etc/yum.conf
Hth
-
Thanks DarkMirage
i'll give it a try when i get in from work
-
SME 7 is completely different from SME 6.5 in regards to yum. For 6.5 just comment it out as I suggested - either temporarily (until you reboot) by editing /etc/yum.conf or permanantly by editing the template in /etc/e-smith/templates/etc/yum.conf/???
-
SME 7 is completely different from SME 6.5 in regards to yum. For 6.5 just comment it out as I suggested - either temporarily (until you reboot) by editing /etc/yum.conf or permanantly by editing the template in /etc/e-smith/templates/etc/yum.conf/???
Cheers Greg, i tried to make the permanant change by editing the files in
/etc/e-smith/templates/etc/yum.conf/*
but the only files in the template directory are
10main
&
20repositories
but neither of these file look anything thing like
/etc/yum.conf
and neither of them contain a path to the repositry ??
any other idea's or does anyone else know how to edit these templates
thanks
-
Not sure what you have installed then, but it obviously doesn't work...I had always manually edited yum.conf with sme6. Just delete the directory with the templates:
rm -rf /etc/e-smith/templates/etc/yum.conf
...and edit /etc/yum.conf and it won't be overwritten anymore.