Mongod-m103: Unable to locate package mongodb-enterprise

Hi, i have some trouble with vagrant up --provision,
The execution stopped when try to install mongodb-enterprise.

{code}
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.
{code}

any help?

Thz

Hi @Jose_73328,

Are you still facing this issue?

Please let me know, if you need any further help.

Kindest Regards,
Sonali

HI Yes. i have this issue and i am stuck here for few days.

i am intalling on windows. please help

i believe i have issues in the following function:

function update_repo(){
echo “Install MongoDB Enterprise Repository”

set to track mongodb development (rc)

echo “deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6

echo “Update Repositories”
sudo apt-get update -y
echo “Installing MongoDB Enterprise Dependencies”
sudo apt-get install -y libgssapi-krb5-2 libsasl2-2 libssl1.0.0 libstdc++6 snmp
}

i get unable to location package mongodb-enterprise error

Hi @sailesh_57749,

Can you please share the version of your Windows OS, vagrant and VirtualBox that you installed on your system?

Meanwhile, please replace the following line in provision-mongod file:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

with the following line:

 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5

Once you have done this, please try to reprovision the box and let us know how it goes.

Please get back if the issue still persists.

Thanks,
Muskan

Hi Muskan,

thanks for the reply. mongo and phython seems to work fine. now i have issue at the following location:

curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/products.json.tgz -o products.json.tgz

above errors out saying “the ssh command responed with non zero exit status”

Hi @sailesh_57749,

Can you please try the below solution for manually performing the steps which worked for another user and let me know if this is of any help to you?

  1. From “~/university/m103/m103-vagrant-env/provision-mongod” simulate these 2 functions:

function download_dataset() {
echo “Downloading Dataset”

curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/products.json.tgz -o products.json.tgz

tar -xzvf products.json.tgz -C /dataset
rm -rf products.json.tgz
}

function download_validators() {
echo “Downloading Validation Scripts”

curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/m103_validation.tgz -o m103_validation.tgz

tar -xzvf m103_validation.tgz -C /var/m103/validation
rm -rf m103_validation.tgz
echo “#!/bin/bash

curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/m103_validation.tgz -o m103_validation.tgz

sudo tar -xzvf m103_validation.tgz -C /var/m103/validation
rm -rf m103_validation.tgz” > /var/m103/validation/download_validators
echo “#!/bin/bash
echo -n ‘m103 rocks’ | openssl sha256 | sed -e s/(stdin)=.//” > /var/m103/validation/validate_box
chmod -R +x /var/m103/validation/
chown root:root /var/m103/validation
echo “Done: Downloaded Validation Scripts”
}

  1. Download products:

curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/products.json.tgz -o products.json.tgz

  1. Download validation scripts:

curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/m103_validation.tgz -o m103_validation.tgz

  1. Copy the 2 files:

products.json.tgz
m103_validation.tgz

FROM: ~/university/m103/m103-vagrant-env/
TO: ~//university/m103/m103-vagrant-env/dataset

  1. These 2 files now showed up inside the VM in data set directory:

vagrant@m103:/dataset$ ls -ltr
-rw-r–r-- 1 vagrant vagrant 92216793 Mar 5 2018 products.json.tgz
-rw-r–r-- 1 vagrant vagrant 20966321 Apr 13 16:37 m103_validation.tgz

  1. untar validation scripts:

vagrant@m103:/dataset$ sudo tar -xzvf m103_validation.tgz -C /var/m103/validation

  1. Untar products file, to be later used in one of the labs:

vagrant@m103:/dataset$ sudo tar -xzvf products.json.tgz

  1. Get the hash key for validate_box as nelow:

vagrant@m103:/dataset$ echo -n ‘m103 rocks’ | openssl sha256 | sed -e s/(stdin)=.//

  1. Create the validate_box file with that key:

vagrant@m103:/dataset$ cat /var/m103/validation/validate_box

#!/bin/bash
echo -n 6445a3f8b6f1cc5873cf1ac94194903444602708d4eb189d42b6e65ca594d80d

  1. Change perms & ownership:

vagrant@m103:/dataset$ sudo chmod -R +x /var/m103/validation/
vagrant@m103:/dataset$ sudo chown root:root /var/m103/validation

Thanks,
Muskan