0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[未解決] Docker上のROS KineticにTurtlebotをAPTインストールすると依存関係が壊れる

Last updated at Posted at 2020-09-20

不具合

Docker上のROS KineticにTurtlebotのパッケージをAPTでインストールすると、aptパッケージの依存関係が壊れるだけでなく、removeもできなくなる。

再現方法

apt install ros-kinetic-turtlebot

以下のエラーメッセージが出る。

(前略)
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)

削除を試みる。
sudo apt remove ros-kinetic-turtlebot

以下のエラーになり削除できない。

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)

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?