LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [Help Request] Issues getting Yum going on CentOS (https://www.linuxquestions.org/questions/linux-software-2/%5Bhelp-request%5D-issues-getting-yum-going-on-centos-907248/)

andre199017 10-09-2011 08:59 AM

[Help Request] Issues getting Yum going on CentOS
 
Im using PuTTy and trying to even get yum going, because ultimately i want the command

Code:

yum install screen
to work.

I get the following error after yum install command

Code:

https://atomicorp.com/channels/asl-3.0/centos/5/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401: Authorization Required Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: asl-3.0. Please verify its path and try again
Any help?

kasl33 10-10-2011 01:22 AM

This is going to be one of two problems:

1. You are not connected to the internet
2. The atomiccorp.com mirror is down and YUM didn't select another mirror.

What happens if you run this command:

Code:

yum update
Are you able to ping atomiccorp.com? If not...

Are you able to ping google.com from the machine in reference (I'm hoping that I'm not being an ass being that you are using the machine in reference and are obviously on the internet :D )?

Jenni 10-10-2011 01:31 AM

Assuming you're connected to the internet, I would just try changing the mirror.
I just tried to get to that mirror and it's asking for a name and password, so that may be the issue too.

kasl33 10-10-2011 01:35 AM

Quote:

Originally Posted by Jenni (Post 4494315)
Assuming you're connected to the internet, I would just try changing the mirror.
I just tried to get to that mirror and it's asking for a name and password, so that may be the issue too.

Wow I just had a duh! moment (haven't slept in two days). The error message when the OP tried to connect was "Authorization Failed." I haven't used YUM a LOT over past 10 years, but have used it enough. YUM typically finds the fastest mirror, but I have never ran into an authentication problem.

New mirror is definitely the answer.

Jenni 10-10-2011 01:49 AM

Quote:

Originally Posted by kasl33 (Post 4494317)
Wow I just had a duh! moment (haven't slept in two days). The error message when the OP tried to connect was "Authorization Failed." I haven't used YUM a LOT over past 10 years, but have used it enough. YUM typically finds the fastest mirror, but I have never ran into an authentication problem.

New mirror is definitely the answer.

Don't feel to bad, I only tried to connect to that mirror to make sure the server was up, I missed the authentication error in the OP too, when I tried to connect I got a password request and thought that might be worth mentioning. Lol.

kasl33 10-10-2011 01:55 AM

Quote:

Originally Posted by Jenni (Post 4494326)
Don't feel to bad, I only tried to connect to that mirror to make sure the server was up, I missed the authentication error in the OP too, when I tried to connect I got a password request and thought that might be worth mentioning. Lol.

That just gave me a wild idea!

@andre199017:

Please post the contents of your /etc/yum.repos.d/whichever_file_that_has_to_do_with_stock_repositories

In my /etc/yum.repos.d/CentOS-Base.repo I have to key lines:

Code:

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/

If the mirrorlist.centos.org'ish line doesn't work, comment it out and uncomment the line that starts with #baseurl and see what happens

*NOTE: mirror.centos.org should be replaces with mirror.fedora_whatever.org or whatever your distribution is (make sure you put it in your post or in your profile information as an added help "bonus" to the rest of us).

andre199017 10-10-2011 05:16 AM

Thank you very much for your replies.

@kasl33:

I did as you said and i still get the same error. (Uncommenting out baseurl...)

You also asked what happens with a simple yum update, and it is the same auth error:

Code:

[root@host ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.kiewel-online.ch
 * extras: centos.kiewel-online.ch
 * updates: centos.kiewel-online.ch
https://atomicorp.com/channels/asl-3.0/centos/5/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401: Authorization Required
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: asl-3.0. Please verify its path and try again


RockDoctor 10-10-2011 07:57 AM

You might try disabling the fastest mirror plugin. If that doesn't work, you could manually edit the files in /etc/yum.repos.d to use a specific repository uncommenting the baseurl line and editing it to select your favorite mirror), then commenting out the mirrorlist line.

andre199017 10-10-2011 01:02 PM

I'm not sure that im that centos-gifted.

Where can i find alternate mirrors?

andre199017 10-10-2011 02:22 PM

Is anyone out there able to help? Quite frustrating being stuck at the first hurdle!

chrism01 10-10-2011 03:54 PM

http://mirror-status.centos.org/#ch
https://www.centos.org/modules/tinyc...ndex.php?id=31
http://mirror.centos.org/centos-5/5.7/

andre199017 10-10-2011 04:05 PM

Sorry to be a pain in the @ss but i did as follows and im still hitting this error:

Code:

https://atomicorp.com/channels/asl-3.0/centos/5/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401: Authorization Required
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: asl-3.0. Please verify its path and try again

What could i be doing wrong, i changed the mirror in the etc/yu... folder.

Jenni 10-10-2011 04:14 PM

It looks like you're still trying the same mirror, I haven't used CentOS in a while but if I remember correctly you need to comment out one mirror in order to use another - so if you added a different mirror make sure you comment out the old one.

andre199017 10-10-2011 04:17 PM

Here is my CentOS-Base.repo file within yum.repos.d:

Code:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/

I dont see any ...atomicorp.... url in there?

Here is my asl.repo in the same directory:

Code:

[asl-3.0]
name=Atomicorp -  - Atomic Secured Linux 3.0
baseurl=https://:@atomicorp.com/channels/asl-3.0/centos/5/x86_64
enabled=1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck=1


[asl-3.0-testing]
name=Atomicorp -  - Atomic Secured Linux 3.0 (TESTING)
baseurl=https://:@atomicorp.com/channels/asl-3.0-testing/centos/5/x86_64
enabled=0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck=1

I see it in there, but then i have the issue of where do i get a mirror, can i used one from the links posted above?

Jenni 10-10-2011 04:28 PM

Can you post your /etc/yum.conf file?
Sorry I don't have a CentOS machine to play on anymore so I'm trying to remember from memory how to manage mirrors in yum, lol.


All times are GMT -5. The time now is 03:01 AM.