Koozali.org: home of the SME Server

crazy yum error ?

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
crazy yum error ?
« 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:
KaiNeR  :pint: ......

lajgaard

crazy yum error ?
« Reply #1 on: June 09, 2005, 11:42:11 PM »
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

Offline arne

  • *****
  • 1,116
  • +0/-4
crazy yum error ?
« Reply #2 on: June 10, 2005, 01:39:56 AM »
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.
......

lajgaard

crazy yum error ?
« Reply #3 on: June 10, 2005, 09:22:39 AM »
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

Offline mudra

  • ****
  • 78
  • +0/-0
crazy yum error ?
« Reply #4 on: June 17, 2005, 09:53:03 PM »
bump:

I have the same problem and don't know how to fix it.

Any ideas anyone.

TIA

Mudra

Offline gregswallow

  • *
  • 651
  • +1/-0
crazy yum error ?
« Reply #5 on: June 18, 2005, 07:14:49 AM »
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:
Code: [Select]
#[updates]
#name=SME 6.5 Beta2 Updates
#baseurl=http://www.ibiblio.org/pub/linux/distributions/smeserver/updates/6.5RC1/i386/


Greg

Offline gregswallow

  • *
  • 651
  • +1/-0
crazy yum error ?
« Reply #6 on: June 18, 2005, 07:16:17 AM »
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:
Code: [Select]
#[updates]
#name=SME 6.5 Beta2 Updates
#baseurl=http://www.ibiblio.org/pub/linux/distributions/smeserver/updates/6.5RC1/i386/


Greg

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
which yum.conf do i edit ???
« Reply #7 on: June 18, 2005, 09:34:01 AM »
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
KaiNeR  :pint: ......

DarkMirage

crazy yum error ?
« Reply #8 on: June 18, 2005, 09:47:03 AM »
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:
Code: [Select]
db /home/e-smith/yum_repositories show
Then disable the repository:
Code: [Select]
db /home/e-smith/yum_repositories setprop \
some_entry status disabled


And finally expand yum.conf:
Code: [Select]
/sbin/e-smith/expand-template /etc/yum.conf

Hth

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
crazy yum error ?
« Reply #9 on: June 18, 2005, 12:15:11 PM »
Thanks DarkMirage
i'll give it a try when i get in from work
KaiNeR  :pint: ......

Offline gregswallow

  • *
  • 651
  • +1/-0
crazy yum error ?
« Reply #10 on: June 19, 2005, 01:16:09 AM »
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/???

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
crazy yum error ?
« Reply #11 on: June 19, 2005, 09:41:06 AM »
Quote from: "gregswallow"
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
KaiNeR  :pint: ......

Offline gregswallow

  • *
  • 651
  • +1/-0
crazy yum error ?
« Reply #12 on: June 20, 2005, 04:26:41 PM »
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.