Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: SoftDux 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
-
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.
-
I've already done that, but yum update still gives me an error:
[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:
[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?
-
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.
-
yum, I've done that as well
-
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 db yum_repositories show
AFAIK the method to restore the yum settings should work as described and result in a working yum.
-
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
-
Here's the output from db yum_repositories show:
[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:
[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
-
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.
-
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
-
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.
-
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.
-
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?
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
-
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:
[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
-
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.
-
Charlie, you chose to help, I didn't demand for you to help. I actually just wanted the files, simple as that. If you hate people who waste your time, then why do you bother to support them?
-
Charlie, you chose to help, I didn't demand for you to help. I actually just wanted the files, simple as that. If you hate people who waste your time, then why do you bother to support them?
I want the software to work perfectly. For that to happen, people need to report accurately what happens when the software doesn't work correctly.
If you had said "I deleted various files" I would have let somebody else help you. But you are saying "yum update" doesn't work.
-
Charlie, I understand where you're coming from, but being rude to other people isn't professional. There's a reason why I didn't bother with a bug report, since I tried to fix some problems which I thought wasn't related to anything in particular. Doing stuff after 1am in the morning, things tend to go wrong. And plenty people tried to help me, but what get's to me is that people don't really want to help, they rather want to deligate and force their ways of thinking down on everyone. I really just asked for the file for the yum config, it's as simple as that. It didn't need a deep ananlysis why I needed it, without having to reinstall.
Since I only have a 7.2 CD, and upgraded to 7.3 via yum, I didn't want to reinstall and redo everything, it cost me a lot in bandwidth everytime.
No offence, but you're over sensitive about this whole thing
-
Bug submitted:
http://bugs.contribs.org/show_bug.cgi?id=3987
-
SoftDux
No offence, but you're over sensitive about this whole thing
Quite the opposite Softdux, I think it's you who are being oversensitive.
Charlie has not been rude to you, but has been quite obliging and helpful, and was attempting to resolve possible problems with the base code. You can at least be pleasant and cordial back to him.
Please don't bite the hand that feeds you. You wouldn't be making business out of sme server if it wasn't for the huge amount of development work Charlie has done getting sme server to where it is today. He deserves much more respect than you are giving him.
Please drop the attitude immediately.
-
RayMitchell, it's not the first time I get a negative response from Charlie, whereas other people don't give me negative comments. I can fully understand that this is his "baby" and he's put a lot of effort into getting it where it is today ( I do appreciate that ), but he also needs to understand that each & every environment (server / PC hardware / combination of installed software / confgurations / useage / internet connectivity / etc ) differs from his, and just cause everything works perfect for him (or anyone else who's hacking the stuff to work), doesn't mean it will work for all. I don't want to "bite the hand that feeds me", but if you look at my posts, you'll most probably see that I'm someone who'll try everything - just to see how it works. And some stuff give problems, even though they're not supposed to. Most of the times it's with 3rd party contribs or addons, which Charlie shouldn't have to worry about, but the original owners / developers / writers / etc.`
P.S. I'm NOT making any more from using SME. If at all, it's making my own life a bit easier with my own personal server. Duo to our IT prices, and internet availability in this country, the SME gateway doesn't work for me as a production system. And I've been told it will never work in a way that I need it to. :)
-
SoftDux
Since I only have a 7.2 CD, and upgraded to 7.3 via yum, I didn't want to reinstall and redo everything, it cost me a lot in bandwidth everytime.
You should use rsync to download new iso's and save bandwidth.
ie
copy the old iso file to a folder on sme server (with the same name as the file you are going to download)
cd to that folder
then do
rsync --recursive --verbose --archive --partial --progress rsync://ftp.ibiblio.org/pub/linux/distributions/smeserver/releases/7/iso/i386/smeserver.iso .
The above rsync command is all on one line, and don't forget the space and dot at the end.
It will only download the changes in the iso file, saving you considerable bandwidth.
-
thanx for the tip. I didn't know I could use rsync on ISO files.