Koozali.org: home of the SME Server

yum problems

yuku

yum problems
« on: September 05, 2006, 11:04:21 AM »
I'm running a 7.0 final box which is working fine, but for one small detail.

When running yum I'm getting the following:
Quote

[root@mickey /]# yum check-update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Repository base is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up repositories
not using ftp, http, or file for repos, skipping - Null is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
================================================================
No new rpms were installed. No additional commands are required.
================================================================


also in server-manger the install updates option says there is one update available called: not using ftp
however installing it gives the following error:
Quote

Repository base is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
Setting up Update Process
Setting up repositories
not using ftp, http, or file for repos, skipping - Null is not a valid release or hasnt been released yet
yum update not failed: 256


I've already tried yum clean cache and yum clean metadata
reboot / reconfigure also don't have any effect.

my yum.conf looks as follows:
Code: [Select]
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
[main]
cachedir=/var/cache/yum
debuglevel=2
exactarch=1
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
logfile=/var/log/yum/yum.log
obsoletes=1
tolerant=1

[addons]
enabled=0
name=CentOS - addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch
gpgcheck=0
enablegroups=0

[base]
enabled=1
name=CentOS - os
baseurl=http://mirror.centos.org/centos/4/os/$basearch
gpgcheck=1
enablegroups=0

[centosplus]
enabled=0
name=CentOS - centosplus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch
gpgcheck=0
enablegroups=0

[contrib]
enabled=1
name=CentOS - contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch
gpgcheck=0
enablegroups=0

[dungog]
enabled=0
name=SME Server 7 - dungog
baseurl=http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/dungog/
gpgcheck=0
enablegroups=1

[extras]
enabled=0
name=CentOS - extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch
gpgcheck=0
enablegroups=0

[smeaddons]
enabled=1
name=SME Server - addons
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeaddons/$basearch
gpgcheck=0
enablegroups=1

[smedev]
enabled=0
name=SME Server - dev
baseurl=http://mirror.contribs.org/smeserver/releases/7/smedev/$basearch
gpgcheck=0
enablegroups=1

[smeos]
enabled=1
name=SME Server - os
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeos/$basearch
gpgcheck=1
enablegroups=1

[smetest]
enabled=0
name=SME Server - test
baseurl=http://mirror.contribs.org/smeserver/releases/7/test/$basearch
gpgcheck=0
enablegroups=1

[smeupdates]
enabled=1
name=SME Server - updates
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates/$basearch
gpgcheck=1
enablegroups=1

[smeupdates-testing]
enabled=0
name=SME Server - updates testing
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates-testing/$basearch
gpgcheck=1
enablegroups=1

[testing]
enabled=0
name=CentOS - testing
baseurl=http://mirror.centos.org/centos/4/testing/$basearch
gpgcheck=0
enablegroups=0

[updates]
enabled=1
name=CentOS - updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch
gpgcheck=1
enablegroups=0


anyone got any idea?

Offline mmccarn

  • *
  • 2,656
  • +10/-0
yum problems
« Reply #1 on: September 05, 2006, 02:02:02 PM »
[guess]
server-manager / Software Installer / Change software installer settings / select all 3 "SME Server ..." repositories, unselect all of the "Centos" repositories, click "Save" and try again.
[/guess]

yuku

yum problems
« Reply #2 on: September 05, 2006, 03:36:09 PM »
unfortunately that is not the solution.

still getting same errors (even after reconfigure/reboot)

any way to get rid of the current yum.conf and recreate it using templates?

Offline mmccarn

  • *
  • 2,656
  • +10/-0
yum problems
« Reply #3 on: September 05, 2006, 05:45:42 PM »
The server-manager software-update settings simply change "enabled" from "=0" to "=1" in yum.conf.

(the "[updates]" section in your yum.conf formerly said "enabled=1"; does it still say this?)

You could try running yum manually with
# yum update --enablerepo=SME*


Here's my "yum.conf", for comparison.  Note that this is not the default version as I have added the dungog repository.
Quote

#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
[main]
cachedir=/var/cache/yum
debuglevel=2
exactarch=1
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug
kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
logfile=/var/log/yum/yum.log
obsoletes=1
tolerant=1

[addons]
enabled=0
name=CentOS - addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch
gpgcheck=0
enablegroups=0

[base]
enabled=0
name=CentOS - os
baseurl=http://mirror.centos.org/centos/4/os/$basearch
gpgcheck=1
enablegroups=0

[centosplus]
enabled=0
name=CentOS - centosplus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch
gpgcheck=0
enablegroups=0

[contrib]
enabled=0
name=CentOS - contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch
gpgcheck=0
enablegroups=0

[dungog]
enabled=0
name=SME Server 7 - dungog
baseurl=http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/d
ungog/
gpgcheck=0
enablegroups=1

[extras]
enabled=0
name=CentOS - extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch
gpgcheck=0
enablegroups=0

[smeaddons]
enabled=1
name=SME Server - addons
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeaddons/$basearch
gpgcheck=0
enablegroups=1

[smedev]
enabled=0
name=SME Server - dev
baseurl=http://mirror.contribs.org/smeserver/releases/7/smedev/$basearch
gpgcheck=0
enablegroups=1

[smeos]
enabled=1
name=SME Server - os
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeos/$basearch
gpgcheck=1
enablegroups=1

[smetest]
enabled=0
name=SME Server - test
baseurl=http://mirror.contribs.org/smeserver/releases/7/test/$basearch
gpgcheck=0
enablegroups=1

[smeupdates]
enabled=1
name=SME Server - updates
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates/$basearch
gpgcheck=1
enablegroups=1

[smeupdates-testing]
enabled=0
name=SME Server - updates testing
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates-testing/$
basearch
gpgcheck=1
enablegroups=1

[testing]
enabled=0
name=CentOS - testing
baseurl=http://mirror.centos.org/centos/4/testing/$basearch
gpgcheck=0
enablegroups=0

[updates]
enabled=0
name=CentOS - updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch
gpgcheck=1
enablegroups=0

Offline raem

  • *
  • 3,972
  • +4/-0
yum problems
« Reply #4 on: September 05, 2006, 08:22:00 PM »
yuku

>...any way to get rid of the current yum.conf and recreate it using templates


http://forums.contribs.org/index.php?topic=30043.0

if you want to go back to the defaults, delete the /home/e-smith/db/yum_repositories file before doing the reconfiguration reboot.
...

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
yum problems
« Reply #5 on: September 05, 2006, 10:40:03 PM »
Try to remove all files (if any) in /etc/yum.repos.d followed by a reboot.

At least it helped for me :-)