Moveit-core_0.9.11-0xenial-20180423-163839-0800_amd64.deb 404 Not Found

Hello,

Trying to build a docker with ROS in it I’m finding that some packages are failing to download:

The suspects are:

E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-moveit-core/ros-kinetic-moveit-core_0.9.11-0xenial-20180423-163839-0800_amd64.deb  404  Not Found [IP: 140.211.166.134 80]

E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-object-recognition-ros/ros-kinetic-object-recognition-ros_0.3.7-0xenial-20180423-164053-0800_amd64.deb  404  Not Found [IP: 140.211.166.134 80]

E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-object-recognition-ros-visualization/ros-kinetic-object-recognition-ros-visualization_0.3.8-0xenial-20180423-165415-0800_amd64.deb  404  Not Found [IP: 140.211.166.134 80]

In the docker, just previously, a sudo apt-get update is ran… so I don’t think it’s me.

Full output: https://gist.github.com/awesomebytes/131300342016f407b9b7e4e504f57789

It appears that your sources are outdated. Looking at the state of the apt repository the last synced version of ros-kinetic-moveit-core_0.9.11-0xenial-20180514-044352-0800_amd64.deb (note that while the ROS package version is the same, the build timestamp is different.

I recommend having a look at docker best practices regarding apt-get: https://docs.docker.com/v17.09/engine/userguide/eng-image/dockerfile_best-practices/#run

Doing the update in the same RUN statement as the install should hopefully fix your problem:

RUN  apt-get update \
     && apt-get install -y ros-kinetic-moveit-core ... \
     && rm -rf /var/lib/apt/lists/*

HTH

1 Like

Thank you!
I was starting a completely new Docker image… the apt-get update was done just a moment before… weird.