apt update fails / cannot install pkgs: key not working?
When trying to install packages, I'm seeing errors similar to the following:
Err:1 http://packages.ros.org/ros/ubuntu <YOUR_UBUNTU_VERSION>/main amd64 <SOME_ROS_PKG> amd64 0.13.3-0xenial-20190320-132757-0800
404 Not Found [IP: 64.50.236.52 80]
While running sudo apt update
I see the following error:
W: GPG error: http://packages.ros.org <YOUR_UBUNTU_VERSION> InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5523BAEEB01FA116
and or:
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/<YOUR_UBUNTU_VERSION>/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
W: Some index files failed to download. They have been ignored, or old ones used instead.
While running sudo apt install
I see the following error:
WARNING: The following packages cannot be authenticated! <some_pkgs>
and also sometimes (just an example, could be any package or ROS version):
E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-realtime-tools/ros-kinetic-realtime-tools_1.11.1-0xenial-20190320-130942-0800_amd64.deb 404 Not Found [IP: 64.50.236.52 80]
This completely prevents me from installing ROS (and related) packages.
Related: #q324350.