Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vagrant: Error getting repository data for C7.6.1810-base, repository not found

I'm following below steps to create mesos -

https://dcos-e2e-cli.readthedocs.io/en/latest/dcos-vagrant-cli.html

when I run the command minidcos vagrant create ./dcos_generate_config.sh --agents 0 I get below error.

Error getting repository data for C7.6.1810-base, repository not found
==> dcos-e2e-918351cd-9d88-47c6-9b72-b2f5194302fc-master-0: Checking for guest additions in VM...
Error creating cluster.
Try "minidcos vagrant doctor" for troubleshooting help.

How to resolve that error?

like image 446
Rajkumar Natarajan Avatar asked Jan 10 '19 03:01

Rajkumar Natarajan


2 Answers

There is now a new version of vagrant-vbguest which fixes the issue (0.17.2) - also, there is also a new version of minidcos which includes a doctor check that at least this version is installed.

like image 94
Adam Dangoor Avatar answered Nov 15 '22 09:11

Adam Dangoor


As suggested by Tim Harper in comment, I have updated the file ~/.vagrant.d/gems/2.4.2/gems/vagrant-vbguest-0.17.1/lib/vagrant-vbguest/installers/centos.rb.

In that file I have commented out:

# cmd = "yum install -y kernel-devel-`uname -r` --enablerepo=C#{rel}-base --enablerepo=C#{rel}-updates"

and added:

cmd = "yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updates"

Then it worked.

like image 31
Rajkumar Natarajan Avatar answered Nov 15 '22 09:11

Rajkumar Natarajan