Error YumRepo Error:

yum

#1

I have installed NethServer on a machine running KVM. When I go to the Software Center I get this error : Error YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-base/mirrorlist.txt {"error": "Cannot retrieve repository metadata (repomd.xml) for repository: centos-base. Please verify its path and try again"}

I installed the NethServer from the ISO
I created my VM
– virt-install
–virt-type kvm
–name NethServer
–ram 4096
–vcpus=1
–cdrom /Storage/Isos/nethserver-6.6-x86_64.iso
–disk path=//Storage/Images/NethS01.qcow2,size=500,format=qcow2
–network bridge=br0
–graphics none
–os-type=linux
–os-variant=rhel6

I did

yum clean all

I have checked my /etc/resolv.conf on the host and guest

nameserver 8.8.8.8
nameserver 8.8.4.4


Change of NethServer upgrade policy
(Artem Fedai) #2

Hi , so why do you setup Internal IP adress 192.168. have you some NAT on KVM server ?
run taceroute 8.8.8.8 and show us please


#3

traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.1.254 (192.168.1.254) 0.628 ms 0.818 ms 0.791 ms
2 162-229-236-2.lightspeed.miamfl.sbcglobal.net (162.229.236.2) 20.193 ms 20.185 ms 20.369 ms
3 99.167.141.34 (99.167.141.34) 22.171 ms 22.775 ms 24.297 ms
4 99.167.141.177 (99.167.141.177) 31.151 ms 27.239 ms 27.432 ms
5 12.83.70.17 (12.83.70.17) 27.191 ms 28.237 ms 28.224 ms
6 fldfl401me3.ip.att.net (12.122.106.93) 28.657 ms 19.084 ms 19.036 ms
7 * * *
8 216.239.50.53 (216.239.50.53) 24.978 ms 216.239.50.57 (216.239.50.57) 25.380 ms 216.239.50.55 (216.239.50.55) 25.925 ms
9 216.239.50.115 (216.239.50.115) 27.251 ms 216.239.50.101 (216.239.50.101) 27.666 ms 28.803 ms
10 google-public-dns-a.google.com (8.8.8.8) 28.814 ms 29.619 ms 30.057 ms


(Artem Fedai) #4

show yum update
and yum repolist


(Artem Fedai) #5

Assign Green role to your network interface


#6

]# yum update
Loaded plugins: changelog, fastestmirror, nethserver_events, presto
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-base

]# yum repolist
Loaded plugins: changelog, fastestmirror, nethserver_events, presto
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-base/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-updates/mirrorlist.txt
nethserver-base | 3.6 kB 00:00
nethserver-base/primary_db | 376 kB 00:02
nethserver-updates | 4.1 kB 00:00
nethserver-updates/primary_db | 286 kB 00:01
repo id repo name status
centos-base CentOS-6 Base 0
centos-updates CentOS-6 Updates 0
nethserver-base NethServer 6.6 base 327
nethserver-updates NethServer 6.6 updates 223
repolist: 550


(Artem Fedai) #7

yum install yum-utils
and try to check for
yum update


#8

]# yum install yum-utils
Loaded plugins: changelog, fastestmirror, nethserver_events, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-base


]# yum update
Loaded plugins: changelog, fastestmirror, nethserver_events, presto
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-base


ifcfg-eth0 contains

DEVICE=eth0
BOOTPROTO=static
DEVICE=eth0
GATEWAY=192.168.1.254
HWADDR=52:54:00:BA:D1:72
IPADDR=192.168.1.68
NETMASK=255.255.255.0
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
USERCTL=no

I am using at&t uverse for internet


(Artem Fedai) #9

cat /etc/yum.repos.d/CentOS-Base.repo
maybe U have twice enebled repo


#10

I made no configuration changes to the server files. The error came up after a fresh install from the iso.

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled = 0

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

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled = 0

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

(Artem Fedai) #11

Try :
yum clean all
rm -f /var/lib/rpm/__db*
rpm --rebuilddb


#12

]# yum clean all
Loaded plugins: changelog, fastestmirror, nethserver_events, presto
Cleaning repos: centos-base centos-updates nethserver-base nethserver-updates
Cleaning up Everything
0 delta-package files removed, by presto

]# rm -f /var/lib/rpm/__db*


]# rpm --rebuilddb


I still get the error on the Software Center page


(Artem Fedai) #13

I see it seems to be a error in Repo , we disabled CenOS base in /etc/yum.repos.d/NethServer.repo and was able to update .


(Jose G Jimenez S ) #14

U-verse is dhcp server?


(Artem Fedai) #15

#16

I edited /etc/yum.repos.d/NethServer.repo

[centos-base]
name=CentOS-$releasever Base
#mirrorlist=http://mirrorlist.nethserver.org/$distroversion/centos?release=$releasever&repo=os&arch=$basearch
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
enablegroups=0

[centos-updates]
name=CentOS-$releasever Updates
#mirrorlist=http://mirrorlist.nethserver.org/$distroversion/centos?release=$releasever&repo=updates&arch=$basearch
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
enablegroups=0

(Artem Fedai) #17

@jgjimenezs , what was happend between Testing repo and Updates , package of VPN failed …


#18

yes, i have it as dhcp


(Jose G Jimenez S ) #19

Yes. and I saw it before, but the gateway is 192.168.1.254, is the true ip?

A&AT Router:

DHCP Server

IP start: 192.168.1.1
IP end: 192.168.1.254

Gateway: IP ROUTER


(Jose G Jimenez S ) #20

I will install the VPN packets to check the error