ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Why can't I install usb-cam package at RPI3?

asked 2018-07-29 13:29:23 -0600

pskampas gravatar image

updated 2018-07-29 18:04:46 -0600

jayess gravatar image

Hello, I have installed Raspbian Stretch at my RPi3 and the ros_comm for the ROS Kinetic package (since it was the recommended one from the ros wiki). However, when I try to install any package the message I receive is "E: unable to locate package" . For example, I type at the terminal "sudo apt-get install ros-kinetic-usb-cam" and the message I receive is the above. Any suggestions about what I am doing wrong?


I have followed the instructions from this site:

$ rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall 
$ wstool init src kinetic-ros_comm-wet.rosinstall
edit retag flag offensive close merge delete


Can you detail exactly which ros_comm package you have installed? What is the exact package name?

I'm wondering whether you're running into wiki/UpstreamPackages.

gvdhoorn gravatar image gvdhoorn  ( 2018-07-29 15:45:01 -0600 )edit

I have followed the instructions from this site:

"$ rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall $ wstool init src kinetic-ros_comm-wet.rosinstall"

pskampas gravatar image pskampas  ( 2018-07-29 17:59:13 -0600 )edit

I am dealing with the same problem. Could you find any solution?

lusim gravatar image lusim  ( 2018-08-24 05:00:06 -0600 )edit

@lusim: which problem? The two answers already explain that if you've installed ROS from sources, you cannot use apt-get as the OP tries to do. One of the answers then goes on to detail how to start installing a pkg from sources (but the description is incomplete, see #q252478). If you're ..

gvdhoorn gravatar image gvdhoorn  ( 2018-08-24 05:51:44 -0600 )edit

.. experiencing specific problems with locating or building the pkg you're trying to install, please post a new question.

gvdhoorn gravatar image gvdhoorn  ( 2018-08-24 05:52:12 -0600 )edit

ok thank you. But is there another way to install ROS on a Raspberry Pi 3? I already tried some ways to install it but installing it from source was the only thing working for me. Having an alternative installation of ROS would actually solve the described problem.

lusim gravatar image lusim  ( 2018-08-27 04:51:38 -0600 )edit

Unfortunately I'm not an RPi user, so I can't really suggest anything.

Binary pkgs for ARM architectures are built for ARMv7 (hard-float) Ubuntu and ARMv8 Debian and Ubuntu. Perhaps that is something you can work with.

gvdhoorn gravatar image gvdhoorn  ( 2018-08-27 05:19:33 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-07-30 06:13:53 -0600

gvdhoorn gravatar image

If you installed everything from source, then you cannot use apt to install new packages.

You'll have to create an overlay workspace, place the sources of the new package in your new workspace, source your old workspace and then build your new workspace.

edit flag offensive delete link more

answered 2018-07-31 11:12:19 -0600

simbha gravatar image

updated 2018-07-31 11:14:13 -0600

@gvdhoorn is right if you have successfully installed the ROS then you can install the usb_cam by cloning the package from git.

  1. Create a catkin workspace by following the process here
  2. Clone the package from GitHub

    git clone

  3. Build and source your workspace and that's it.

edit flag offensive delete link more

Question Tools


Asked: 2018-07-29 13:29:23 -0600

Seen: 1,448 times

Last updated: Jul 31 '18