Robotics StackExchange | Archived questions

Installing ROS 2 on Raspberry Pi 3

Hi,

I'm trying to install ROS 2 on Raspberry Pi 3 with Xenomai. I am from Brazil, so I must to change the repository server in "/etc/apt/sources.list" file to "deb http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi" to install the programs on the system. I follow the procedures for installing in the following link:

https://github.com/ros2/ros2/wiki/Real-Time-Programming

However, when trying to install the "development tools and ROS tools", the following messages occur:

root@raspberrypi:/home/pi # sudo apt update && sudo apt install -y
build-essential git python3-colcon-common-extensions python3-pip
python-rosdep python3-vcstoll wget
Hit http://archive.raspberrypi.org jessie InRelease
Ign http://repo.ros2.org jessie InRelease
Ign http://repo.ros2.org jessie Release.gpg
Ign http://repo.ros2.org jessie Release
Hit http://archive.raspbian.org jessie InRelease
Get:1 http://archive.raspbian.org jessie/main armhf Packages [9,537 kB]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Err http://repo.ros2.org jessie/main amd64 Packages
  404  Not Found
Err http://repo.ros2.org jessie/main arm64 Packages
  404  Not Found
Ign http://repo.ros2.org jessie/main Translation-en_US
Ign http://repo.ros2.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_US
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:2 http://archive.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:3 http://archive.raspbian.org jessie/non-free armhf Packages [84.2 kB]
Get:4 http://archive.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://archive.raspbian.org jessie/contrib Translation-en_US
Ign http://archive.raspbian.org jessie/contrib Translation-en
Ign http://archive.raspbian.org jessie/main Translation-en_US
Ign http://archive.raspbian.org jessie/main Translation-en
Ign http://archive.raspbian.org jessie/non-free Translation-en_US
Ign http://archive.raspbian.org jessie/non-free Translation-en
Ign http://archive.raspbian.org jessie/rpi Translation-en_US
Ign http://archive.raspbian.org jessie/rpi Translation-en
Fetched 9,666 kB in 37s (259 kB/s)
W: Failed to fetch
http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-amd64/Packages
 404  Not Found

W: Failed to fetch
http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-arm64/Packages
 404  Not Found

E: Some index files failed to download. They have been ignored, or old
ones used instead.

Can you give me a hint how to solve it?

Thanks!

I follow the instructions for setup sources that lead to here: https://github.com/ros2/ros2/wiki/Linux-Install-Debians#setup-sources. Now, when I tried execute "sudo apt update && sudo apt install curl" again, receive this message:

    root@raspberrypi:/home/pi/Downloads/ros2-linux # sudo apt update && sudo apt install curl
Ign http://repo.ros2.org jessie InRelease                                                                                  
Get:1 http://archive.raspbian.org jessie InRelease [14.9 kB]                                                                
Ign http://repo.ros2.org jessie Release.gpg                                                                              
Ign http://repo.ros2.org jessie Release                                                                            
Get:2 http://archive.raspbian.org jessie/main armhf Packages [9,536 kB]          
Hit http://archive.raspberrypi.org jessie InRelease                                                                            
Hit http://archive.raspberrypi.org jessie/main armhf Packages                                                                  
Hit http://archive.raspberrypi.org jessie/ui armhf Packages                                                                    
Get:3 http://archive.raspbian.org jessie/contrib armhf Packages [43.3 kB]                                                      
Get:4 http://archive.raspbian.org jessie/non-free armhf Packages [84.2 kB]                                                      
Get:5 http://archive.raspbian.org jessie/rpi armhf Packages [1,356 B]                                                          
Err http://repo.ros2.org jessie/main amd64 Packages                                                                            
  404  Not Found
Err http://repo.ros2.org jessie/main arm64 Packages                                                                            
  404  Not Found
Ign http://repo.ros2.org jessie/main Translation-en_US                                                                          
Ign http://repo.ros2.org jessie/main Translation-en                                                                            
Ign http://archive.raspberrypi.org jessie/main Translation-en_US                                                                
Ign http://archive.raspberrypi.org jessie/main Translation-en                                                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US                                                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en                                                                    
Ign http://archive.raspbian.org jessie/contrib Translation-en_US                                                                
Ign http://archive.raspbian.org jessie/contrib Translation-en                                                                  
Ign http://archive.raspbian.org jessie/main Translation-en_US
Ign http://archive.raspbian.org jessie/main Translation-en
Ign http://archive.raspbian.org jessie/non-free Translation-en_US
Ign http://archive.raspbian.org jessie/non-free Translation-en
Ign http://archive.raspbian.org jessie/rpi Translation-en_US
Ign http://archive.raspbian.org jessie/rpi Translation-en
Fetched 9,680 kB in 36s (262 kB/s)
W: Failed to fetch http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-arm64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Asked by matheus.pinto on 2018-07-19 11:07:32 UTC

Comments

note that building from source will be challenging as Jessie is quite older than our supported platforms so you will nee to compile packages such as Python and CMake from source. If you use Raspbian Stretch it should be more straight forward.

Asked by marguedas on 2018-07-31 16:13:31 UTC

Regarding the apt repo: the ros2 apt repo has only xenial and bionic so it is expected that Jessie is not found. You can use packages.ros.org instead that has entries for debian Jessie and Stretch as well. See "Setup your sources.list" of this page http://wiki.ros.org/lunar/Installation

Asked by marguedas on 2018-07-31 16:15:23 UTC

Finally I don't expect the method of using rosdep to install all the dependencies to work out of the box as we didnt provide rosdep rules for these platforms as they are not targeted

Asked by marguedas on 2018-07-31 16:16:18 UTC

Answers

Both ROS 2 distros (Bouncy, Ardent) mention in the wiki that they are only providing Debian packages for Ubuntu (Bouncy for Bionic, Ardent for Xenial). So there are neither Debian packages available for Debian Jessie nor for any ARM platform. You can either build ROS 2 from source or try the aarch64 fat archive provided.

Asked by Dirk Thomas on 2018-07-19 12:27:58 UTC

Comments

Hi Dirk,

Thanks for your reply! I tried install by fat archive. However, when I tried install rosdep, the apt dont find it:

sudo apt install -y python-rosdep
E: Unable to locate package python-rosped

Any suggest?

Asked by matheus.pinto on 2018-07-19 15:17:16 UTC

Have you added the apt repo following the instructions? Also your error msg contains a spelling error indicating that you didn't copy-n-pasted it - may something wrong in the command?

Asked by Dirk Thomas on 2018-07-19 15:31:07 UTC

I follow the instructions for setup sources that lead to here: https://github.com/ros2/ros2/wiki/Linux-Install-Debians#setup-sources. Now, when I tried execute "sudo apt update && sudo apt install curl" again, receive this message:

    root@raspberrypi:/home/pi/Downloads/ros2-linux # sudo apt update && sudo apt install curl
Ign http://repo.ros2.org jessie InRelease                                                                                  
Get:1 http://archive.raspbian.org jessie InRelease [14.9 kB]                                                                
Ign http://repo.ros2.org jessie Release.gpg                                                                              
Ign http://repo.ros2.org jessie Release                                                                            
Get:2 http://archive.raspbian.org jessie/main armhf Packages [9,536 kB]          
Hit http://archive.raspberrypi.org jessie InRelease                                                                            
Hit http://archive.raspberrypi.org jessie/main armhf Packages                                                                  
Hit http://archive.raspberrypi.org jessie/ui armhf Packages                                                                    
Get:3 http://archive.raspbian.org jessie/contrib armhf Packages [43.3 kB]                                                      
Get:4 http://archive.raspbian.org jessie/non-free armhf Packages [84.2 kB]                                                      
Get:5 http://archive.raspbian.org jessie/rpi armhf Packages [1,356 B]                                                          
Err http://repo.ros2.org jessie/main amd64 Packages                                                                            
  404  Not Found
Err http://repo.ros2.org jessie/main arm64 Packages                                                                            
  404  Not Found
Ign http://repo.ros2.org jessie/main Translation-en_US                                                                          
Ign http://repo.ros2.org jessie/main Translation-en                                                                            
Ign http://archive.raspberrypi.org jessie/main Translation-en_US                                                                
Ign http://archive.raspberrypi.org jessie/main Translation-en                                                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US                                                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en                                                                    
Ign http://archive.raspbian.org jessie/contrib Translation-en_US                                                                
Ign http://archive.raspbian.org jessie/contrib Translation-en                                                                  
Ign http://archive.raspbian.org jessie/main Translation-en_US
Ign http://archive.raspbian.org jessie/main Translation-en
Ign http://archive.raspbian.org jessie/non-free Translation-en_US
Ign http://archive.raspbian.org jessie/non-free Translation-en
Ign http://archive.raspbian.org jessie/rpi Translation-en_US
Ign http://archive.raspbian.org jessie/rpi Translation-en
Fetched 9,680 kB in 36s (262 kB/s)
W: Failed to fetch http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-arm64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

Asked by matheus.pinto on 2018-07-19 17:04:13 UTC

Comments

Please don't use an answer to provide more information about your question. This isn't a forum. Please update your question with this information instead.

Asked by jayess on 2018-07-19 17:09:21 UTC