jetsonhacks / installJetsonBot

Turtlebot based robot using a NVIDIA Jetson TK1
7 stars 9 forks source link

E: Sub-process /usr/bin/dpkg returned an error code (1) #1

Open aysegulucar2016 opened 6 years ago

aysegulucar2016 commented 6 years ago

Dear Jetsonhacks,

I am using jetson Tx1 ( 64-bit L4T 24.2 (Ubuntu 16.04 based) operating system on the NVIDIA Jetson TX ) and am instaling turtlebot. However I received a lot of errors. Could you please help me?

Setting up ros-kinetic-librealsense (1.12.1-0xenial-20180223-115111-0800) ... modinfo: ERROR: Module 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-navigation: ros-kinetic-turtlebot-navigation depends on ros-kinetic-turtlebot-bringup; however: Package No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already ros-kinetic-turtlebot-bringup is not configured yet.

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

dpkg: error processing package ros-kinetic-turtlebot-gazebo (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.23-0ubuntu10) ... Errors were encountered while processing: ros-kinetic-librealsense ros-kinetic-realsense-camera ros-kinetic-turtlebot-bringup ros-kinetic-turtlebot-navigation ros-kinetic-turtlebot-gazebo E: Sub-process /usr/bin/dpkg returned an error code (1)

jetsonhacks commented 6 years ago

How did you install librealsense? Does the camera work with the Intel tools? Which RealSense camera are you using?

aysegulucar2016 commented 6 years ago

I am not using real sense camera. I have kinect. I did not install real sense camera.

I tried to install turtlebot. Now at the other all installations not turtlebot, the same error appears.

jetsonhacks commented 6 years ago

It looks like they added support for the RealSense cameras a year after these scripts are written. If I am reading the package correctly, you should be able to remove the line:

realsense_camera

In the file turtlebot_bringup/package.xml and then rebuild everything.

aysegulucar2016 commented 6 years ago

Many thanks for reply. I remeoved realsense_camera

in the file turtlebot_bringup/package.xml.

However, how and in which folder will I make the rebuild process? I think that I dont understant exactly. I dont want to distrupt the other softwares in TX1.

jetsonhacks commented 6 years ago

$ cd ~/jetsonbot $ source devel/setup.bash $ catkin_make

These are elementary ROS commands which you should become familiar.

aysegulucar2016 commented 6 years ago

Many thanks for all replys. I remeoved realsense_camera in /opt/ros/kinetic/share/turtlebot_bringup/package.xml

I did the below commands also. $ cd ~/jetsonbot sudo rm -rf build devel $ source devel/setup.bash $ catkin_make

However, I received same error. Even I am receiving same error runnning sudo apt-get upgrade even.

ubuntu@tegra-ubuntu:~/jetsonbot$ sudo apt-get install -f ros-kinetic-turtlebot-bringup Reading package lists... Done Building dependency tree
Reading state information... Done ros-kinetic-turtlebot-bringup is already the newest version (2.4.2-0xenial-20180417-145333-0800). The following packages were automatically installed and are no longer required: apt-clone archdetect-deb dmeventd dmraid dpkg-repack firefox-locale-en gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common kpartx kpartx-boot libdebian-installer4 libdevmapper-event1.02.1 libdmraid1.0.0.rc16 liblockfile-bin liblockfile1 liblvm2app2.2 liblvm2cmd2.02 libmircommon5 libparted-fs-resize0 libreadline5 lockfile-progs lvm2 os-prober pmount python-urlgrabber python3-icu python3-pam rdate ros-kinetic-urdf-parser-plugin snap-confine ubiquity-casper ubiquity-ubuntu-artwork ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up ros-kinetic-librealsense (1.12.1-0xenial-20180223-115111-0800) ... modinfo: ERROR: Module 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-navigation: ros-kinetic-turtlebot-navigation depends on ros-kinetic-turtlebot-bringup; however: Package No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because MaxReports is reached already No apport report written because MaxReports is reached already ros-kinetic-turtlebot-bringup is not configured yet.

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

dpkg: error processing package ros-kinetic-turtlebot-gazebo (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.23-0ubuntu10) ... Errors were encountered while processing: ros-kinetic-librealsense ros-kinetic-realsense-camera ros-kinetic-turtlebot-bringup ros-kinetic-turtlebot-navigation ros-kinetic-turtlebot-gazebo E: Sub-process /usr/bin/dpkg returned an error code (1)

KaiSWang commented 6 years ago

I have exactly same problem...

KG-khangelani commented 1 year ago

Try this way. I fixed my issue with trying to remove Mariadb giving me the same error. I tried all the other ways this seemed to work. Just replace the mariadb with ros-kinetic.

sudo apt purge mariadb* -y | sudo apt purge mysql* -y
sudo apt autoremove -y | sudo apt autoclean -y
sudo rm -R /usr/share/Mariad* | sudo rm -R /usr/share/Mysq*
sudo apt-get install mariadb-server
sudo apt update

Hope this helps✨