Re: Yum 2.2 w/ HTTP proxy fails w/ error "Cannot find a valid baseurl for repo:"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 29 Mar 2005, Kam Leo wrote:

On Tue, 29 Mar 2005 22:35:06 +0100 (BST), Mike Fleetwood
<mike@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

Recently "yum check-update" and "yum update" has started producing the
error "Cannot find a valid baseurl for repo: ...".  Googling suggests
that other occurrences have been caused by network connectivity errors
or miss configured yum repository locations.  I am convinced that in my
case it is yum 2.2's inability to successfully download files through a
HTTP proxy that is the problem.  To work around the problem I
reinstalled yum 2.1 and upgrade using "yum --exclude=yum update".

Has anybody else had the same experience?
Can anybody suggest how to debug the code?  Running "yum -d 9 ..."
doesn't add anything useful.

I have 2 FC3 installations which I update manually using "yum update"
regularly.  Both have to use a HTTP proxy (different ones) to access
the Internet and both have the same problem.

HTTP proxy setting:

   [root@bridge ~]# env | grep HTTP
   HTTP_PROXY=http://rockover:8080/

Here is yum 2.1 working:

   [root@bridge ~]# rpm -q yum
   yum-2.1.12-0.fc3

   [root@bridge ~]# yum update
   Setting up Update Process
   Setting up Repo:  base
   repomd.xml                100% |=========================| 1.1 kB    00:00
   Setting up Repo:  updates-released
   repomd.xml                100% |=========================|  951 B    00:00
   Reading repository metadata in from local files
   base      : ################################################## 2622/2622
   updates-re: ################################################## 742/742
   Resolving Dependencies
   --> Populating transaction set with selected packages. Please wait.
   ---> Package yum.noarch 0:2.2.0-0.fc3 set to be updated
   --> Running transaction check

   Dependencies Resolved
   Transaction Listing:
     Update: yum.noarch 0:2.2.0-0.fc3
   Is this ok [y/N]: y
   Downloading Packages:
   Running Transaction Test
   Finished Transaction Test
   Transaction Test Succeeded
   Running Transaction
   Updating: yum 100 % done 1/2
   Completing update for yum  - 2/2

   Updated: yum.noarch 0:2.2.0-0.fc3
   Complete!

And here is yum 2.2 failing:

   [root@bridge ~]# rpm -q yum
   yum-2.2.0-0.fc3

   [root@bridge ~]# yum update
   Setting up Update Process
   Setting up Repos
   base                      100% |=========================| 1.1 kB     00:00
   Cannot find a valid baseurl for repo: updates-released

Thanks for your attention,
Mike
--

Check /etc/yum.repos.d/fedora-updates.repo for a typo or invalid url. You can also add an alternate/fallback repo to this file so that yum will not abort when the primary repo is not available.

Next time please provide the contents of /etc/yum.conf and all of the
.repo files in /etc/yum.repos.d/



Here's /etc/yum.conf: [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 retries=20 obsoletes=1 gpgcheck=1

  # PUT YOUR REPOS HERE OR IN separate files named file.repo
  # in /etc/yum.repos.d

And /etc/yum.repos.d/*.repo files where enabled=1.
/etc/yum.repos.d/fedora-updates.repo:
  [base]
  name=Fedora Core $releasever - $basearch - Base
  #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
  mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
  enabled=1
  gpgcheck=1
/etc/yum.repos.d/fedora-updates.repo
  [updates-released]
  name=Fedora Core $releasever - $basearch - Released Updates
  #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
  mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
  enabled=1
  gpgcheck=1
/etc/yum/repos.d/livna.org-stable.repo
  # http://rpm.livna.org/
  [livna.org-stable]
  name=Livna.org (stable) Fedora Compatible Extras
  #mirrorlist=
  baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.stable
  enabled=1
  gpgcheck=1

Thanks,
Mike
--
 __  __ _ _     ___    ____ _    ___  ___  _           ___  ___    _
|  \/  (_| | _ / _ \  | ___| |  / _ \/ _ \| |_ _  _  _/   \/   \ _| |
| |\/| | | |/ |  ___| | _| | |_|  __|  ___| __| \/ \/|  O |  O  / _ |
|_|  |_|_|_|\_\\___|  |_|  |____\___|\___||____\_/^\_/\___/\___/\___|


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux