[EMAIL PROTECTED] yum.repos.d]# /usr/bin/yum install --disablerepo=\* 
--enablerepo=base install mysql-server
Loading "smeserver" plugin
Loading "skip-broken" plugin
Loading "aliases" plugin
Loading "allowdowngrade" plugin
Loading "fastestmirror" plugin
Loading "tsflags" plugin
Determining fastest mirrors
YumRepo Warning: not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or hasnt been released yet removing mirrorlist with no valid mirrors: //var/cache/yum/base/mirrorlist.txt


Cannot find a valid baseurl for repo: base
[EMAIL PROTECTED] yum.repos.d]#

strace shows that the "5" is not being interpolated into the mirror list query:

socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("204.15.73.243")}, 16) = 0 send(5, "GET /?release=$releasever&arch=$basearch&repo=os HTTP/1.1\r\nHost: mirrorlist.centos.org\r\nAccept- Encoding: identity\r\nUser-agent: urlgrabber/3.1.0 yum/3.2.8\r\n\r\n", 157, 0) = 157
recv(5, "H", 1, 0)                      = 1
recv(5, "T", 1, 0)                      = 1
...
recv(5, "3", 1, 0)                      = 1
recv(5, "e", 1, 0)                      = 1
recv(5, "\r", 1, 0)                     = 1
recv(5, "\n", 1, 0)                     = 1
recv(5, "$releasever is not a valid release or hasnt been released yet\n", 62, 0) = 62
recv(5, "\r\n", 2, 0)                   = 2
recv(5, "0", 1, 0)                      = 1
recv(5, "\r", 1, 0)                     = 1
recv(5, "\n", 1, 0)                     = 1
recv(5, "\r", 1, 0)                     = 1
recv(5, "\n", 1, 0)                     = 1
close(5)                                = 0
futex(0x804a3d8, FUTEX_WAKE, 1)         = 0
futex(0x804a3d8, FUTEX_WAKE, 1)         = 0
futex(0x804a3d8, FUTEX_WAKE, 1)         = 0
futex(0x804a3d8, FUTEX_WAKE, 1)         = 0
open("//var/cache/yum/base/mirrorlist.txt", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb773e000 write(5, "$releasever is not a valid release or hasnt been released yet\n", 62) = 62
close(5)                                = 0
munmap(0xb773e000, 4096)                = 0
write(1, "YumRepo Warning: not using ftp, http[s], or file for repos, skipping - 5 is not a valid release or
 hasnt been released yet\n", 123) = 123
stat64("//var/cache/yum/base/mirrorlist.txt", {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
unlink("//var/cache/yum/base/mirrorlist.txt") = 0
write(1, "removing mirrorlist with no valid mirrors: //var/cache/yum/base/mirrorlist.txt\n", 79) = 79
gettimeofday({1218132733, 666981}, NULL) = 0
write(2, "\n\nCannot find a valid baseurl for repo: base\n", 45) = 45

The 'base' repo is specified in-line (old style) in /etc/yum.conf:

[base]
enabled=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
name=CentOS - os
gpgcheck=1
enablegroups=0
exclude=kernel kernel-smp kernel-xenU mkinitrd mdadm initscripts

If I move the in-line repo spec, and put it in a .repo file, then the mirrorlist lookup succeeds, so it seems that interpolation
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to