librealsense: Unable to install ROS package "ros-kinetic-librealsense" on Ubuntu 16.04.5

Unable to install the debian package ros-kinetic-librealsense on Ubuntu 16.04.5

Step to reproduce:

$ docker pull ros:kinetic
$ docker run -it --rm ros:kinetic
# apt update && apt upgrade -y
# apt install ros-kinetic-librealsense

Error message:

/var/lib/dpkg/info/ros-kinetic-librealsense.postinst: 40: /var/lib/dpkg/info/ros-kinetic-librealsense.postinst: udevadm: not found
libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/4.15.0-34-generic/modules.dep.bin'
modinfo: ERROR: Module alias uvcvideo not found.

Additional information:

  • Kernel version: 4.15.0-34-generic
  • OS: Ubuntu 16.04.5 LTS

Installation works on the ROS buildfarm using:

  • Kernel Version: 4.4.0-1060-aws
  • Operating System: Ubuntu 16.04.4 LTS

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 16

Most upvoted comments

Some interesting output (18.04 host):

docker run -it --rm ubuntu:16.04 systemd-detect-virt
none
docker run -it --rm ubuntu:16.04 sh -c systemd-detect-virt
docker
docker run -it --rm ubuntu:16.04 bash -c systemd-detect-virt
none

(as mentioned by @lucaswerkmeister)

docker run -it --rm ubuntu:16.04 bash -c "systemd-detect-virt; true"
docker