[Unresolved] APT installation of Turtlebot on ROS Kinetic on Docker breaks dependencies

Bug

Installing the Turtlebot package on ROS Kinetic on Docker with APT not only breaks the dependency of the apt package, but also makes it impossible to remove.

Reproduction method

apt install ros-kinetic-turtlebot

I get the following error message:

(Omission)
Setting up ros-kinetic-librealsense (1.12.1-0xenial-20191214-013909+0000) ...
libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/5.4.0-47-generic/modules.dep.bin'
modinfo: ERROR: Module alias uvcvideo not found.
dpkg: error processing package ros-kinetic-librealsense (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up ros-kinetic-openni2-camera (0.4.2-0xenial-20200828-073848+0000) ...
Setting up ros-kinetic-openni2-launch (0.4.2-0xenial-20200828-152806+0000) ...
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
Setting up ros-kinetic-turtlebot-capabilities (2.4.2-0xenial-20200828-061349+0000) ...
Setting up ros-kinetic-turtlebot-description (2.4.2-0xenial-20200828-060112+0000) ...
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-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
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.
 ros-kinetic-turtlebot depends on ros-kinetic-turtlebot-teleop; however:
  Package ros-kinetic-turtlebot-teleop is not configured yet.

dpkg: error processing package ros-kinetic-turtlebot (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu11.2) ...
Processing triggers for dbus (1.10.6-1ubuntu3.6) ...
Processing triggers for systemd (229-4ubuntu21.28) ...
Errors were encountered while processing:
 ros-kinetic-librealsense
 ros-kinetic-realsense-camera
 ros-kinetic-turtlebot-bringup
 ros-kinetic-turtlebot-teleop
 ros-kinetic-turtlebot
E: Sub-process /usr/bin/dpkg returned an error code (1)

Attempt to delete. sudo apt remove ros-kinetic-turtlebot

The following error occurs and it cannot be deleted.

Setting up ros-kinetic-librealsense (1.12.1-0xenial-20191214-013909+0000) ...
libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/5.4.0-47-generic/modules.dep.bin'
modinfo: ERROR: Module alias uvcvideo not found.
dpkg: error processing package ros-kinetic-librealsense (--configure):
 subprocess installed post-installation script returned error exit status 1
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-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.2) ...
Errors were encountered while processing:
 ros-kinetic-librealsense
 ros-kinetic-realsense-camera
 ros-kinetic-turtlebot-bringup
 ros-kinetic-turtlebot-teleop
E: Sub-process /usr/bin/dpkg returned an error code (1)

Recommended Posts

[Unresolved] APT installation of Turtlebot on ROS Kinetic on Docker breaks dependencies
Docker installation on CentOS 6
Docker installation on WSL2