Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: xboxer21 on October 22, 2005, 08:18:48 AM
-
I freshly installed SME 7B5, Tried a yum update...
>yum -y update
I get the following error
Setting up Update Process
Setting up Repos
smeaddons 100% |=========================| 951 B 00:00
smeupdates 100% |=========================| 951 B 00:00
http://mirror.centos.org/centos/4.1/updates/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates
failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
Is anyone facing the same problem?
Thanks
-
Looks like some changes has been made at CentOS,
http://mirror.centos.org/centos-4/4.1/readme
This directory (and version of CentOS) is depreciated. For normal users,
you should use /4/ and not /4.1/ in your path. Please see this FAQ
concerning the CentOS release scheme:
http://www.centos.org/modules/smartfaq/faq.php?faqid=34
If you know what you are doing, and absolutely want to remain at the 4.1
level, go to http://vault.centos.org/ for packages.
Instructions to change yum repositories for CentOS 4.1
If you wanting to go back to 4. Change the entries http://mirror.centos.org/centos/4.1 to http://mirror.centos.org/centos/4
cd /home/e-smith/db
Backup yum_repositories
edit yum_repositories
remove all entries to http://mirror.centos.org/centos/4.1
and change them to http://vault.centos.org/4.1
# updated: Sat Oct 22 22:10:17 2005
addons=repository|BaseURL|http://vault.centos.org/4.1/addons/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - addons|status|disabled
base=repository|BaseURL|http://vault.centos.org/4.1/os/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - os|status|enabled
centosplus=repository|BaseURL|http://vault.centos.org/4.1/centosplus/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - centosplus|status|disabled
contrib=repository|BaseURL|http://vault.centos.org/4.1/contrib/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - contrib|status|enabled
extras=repository|BaseURL|http://vault.centos.org/4.1/extras/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - extras|status|disabled
smeaddons=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/7/addons/$basearch|EnableGroups|yes|GPGCheck|yes|Name|SME Server - addons|status|enabled
smedev=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/7/dev/$basearch|EnableGroups|yes|GPGCheck|yes|Name|SME Server - dev|status|disabled
smeos=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/7/os/$basearch|EnableGroups|yes|GPGCheck|no|Name|SME Server - os|status|enabled
smetest=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/7/test/$basearch|EnableGroups|yes|GPGCheck|yes|Name|SME Server - test|status|disabled
smeupdates=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/7/updates/$basearch|EnableGroups|yes|GPGCheck|yes|Name|SME Server - updates|status|enabled
smeupdates-testing=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/7/updates-testing/$basearch|EnableGroups|yes|GPGCheck|yes|Name|SME Server - updates testing|status|disabled
testing=repository|BaseURL|http://vault.centos.org/4.1/testing/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - testing|status|disabled
updates=repository|BaseURL|http://vault.centos.org/4.1/updates/$basearch|EnableGroups|no|GPGCheck|yes|Name|CentOS - updates|status|enabled
cd /etc/e-smith/db/yum_repositories/force
edit the BaseURL within the following directories
/etc/e-smith/db/yum_repositories/force/addons
/etc/e-smith/db/yum_repositories/force/centosplus
/etc/e-smith/db/yum_repositories/force/base
/etc/e-smith/db/yum_repositories/force/contrib
/etc/e-smith/db/yum_repositories/force/extras
/etc/e-smith/db/yum_repositories/force/testing
/etc/e-smith/db/yum_repositories/force/updates
To make changes permanent
/sbin/e-smith/db yum_repositories setprop smeos GPGCheck no
/sbin/e-smith/expand-template /etc/yum.conf
/sbin/e-smith/yum_update_dbs
/etc/e-smith/events/actions/initialize-default-databases
cd /etc
check yum.conf to see if changes have been made
try yum update
when updates are complete run
signal-event post-upgrade
signal-event reboot
-
delete this msg
-
Shoould I modify the yum.conf in /etc/e-smith/templates-custom directory or /etc/yum.conf
Thanks Fixit
-
Fixit,
Thanks a lot, That worked for me..Had to change the url for the Contribs aswell, all these edits were done in etc/yum.conf as mentioned by you, ignore my previous post.
Thanks again..