LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-17-2011, 03:38 AM   #1
kalidoss
Member
 
Registered: Mar 2009
Posts: 50

Rep: Reputation: 0
Cannot find a valid baseurl for repo : base in centos 6


hi,

i installed centos 6 on my system. i want to install 389 directory server on it. No internet connection on that system. so, i downloaded all repositores from internet and copied to /var/www/html/yum/base-pkg/ directory.
i created local repo like this

createrepo /var/www/html/yum/base-pkg/
then 4 files is created in .../repodata directory.

then i created a mylocal.repo directory in/etc/yum.repos.d/

Added the following lines:

[base]
name=Centos $releasever - $basearch
failovermethod=priority
baseurl=http://ipadress/yum/base-pkg
enabled=1
gpgcheck=0

as seen in internet. when i give yum install 389-ds...error is coming

Any help would be great..........................
 
Old 11-17-2011, 04:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
well does that URL work? You've missed out a lot of stuff in the middle.
 
Old 11-17-2011, 05:02 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by kalidoss View Post
hi,

i installed centos 6 on my system. i want to install 389 directory server on it. No internet connection on that system. so, i downloaded all repositores from internet and copied to /var/www/html/yum/base-pkg/ directory.
i created local repo like this

createrepo /var/www/html/yum/base-pkg/
then 4 files is created in .../repodata directory.

then i created a mylocal.repo directory in/etc/yum.repos.d/

Added the following lines:

[base]
name=Centos $releasever - $basearch
failovermethod=priority
baseurl=http://ipadress/yum/base-pkg
enabled=1
gpgcheck=0

as seen in internet. when i give yum install 389-ds...error is coming

Any help would be great..........................

Just by creating all your rpms in /var/www/html will not configure your apache server

Code:
1. make sure apache server is installed and service is working properly
2. manually go to browser and verify whether you can see all the rpms
3. and if everything works fine then you can mention the link to the *.repo file

have a look at this
And make sure you are through with all the above mentioned points before using yum
 
Old 11-17-2011, 09:01 AM   #4
rath_pan
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Smile

use

baseurl=file:/var/www/html/yum/base-pkg/

and try..
 
Old 11-17-2011, 09:39 PM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by rath_pan View Post
use

baseurl=file:/var/www/html/yum/base-pkg/

and try..

That would again return as an error

It should be like this

Code:
baseurl=file:///var/www/html/yum/bas-pkg/
 
Old 11-18-2011, 12:24 AM   #6
kalidoss
Member
 
Registered: Mar 2009
Posts: 50

Original Poster
Rep: Reputation: 0
could not retrieve mirror list errror

In /etc/yum.repos.d/ folder CentOS-Base.repo, CentOS-Debuginfo, CentOS-media.repo files are available. My local repo configuration is mylocal.repo.
still it is showing errror like below


Could not retrieve mirror list : http://mirrolist.centOS.org/?/release=6...........
14: PYCURL ERROR 6 - "
CANNOT find a valid baseurl repo- base

so i changed the contents of CentOS-Base.repo (similar to mylocal.repo)
Still error exists..............

http://ipaddress/yum/base-pkg is listing all packages..............
Any command i have to execute for storing this local address in repositories?????????????
 
Old 11-18-2011, 06:58 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by kalidoss View Post
In /etc/yum.repos.d/ folder CentOS-Base.repo, CentOS-Debuginfo, CentOS-media.repo files are available. My local repo configuration is mylocal.repo.
still it is showing errror like below


Could not retrieve mirror list : http://mirrolist.centOS.org/?/release=6...........
14: PYCURL ERROR 6 - "
CANNOT find a valid baseurl repo- base

so i changed the contents of CentOS-Base.repo (similar to mylocal.repo)
Still error exists..............

http://ipaddress/yum/base-pkg is listing all packages..............
Any command i have to execute for storing this local address in repositories?????????????

As you said there is no internet on that system so obviously it would never fetch anything from a website for which you need to be online

Secondly there must be other files in the *.repo

So just comment out all other specifications except your configuration
and try

Code:
#yum clean all
#yum update

and post your output of .repo file
 
Old 11-19-2011, 12:32 AM   #8
rath_pan
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
If you dont want internet repos disable them(open unwanted repo one by one and change 'enable=1'to 'enable=0').
Only local repo needs to enable it. the repo file should be

[server]
name=any name
baseurl=file:<path of package>
enable=1
gpgcheck=0


Arthur
 
Old 11-19-2011, 03:26 AM   #9
kalidoss
Member
 
Registered: Mar 2009
Posts: 50

Original Poster
Rep: Reputation: 0
yum clean all
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Repository base-url is listed more than once in the configuration
Repository base-url is listed more than once in the configuration
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@dirsrv01 Desktop]# yum update
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Repository base-url is listed more than once in the configuration
Repository base-url is listed more than once in the configuration
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
14: PYCURL ERROR 6 - ""
Error: Cannot find a valid baseurl for repo: base


mylocal-repo

------------------------------------

[base]
name=Centos
failovermethod=priority
baseurl=http://10.111.1.14/yum/base-pkg/
enabled=1
gpgcheck=0

and also tried baseurl=file:///var/www/html/yum/base-pkg/

same error mentioned above..
From where it is taking this URL http://mirrorlist.centos.org/.............?????
other than mylocal.repo files are deleted......
 
Old 11-20-2011, 11:12 PM   #10
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by kalidoss View Post
yum clean all
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Repository base-url is listed more than once in the configuration
Repository base-url is listed more than once in the configuration
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@dirsrv01 Desktop]# yum update
Loaded plugins: downloadonly, fastestmirror, refresh-packagekit
Repository base-url is listed more than once in the configuration
Repository base-url is listed more than once in the configuration
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...h=i386&repo=os error was
14: PYCURL ERROR 6 - ""
Error: Cannot find a valid baseurl for repo: base


mylocal-repo

------------------------------------

[base]
name=Centos
failovermethod=priority
baseurl=http://10.111.1.14/yum/base-pkg/
enabled=1
gpgcheck=0

and also tried baseurl=file:///var/www/html/yum/base-pkg/

same error mentioned above..
From where it is taking this URL http://mirrorlist.centos.org/.............?????
other than mylocal.repo files are deleted......

OK do one thing,

comment everything in your repo file

Code:
#vi /etc/yum.conf
[base]
name=Centos 
baseurl=http://10.111.1.14/yum/base-pkg/
enabled=1
gpgcheck=0
and if this also doesn't works then I would like to see

Code:
#cat /etc/yum.conf

#cd /etc/yum.repos.d/
#ls
(post the output)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum - cannot find a valid baseurl for repo: base. chris24300 Linux - Software 2 12-11-2009 11:13 AM
Cannot find a valid baseurl for repo: atomic jodie Linux - Newbie 1 06-10-2009 04:37 PM
Cannot find a valid baseurl for repo: base --- CentOS 5 Ascendancy5 Linux - Newbie 7 01-12-2009 06:55 AM
can't find a valid baseurl for repo: extras priyadarshi Fedora 2 06-19-2007 08:31 AM
yumex-"Cannot find a valid baseurl for repo: base" corelover Fedora 1 04-08-2005 03:10 AM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration