Ask Your Question
0

Cannot install packages (trying to resolve: could not find pkg cfg file provided by X)

asked 2019-06-13 15:27:50 -0600

Gi99 gravatar image

updated 2019-06-14 02:56:26 -0600

gvdhoorn gravatar image

Hello, I am runnig ROS kinetic on an Uuntu 16.04 and I downloaded a repository from github and pasted it into the src directory of my catkin_ws, but whenever I run "catkin_make" I always get this error:

-- Could not find the required component 'controller_manager'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "controller_manager" with any of the following names:

    controller_managerConfig.cmake
    controller_manager-config.cmake

  Add the installation prefix of "controller_manager" to CMAKE_PREFIX_PATH or
  set "controller_manager_DIR" to a directory containing one of the above
  files.  If "controller_manager" provides a separate development package or
  SDK, be sure it has been installed.

I tried downloading the controller_manager package by downloading ros_control with the following command from ros.org:

sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers

However, when I try this command, I'm getting these errors:

Err:1 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-hardware-interface amd64 0.13.3-0xenial-20190320-132757-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:2 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-interface amd64 0.13.3-0xenial-20190320-133652-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:3 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-realtime-tools amd64 1.11.1-0xenial-20190320-130942-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:4 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-diff-drive-controller amd64 0.13.5-0xenial-20190320-171041-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:5 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-ackermann-steering-controller amd64 0.13.5-0xenial-20190320-175427-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:6 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-combined-robot-hw amd64 0.13.3-0xenial-20190320-133622-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:7 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-manager-msgs amd64 0.13.3-0xenial-20180824-100448-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:8 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-manager amd64 0.13.3-0xenial-20190320-134400-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:9 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-manager-tests amd64 0.13.3-0xenial-20190320-153143-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:10 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-combined-robot-hw-tests amd64 0.13.3-0xenial-20190320-154237-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:11 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-control-toolbox amd64 1.17.0-0xenial-20190320-143943-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:12 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-forward-command-controller amd64 0.13.5-0xenial-20190320-140150-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:13 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-effort-controllers amd64 0.13.5-0xenial-20190320-144804-0800
  404  Not Found [IP: 64.50.236.52 80]
Err:14 http ...
(more)
edit retag flag offensive close merge delete

Comments

Have you tried doing what it says and running apt-get update? Have you updated your keys for the package repositories?

Geoff gravatar imageGeoff ( 2019-06-13 18:30:17 -0600 )edit

I'm having a similar issue anbd --fix missing doens't work either

tomsepe gravatar imagetomsepe ( 2019-06-16 00:17:35 -0600 )edit

I get this:

Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Err:6 http://packages.ros.org/ros/ubuntu xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654 Hit:11 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 230 kB in 1s (203 kB/s)
Reading package lists... Done 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 xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654 W: Failed to fetch http://packages.ros.org/ros/ubuntu/di... The following signatures couldn't be verified because the p

tomsepe gravatar imagetomsepe ( 2019-06-16 00:17:43 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-14 02:06:57 -0600

gvdhoorn gravatar image

updated 2019-06-14 02:55:43 -0600

As @Geoff hints at, this is most likely caused by the key switch.

Refer to #q325039.

I downloaded a repository from github and pasted it into the src directory of my catkin_ws, but whenever I run "catkin_make" I always get this error:

Please note that just cloning a single repository into your workspace will not work in most cases. You'll have to make sure to have installed all required dependencies.

See the answer to #q252478 for an example workflow.

edit flag offensive delete link more

Comments

I tried what @Geoff said and it worked! I updated my keys and used sudo apt-get update. The problem with #q252478 workflow is that I am following a script and when I use git clone (...) it asks for an username and a password that I don't have. But if I had the password and username, I think it would've worked. Thanks a lot!

Gi99 gravatar imageGi99 ( 2019-06-17 12:01:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-06-13 15:27:50 -0600

Seen: 224 times

Last updated: Jun 14