The error occurred during proceeding with step "m103-vagrant-env$ vagrant provision"

Hello, I got the error message below while “m103-vagrant-env$ vagrant provision”
Can you please let me know any solution to fix the issue?

mongod-m103: Reading package lists...
mongod-m103: Building dependency tree...
mongod-m103: Reading state information...
mongod-m103: libsasl2-2 is already the newest version.
mongod-m103: libgssapi-krb5-2 is already the newest version.
mongod-m103: libssl1.0.0 is already the newest version.
mongod-m103: libstdc++6 is already the newest version.
mongod-m103: snmp is already the newest version.
mongod-m103: 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
mongod-m103: + install_mongod
mongod-m103: + echo 'Install MongoDB Enterprise'
mongod-m103: Install MongoDB Enterprise
mongod-m103: + sudo apt-get install --force-yes -y mongodb-enterprise
mongod-m103: Reading package lists...
mongod-m103: Building dependency tree...
mongod-m103: Reading state information...
mongod-m103: E
mongod-m103: :
**mongod-m103: Unable to locate package mongodb-enterprise**

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

C:\Users\bkim\M103\m103-vagrant-env>
C:\Users\bkim\M103\m103-vagrant-env>

vagrant ssh is working, but I got ‘command not found’ from ‘validate_box’,
New release ‘16.04.6 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

Last login: Fri Feb 7 17:01:26 2020 from 10.0.2.2
vagrant@m103:~ validate_box validate_box: command not found vagrant@m103:~

Thanks,
Brian

This error could be caused by a couple of things:

  1. VPN
  2. Corporate Network
  3. Firewall
  4. Slow WiFi
  5. Anti-virus
1 Like

Hi @BEOM_77926,

As I can see you are making progress in the course. Can you please confirm the issue and how did you resolve it so that it can help other users as well ?

Thanks,
Shubham Ranjan
Curriculum Services Engineer

Hello,

I think it has been fixed.

I’ve added google nameservers to conf file after installing
resolvconf on Ubuntu. And then mongodb enterprise has been installed
successfully.

Thank you very much for the advice.

Brian

vagrant up

The same error occurred

vagrant ssh

  1. Install the resolvconf package.
sudo apt install resolvconf
  1. Edit /etc/resolvconf/resolv.conf.d/head and add the following:
# Make edits to /etc/resolvconf/resolv.conf.d/head.
nameserver 8.8.4.4
nameserver 8.8.8.8
  1. Restart the resolvconf service.
sudo service resolvconf restart

vagrant provision

confirm vagrant@m103:~$ validate_box

1 Like

Hi @BEOM_77926,

Thank you so much for sharing the detailed solution.

Happy Learning :slight_smile:

Shubham Ranjan
Curriculum Services Engineer