-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install ROS package "ros-kinetic-librealsense" on Ubuntu 16.04.5 #2402
Comments
Hello @mikaelarguedas ,
The dkms for librealsense2 is backward-compatible with all devices librealsense1 supported as well. |
@ev-mp Thanks for the quick response! I faced this issue as I wanted to simulate the turtlebot in Gazebo (I do not have access to realsense hardware). As Would it be possible to have a fallback behavior during the installation so that it prints a warning if the kernel version is not a supported one (but not fail to install) ? or is it preferable to make a request for the turtlebot packages to remove the optional dependency on @tfoote FYI |
Looking at the LTS Kernel schedule https://wiki.ubuntu.com/Kernel/Support#LTS_Kernel_Support_Schedule 4.4 is the kernel version for 16.04.0 installations. According to @mikaelarguedas It looks like we haven't started failing on the buildfarm as it's images are still running 16.04.04 which targets uses kernel 4.13 but I suspect the next time they get refreshed we'll switch to 16.04.05 and things will start breaking on the buildfarm too. Likewise any new user who downloads and installs xenial now will get 16.04.05 by default. And as this is a core package installed by default in many metapackages including the TurtleBot we need to make sure that it's installable by default on our primary supported platform Xenial. If we cannot make this install by default and just work we'll have to strip the dependency which would be a pain and would significantly degrade the user experience for realsense users. |
Can the postinst script be updated to check the kernel version and avoid this error on newer kernels? |
It looks like there's a solution to 4.15 kernel support in #2498 how can we get this into the ROS repositories so that we can keep librealsense as part of the common installers and not fail to install on 16.04.5? |
I just got a chance to reproduce this on a fresh 16.04.5 installation and got the following.
So it did fail to install but didn't block the installer and I could continue on to install the turtlebot packages on top. |
@mikaelarguedas Here is the reason why ros-kinetic-librealsense.postinst fails: systemd/systemd#8153 |
Some interesting output (18.04 host):
(as mentioned by @lucaswerkmeister)
|
[Realsense Customer Engineering Team Comment] Please check back on RS github later, or subscribe to RS news. There is not much update for now. We are going to close this one for now. |
Any news on this? |
I'm facing this too, while installing ros-kinetic-turtlebot-stage! Any update on this? `Preparing to unpack .../ros-kinetic-turtlebot-stage_2.2.3-0xenial-20190608-162035-0800_amd64.deb ... dpkg: error processing package ros-kinetic-realsense-camera (--configure): dpkg: error processing package ros-kinetic-turtlebot-bringup (--configure): No apport report written because the error message indicates its a followup error from a previous failure. ros-kinetic-turtlebot-stage depends on ros-kinetic-turtlebot-bringup; however: dpkg: error processing package ros-kinetic-turtlebot-stage (--configure): OS - Ubuntu 16.04.4 LTS |
I'm close to being able to put together a pull request. initrdAs the kernel module is not need to support filesystem access, I don't think it needs to be available at bootup so I would change
Source
so
however since the GPG key isn't being verified
maybe the installer should just use git
There can also be a permissions issue as Signed Kernel
is because everything after 4.8.x uses a signed kernel and
and the "source package" for AFAIK needs to be replaced with something like
headerslinux-headers-4.15.0-64-generic So the package.xml should probably depend on Format count is offThe current logic detects 5 formats, I think this is a typo with Current StatusConfirmation of what repo/branch to make a pull request against would be helpful, I think it is this one. The closest to building I have gotten so far is $ apt install linux-image-unsigned-4.15.0-65-generic
$ apt install linux-headers-generic dkms linux-headers-4.15.0-65-generic linux-headers-4.4.0-165-generic linux-headers-4.4.0-165 linux-headers-4.15.0-65
$ apt-get download ros-kinetic-librealsense
$ dpkg --unpack ros-kinetic-librealsense_1.12.1-0xenial-20190607-170900-0800_amd64.deb
$ patch /usr/src/uvcvideo-1.1.1-3-realsense/dkms-pre-build.sh << 'EOF'
39c39
< apt-get source linux-image-${kernelver} | egrep -v '^ ' || true
---
> apt-get source linux-image-unsigned-${kernelver} | egrep -v '^ ' || true
79c79
< patch -p1 < ${PATCH}
---
> patch -p1 < ${PATCH} || true
EOF
$ dpkg --configure ros-kinetic-librealsense
AFAIK the package.xml format doesn't have an option for conditional dependencies I tried to see if the dkms installer logic for |
@RealSense-Customer-Engineering @RealSenseCustomerSupport Can we get an update on this? |
@LucidOne, @sanjay-nag @tfoote , @KaleabTessera , mikaelarguedas - |
Thanks @ev-mp for the follow-up Great to know a fix is out! I since changed OS so didn't get a chance to test the fix |
I also have issues with installing ros-kinetic-librealsense on my ubuntu kernel 4.15.0-112-generic. I already installed librealsense2-dkms, which worked. However, when I want to install ros-kinetic-librealsense, it asks for patches:
I found uvc_video.c and other files under
|
Unable to install the debian package
ros-kinetic-librealsense
on Ubuntu 16.04.5Step to reproduce:
Error message:
Additional information:
Installation works on the ROS buildfarm using:
The text was updated successfully, but these errors were encountered: