Skip to content

[BUG] CentOS Linux 7.9 - wrong baseurls in CentOS-Vault-Base.repo #12

@hosekadam

Description

@hosekadam

Describe the bug
In the latest (7.9.63) version of the CentOS 7 box the updates (same for extras, centosplus) repo points to URL for base repo.

Cloud Image
Vagrant, libvirt, eurolinux-vagrant/centos-7 box version 7.9.63

To Reproduce

  • Vagrantfile:
Vagrant.configure("2") do |config|
  config.vm.box = "eurolinux-vagrant/centos-7"
end
  • vagrant up
  • vagrant ssh
  • cat /etc/yum.repos.d/CentOS-Vault-Base.repo
  • see the updates (same for extras, centosplus) repo has wrong URL
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/7.9.2009/os/x86_64
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Expected behavior
A clear and concise description of what you expected to happen.
Under the updates (same for extras, centosplus) repo should be:

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

Additional context
I used this sed command to fix this issue for updates:

sed -i '/\[updates\]/,/\[/{s|^baseurl=.*|baseurl=http://vault.centos.org/7.9.2009/updates/x86_64|}' /etc/yum.repos.d/CentOS-Vault-Base.repo

And vice versa for the other repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions