LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot find a valid baseurl for repo : base in centos 6 (https://www.linuxquestions.org/questions/linux-server-73/cannot-find-a-valid-baseurl-for-repo-base-in-centos-6-a-914000/)

kalidoss 11-17-2011 03:38 AM

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..........................

acid_kewpie 11-17-2011 04:04 AM

well does that URL work? You've missed out a lot of stuff in the middle.

deep27ak 11-17-2011 05:02 AM

Quote:

Originally Posted by kalidoss (Post 4526354)
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

rath_pan 11-17-2011 09:01 AM

use

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

and try..

deep27ak 11-17-2011 09:39 PM

Quote:

Originally Posted by rath_pan (Post 4526559)
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/

kalidoss 11-18-2011 12:24 AM

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?????????????

deep27ak 11-18-2011 06:58 AM

Quote:

Originally Posted by kalidoss (Post 4527223)
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

rath_pan 11-19-2011 12:32 AM

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

kalidoss 11-19-2011 03:26 AM

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......

deep27ak 11-20-2011 11:12 PM

Quote:

Originally Posted by kalidoss (Post 4528147)
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)



All times are GMT -5. The time now is 11:06 PM.