Koozali.org: home of the SME Server

looking for working copy of yum.conf for SME 7.3

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
looking for working copy of yum.conf for SME 7.3
« on: February 25, 2008, 05:14:18 PM »
Hi

Can someone please attach a working copy of yum.conf for SME 7.3? Mine is messed up

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: looking for working copy of yum.conf for SME 7.3
« Reply #1 on: February 25, 2008, 05:50:50 PM »
Can someone please attach a working copy of yum.conf for SME 7.3? Mine is messed up

"expand-template /etc/yum.conf" will give you a new one (assuming you mucked it up by editing it).

If you mucked it up by changing the yum_repositories database, then you can create a new db by doing:

rm /home/e-smith/db/yum_repositories
/etc/e-smith/events/actions/initialize-default-databases

then

expand-template /etc/yum.conf

to create the new default /etc/yum.conf.

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #2 on: February 25, 2008, 05:57:04 PM »
I've already done that, but yum update still gives me an error:

Quote
[root@intranet sme]# yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
Cannot find a valid baseurl for repo: smeaddons
Error: Cannot find a valid baseurl for repo: smeaddons
================================================================
No new rpms were installed. No additional commands are required.
================================================================

Looking at the mirrors, I get this:

Quote
[root@intranet sme]# ll /etc/yum.repos.d/
total 12
-rw-r--r--  1 root root 2490 Nov 19 17:08 CentOS-Base.repo
-rw-r--r--  1 root root  610 Nov 19 17:08 CentOS-Media.repo
-rw-r--r--  1 root root  428 Mar  8  2007 rpmforge.repo

No mirror files, so how / where do I get those file then?


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: looking for working copy of yum.conf for SME 7.3
« Reply #3 on: February 25, 2008, 06:33:39 PM »
I've already done that, but yum update still gives me an error:
Did you also do this: http://wiki.contribs.org/Adding_Software#Restoring_Default_Yum_Repositories , it should reset you repositories to the default values, just like after installation.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #4 on: February 25, 2008, 06:36:38 PM »
yum, I've done that as well

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: looking for working copy of yum.conf for SME 7.3
« Reply #5 on: February 25, 2008, 06:39:10 PM »
yum, I've done that as well
Really? It has always worked for me... did you follow that to the letter? If so, and it did not work you are better of luanching a bug report specifying everything you did and in which order, including error messages and results for the devs to look into this. While you are at it also post as an attachment to the bug the output of
Code: [Select]
db yum_repositories show
AFAIK the method to restore the yum settings should work as described and result in a working yum.
« Last Edit: February 25, 2008, 06:41:19 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #6 on: February 25, 2008, 06:45:25 PM »
dude, this isn't a system bug, I caused the probme myself. How exactly I don't know. I just know the reinstallion scripts doesn't restore the mirror files.

I guess I'll have to reinstall again. P.S. This is related to my VMWare installation problem. I just thought it'd be better to keep the threads seperate, since it's really 2 different problems

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #7 on: February 25, 2008, 06:54:07 PM »
Here's the output from db yum_repositories show:

Quote
[root@intranet sme]# db yum_repositories show
addons=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    Name=CentOS - addons
    Visible=no
    status=disabled
base=repository
    EnableGroups=no
    Exclude=kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,initscripts
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    Name=CentOS - os
    Visible=yes
    status=enabled
centosplus=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    Name=CentOS - centosplus
    Visible=no
    status=disabled
contrib=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    Name=CentOS - contrib
    Visible=no
    status=disabled
extras=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    Name=CentOS - extras
    Visible=no
    status=disabled
smeaddons=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeaddons
    Name=SME Server - addons
    Visible=yes
    status=enabled
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smecontribs
    Name=SME Server - contribs
    Visible=no
    status=disabled
smedev=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smedev
    Name=SME Server - dev
    Visible=no
    status=disabled
smeos=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeos
    Name=SME Server - os
    Visible=yes
    status=enabled
smetest=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smetest
    Name=SME Server - test
    Visible=no
    status=disabled
smeupdates=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeupdates
    Name=SME Server - updates
    Visible=yes
    status=enabled
smeupdates-testing=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeupdates-testing
    Name=SME Server - updates testing
    Visible=yes
    status=disabled
updates=repository
    EnableGroups=no
    Exclude=kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,initscripts
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    Name=CentOS - updates
    Visible=yes
    status=enabled

yum update can't find the smeaddons repository:

Quote
[root@intranet sme]# yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
Cannot find a valid baseurl for repo: smeaddons
Error: Cannot find a valid baseurl for repo: smeaddons

Those commands doesn't recreate the /etc/yum.repo/mirrors* files

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: looking for working copy of yum.conf for SME 7.3
« Reply #8 on: February 25, 2008, 08:31:01 PM »
I guess I'll have to reinstall again. P.S. This is related to my VMWare installation problem. I just thought it'd be better to keep the threads seperate, since it's really 2 different problems
Ah... than there might be another issue... are you able to access the internet from your SME Server running under VMWare? It might be that it has no internet connection and therefor is unable to resolve anything including repositories.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #9 on: February 25, 2008, 09:06:36 PM »
yes, I am able to download stuff from the internet. I'm telling you, it has todo with the mirrors. Take a look at the output from the previous command. Most of the repositories are looking for mirror files in the /etc/yum.repos.d/ folder - but they're not there, so yum fails. I really only need those files, but I don't have the time to reinstall right now


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: looking for working copy of yum.conf for SME 7.3
« Reply #10 on: February 25, 2008, 09:26:02 PM »
yes, I am able to download stuff from the internet. I'm telling you, it has todo with the mirrors.

If you know all about it, then just fix it, and we don't need to be involved.

If you want to help us to find out what is wrong, and fix it for everybody, then please just open a bug report, and describe exactly what you are doing and what you are seeing, and we will work it out together, in the Bug Tracker.

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #11 on: February 25, 2008, 09:30:08 PM »
Charlie, I'm missing the mirro files in the /etc/yum.repos.d/ folder, as I told you. The only way to fix it is either to copy from another working system, or reinstall.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: looking for working copy of yum.conf for SME 7.3
« Reply #12 on: February 25, 2008, 09:36:27 PM »
Charlie, I'm missing the mirro files in the /etc/yum.repos.d/ folder, as I told you.

Why are you missing those files? Did you delete them?

Quote
The only way to fix it is either to copy from another working system, or reinstall.

rpm -Uhv --force \
 http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7.3/smeos/i386/SME/RPMS/smeserver-yum-1.2.0-41.el4.sme.noarch.rpm


Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: looking for working copy of yum.conf for SME 7.3
« Reply #13 on: February 25, 2008, 10:25:37 PM »
Yes, I have deleted the files, hoping they would be recreated, but that didn't work. Thank you for getting me back on track, though I'm back to where this all started.

yum update doesn't see the correct mirror URL's, as can be seen here:

Quote
[root@intranet sme]# yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-String-Approx to pack into transaction set.
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeos/i386/RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/smeos/i386/RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://smemirror.fullnet.co.uk/releases/7/smeos/i386/RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeos/i386/RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.pacific.net.au/linux/smeserver/releases/7/smeos/i386/RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://sme-mirror.voxteneo.com/releases/7/smeos/i386/RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: failure: RPMS/perl-String-Approx-3.26-1.el4.rf.i386.rpm from smeos: [Errno 256] No more mirrors to try.

I'm going to post a bug, although I hate the bugtracker

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: looking for working copy of yum.conf for SME 7.3
« Reply #14 on: February 25, 2008, 10:42:55 PM »
I'm going to post a bug, although I hate the bugtracker

And I hate people who waste my time here, when I should be fixing bugs or developing new features.