Joy package 404 error

Hi all,

I am following the tutorial on operating Leo with a Joystick and I cannot download the dependencies. I obtain a 404 error for the specific package it tries to download. Manually going to the URL also shows the package does not exist anymore or has been renamed. Here is a screenshot

It reads:

E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-melodic-joy/ros-melodic-joy_1.14.0-1bionic.20210112.180610_amd64.deb 404 Not Found

but within the URL there are other packages and one of them is an updated date of the one it’s trying to find:

the following package appears:
ros-melodic-joy_1.14.0-1bionic.20210505.032331_amd64.deb

It seems to be the updated version, but the apt-get does not read it and defaults to a file that no longer exists. Any help would be appreciated!!

Run:

sudo apt update

first. If it completes without any error, then run rosdep install again.

For anyone that may find this thread in the future, I followed
Blazej suggestions and I obtain the following error and solved it with the line below it.

prozzi@CAEE-pave:~/ros_ws2/src/leo_joy_example$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://packages.ros.org/ros/ubuntu bionic InRelease [4680 B]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:2 http://packages.ros.org/ros/ubuntu bionic InRelease
  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1814 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2161 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [334 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1132 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [426 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1743 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [31.0 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6988 B]
Fetched 7904 kB in 14s (555 kB/s)
rosdep
Reading package lists... Done
Building dependency tree
Reading state information... Done
348 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/bionic/InRelease  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.

To fix this issue users need to update the public key used for ROS apt repositories. To do this for ROS 1 installations one needs to run a single command, namely:

curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

Last set of error I have is that I’m getting the following error:

prozzi@CAEE-pave:~/ros_ws2/devel$ rostopic list

/battery
/camera/camera_info
/camera/image_raw
/camera/image_raw/compressed
/client_count
/cmd_vel
/connected_clients
/diagnostics
/joint_states
/joy
/joy/set_feedback
/raspicam_node/parameter_descriptions
/raspicam_node/parameter_updates
/rosout
/rosout_agg
/servo1/angle
/servo1/pwm
/servo2/angle
/servo2/pwm
/servo3/angle
/servo3/pwm
/servo4/angle
/servo4/pwm
/servo5/angle
/servo5/pwm
/servo6/angle
/servo6/pwm
/system/reboot
/system/shutdown
/tf
/tf_static
/wheel_odom
prozzi@CAEE-pave:~/ros_ws2/devel$ rosrun joy joy_node
[ERROR] [1627935539.160830700]: Couldn’t open joystick /dev/input/js0. Will retry every second.

I’m connected to an Xbox controller to the remote PC, built the package on the PC and I am connected to Leo as follows:

export ROS_IP=10.0.0.166
export ROS_MASTER_URI=http://master.localnet:11311