Ask Your Question
0

Can't install ros-kinetic-opencv3

asked 2019-04-25 13:35:48 -0500

Yash gravatar image

updated 2019-04-26 03:53:22 -0500

gvdhoorn gravatar image

I am trying to install opencv3 using terminal. After saying

sudo apt-get update

i tried

sudo apt-get install ros-kinetic-opencv3

But i am getting this error and called: can't find file to patch.

Downloading kernel sources...
Reading package lists...
Picking 'linux-signed-hwe' as source package instead of 'linux-image-4.15.0-46-generic'
Need to get 12,3 kB of source archives.
Get:1 http://de.archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-48.51~16.04.1 (dsc) [1.829 B]
Get:2 http://de.archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-48.51~16.04.1 (tar) [10,4 kB]
gpgv: Signature made Fr 05 Apr 2019 13:57:42 CEST using RSA key ID 70E1162B
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./linux-signed-hwe_4.15.0-48.51~16.04.1.dsc
dpkg-source: info: extracting linux-signed-hwe in linux-signed-hwe-4.15.0
dpkg-source: info: unpacking linux-signed-hwe_4.15.0-48.51~16.04.1.tar.xz
WFetched 12,3 kB in 0s (34,0 kB/s)
: Can't drop privileges for downloading as file 'linux-signed-hwe_4.15.0-48.51~16.04.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
grep: drivers/media/usb/uvc/uvc_driver.c: No such file or directory
INFO: No Intel RealSense(TM) cameras are currently supported.
Patching uvcvideo sources...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

|diff --git a/drivers/media/usb/uvc/Makefile b/drivers/media/usb/uvc/Makefile
|index c26d12fdb8f4..d86cf22155d1 100644
|--- a/drivers/media/usb/uvc/Makefile
|+++ b/drivers/media/usb/uvc/Makefile
File to patch:
edit retag flag offensive close merge delete

Comments

I moved the title of your question to the body and re-titled your question to something that's shorter. If you feel that this was incorrect, please feel free to change it. In my experience, it's easier to read/understand questions as such.

jayess gravatar imagejayess ( 2019-04-25 14:21:11 -0500 )edit

That is alright. Thanks.

Yash gravatar imageYash ( 2019-04-26 01:33:15 -0500 )edit

From the output I have the idea that your system has "bigger" problems than not being able to install OpenCV3. Did you install the turtlebot2 packages? That could explain the problem with the realsense camera kernel module.

gvdhoorn gravatar imagegvdhoorn ( 2019-04-26 03:54:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-15 06:58:34 -0500

fish24 gravatar image

updated 2019-08-15 11:30:31 -0500

jayess gravatar image

Hi. I had a similar problem with ROS recently. This is how I solved it: After I have seen "File to patch" I pressed Ctrl+C and then I had the reason of the error:

File to patch: ^Cdpkg: error processing package ros-kinetic-librealsense (--configure):
 subprocess installed post-installation script was interrupted
dpkg: dependency problems prevent configuration of ros-kinetic-realsense-camera:
 ros-kinetic-realsense-camera depends on ros-kinetic-librealsense; however:
  Package ros-kinetic-librealsense is not configured yet.

dpkg: error processing package ros-kinetic-realsense-camera (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-bringup:
 ros-kinetic-turtlebot-bringup depends on ros-kinetic-realsense-camera; however:
  Package ros-kinetic-realsense-camera is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-bringup (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot:
 ros-kinetic-turtlebot depends on ros-kinetic-turtlebot-bringup; however:
  Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-kinetic-turtlebot-teleop:
 ros-kinetic-turtlebot-teleop depends on ros-kinetic-turtlebot-bringup; however:
  Package ros-kinetic-turtlebot-bringup is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot-teleop (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
 ros-kinetic-librealsense
 ros-kinetic-realsense-camera
 ros-kinetic-turtlebot-bringup
 ros-kinetic-turtlebot

I used: sudo dpkg --purge <the packages which could not be processed> And then:

sudo apt install debian-keyring linux-source-4.15.0

(4.15.0 is the kernel version)

Hope it helped!

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2019-04-25 13:35:48 -0500

Seen: 160 times

Last updated: Aug 15