PDA

View Full Version : yum not working after fresh install of FC6


lakewalker
2006-11-01, 08:43 AM CST
Hi,

I did a fresh install of FC6. But I found YUM was not working. Here is the error message I got. I have enabled selinux, is ther a confliction? Anyone has any idea? Thanks. :)

Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: core

ihavenoname
2006-11-01, 08:59 AM CST
Hi,

I did a fresh install of FC6. But I found YUM was not working. Here is the error message I got. I have enabled selinux, is ther a confliction? Anyone has any idea? Thanks. :)

Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: core

Hmm, it could be but lets try something else first.

as root go into the Core repo file in etc and paste the above url instead. I got that link from the mirror list link that came with the error you posted. The link should be pasted after where it says baseurl as the first one on the list. save the link and try yum again. Sry if this is a bit cluttered post if you need clarification on anything.

su

nano (you can use gedit as well) /etc/yum.repo.d/fedora-core.repo (this may not be the actual name)

go to where is says baserepo= and past http://ftp.ale.org/mirrors/fedora/linux/core/6/$ARCH/os/
ontop of

lakewalker
2006-11-01, 09:29 AM CST
I don't have baserepo in my fedora-core.repo. The content of my file is listed below.

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

strikeforce
2006-11-01, 09:38 AM CST
He means baseurl. So just add another line with that address he gave you and put another baseurl line in :)

lakewalker
2006-11-01, 09:53 AM CST
I added a line to the file. Yum still does not work. The error message is the same.

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#baseurl=http://ftp.ale.org/mirrors/fedora/linux/core/6/$ARCH/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

strikeforce
2006-11-01, 04:38 PM CST
I added a line to the file. Yum still does not work. The error message is the same.

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#baseurl=http://ftp.ale.org/mirrors/fedora/linux/core/6/$ARCH/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


Thats because you have a '#' in front of it. I'll show you the actual code below. Anything after the # will be read as a comment and won't be of any use to you.


name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
baseurl=http://ftp.ale.org/mirrors/fedora/linux/core/6/$ARCH/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

lakewalker
2006-11-02, 07:33 AM CST
I find out the what caused the problem finally after talking with the IT department of my institute. They asked me to add a line in /etc/yum.conf to configure the proxy. After that, it works well.

ihavenoname
2006-11-02, 08:38 AM CST
excellant news! please post what the line consisted of (in general no specifics neccessary if you don't want) and mark the title Solved so that if someone else has the problems it can be solved easily.

bigfootnmd
2006-11-02, 07:38 PM CST
WOULD SOMEBODY just please post the correct Yum configuration file for FC6?

That would make life ever so easy

bob
2006-11-02, 08:06 PM CST
Okay, here's an attachment of everything listed in my yum.repos.d directory.