The tutorial is pretty well written,
- Install the docker:
wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_17.03.1~ce-0~ubuntu-xenial_amd64.deb sudo dpkg -i docker-ce_17.03.1~ce-0~ubuntu-xenial_amd64.deb sudo systemctl start docker sudo usermod -aG docker $(whoami) # Log out and then back in.
2. Clone and setup repo (don’t forget to substitute YOUR_GITHUB_USERNAME):
git clone email@example.com:RobotLocomotion/drake.git cd drake git remote set-url origin firstname.lastname@example.org:YOUR_GITHUB_USERNAME/drake.git git remote add upstream email@example.com:RobotLocomotion/drake.git git remote set-url --push upstream no_push
3. Select the required dockerfile (with or without nvidia):
docker build -t drake -f setup/ubuntu/docker/xenial/Dockerfile.nvidia-cuda-8.0-devel-ubuntu16.04 . docker run -it drake bash
And then, if you are from a country such as Russia, then you can see, for example:
E: Failed to fetch https://drake-apt.csail.mit.edu/bionic/dists/bionic/InRelease 403 Forbidden [IP: 184.108.40.206 443] E: The repository 'https://drake-apt.csail.mit.edu/bionic bionic InRelease' is not signed.
If you put the URL into the browser – it will become a little more clear, Amazon is good:
But not here it was 🙂 To solve, you can suffer to install vpn, from which I actually started, but you can solve the problem a little easier. Steps:
- Remove the addition of the MIT repo (comment it). This happens when you install the necessary dependencies, namely in drake/setup/ubuntu/source_disctribution/install_prereqs.sh line 28-30.
kcov-35 from the installed dependencies. It is necessary to delete it from the packages-*.txt files alongthe same path. The remaining packages are successfully located in the default packages. kcovis needed to assess the coverage of repository code tests – not the most important thing. In principle, it is on a github. Probably at MIT it was adapted a little bit, once offered to download from their repository.
PS. If you are reading this after the MIT repo has been added, first remove it or simply turn it off:
Now the installation and further build should go without problems. Unless at me at build the computer once hung – it was necessary to restart.