...
POST No. 2406945
ros-kinetic-map-server - install error - libsdl-image1.2-dev and libsdl1.2-dev dependency
2018-09-02 12:15:21 senake

I am a newbie trying to install ROS on my laptop ready for use with a new Turtlebot3. Unfortunately, I am stuck on an error on step 6.1.3.


ros-kinetic-map-server : Depends: libsdl-image1.2-dev but it is not going to be installed Depends: libsdl1.2-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.


I did a new install of Ubuntu 16.0.4 on my laptop. I have searched for answers to try and install the dependencies, but nothing works. The command and output are as below.


=========================


sa@sa-X230:/$ sudo apt-get install ros-kinetic-joy ros-kinetic-teleop-twist-joy ros-kinetic-teleop-twist-keyboard ros-kinetic-laser-proc ros-kinetic-rgbd-launch ros-kinetic-depthimage-to-laserscan ros-kinetic-rosserial-arduino ros-kinetic-rosserial-python ros-kinetic-rosserial-server ros-kinetic-rosserial-client ros-kinetic-rosserial-msgs ros-kinetic-amcl ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro ros-kinetic-compressed-image-transport ros-kinetic-rqt-image-view ros-kinetic-gmapping ros-kinetic-navigation ros-kinetic-interactive-markers Reading package lists... Done Building dependency tree
Reading state information... Done ros-kinetic-compressed-image-transport is already the newest version (1.9.5-0xenial-20180809-161709-0800). ros-kinetic-compressed-image-transport set to manually installed. ros-kinetic-interactive-markers is already the newest version (1.11.4-0xenial-20180809-172616-0800). ros-kinetic-interactive-markers set to manually installed. ros-kinetic-rqt-image-view is already the newest version (0.4.13-0xenial-20180809-163145-0800). ros-kinetic-rqt-image-view set to manually installed. ros-kinetic-urdf is already the newest version (1.12.12-0xenial-20180809-153440-0800). ros-kinetic-urdf set to manually installed. ros-kinetic-xacro is already the newest version (1.11.3-0xenial-20180809-153500-0800). ros-kinetic-xacro set to manually installed.

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies. ros-kinetic-map-server : Depends: libsdl-image1.2-dev but it is not going to be installed Depends: libsdl1.2-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.

2018-09-02 12:15:21
senake
2018-09-03 12:01:22 Will Son

Hello,


You might have some dependency problems.

Please try below command again even if you already did it.

sudo apt-get update

Please let us know how it works.

If you need a direct support from TurtleBot3 developers, please create an issue ticket on TurtleBot3 GitHub issue page.

Thank you.

2018-09-03 12:01:22
willson
2018-09-03 19:51:47 Senake

Hello there,


I just tried that (see output below) -


sa@sa-ThinkPad-X230:/$ sudo apt-get update
[sudo] password for sen: 
Hit:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://packages.ros.org/ros/ubuntu xenial InRelease
Reading package lists... Done  


...but it came up with the same error when I tried the last step again -


sa@sa-ThinkPad-X230:/$ sudo apt-get install ros-kinetic-joy ros-kinetic-teleop-twist-joy ros-kinetic-teleop-twist-keyboard ros-kinetic-laser-proc ros-kinetic-rgbd-launch ros-kinetic-depthimage-to-laserscan ros-kinetic-rosserial-arduino ros-kinetic-rosserial-python ros-kinetic-rosserial-server ros-kinetic-rosserial-client ros-kinetic-rosserial-msgs ros-kinetic-amcl ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro ros-kinetic-compressed-image-transport ros-kinetic-rqt-image-view ros-kinetic-gmapping ros-kinetic-navigation ros-kinetic-interactive-markers
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-kinetic-compressed-image-transport is already the newest version (1.9.5-0xenial-20180809-161709-0800).
ros-kinetic-compressed-image-transport set to manually installed.
ros-kinetic-interactive-markers is already the newest version (1.11.4-0xenial-20180809-172616-0800).
ros-kinetic-interactive-markers set to manually installed.
ros-kinetic-rqt-image-view is already the newest version (0.4.13-0xenial-20180809-163145-0800).
ros-kinetic-rqt-image-view set to manually installed.
ros-kinetic-urdf is already the newest version (1.12.12-0xenial-20180809-153440-0800).
ros-kinetic-urdf set to manually installed.
ros-kinetic-xacro is already the newest version (1.11.3-0xenial-20180809-153500-0800).
ros-kinetic-xacro set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 ros-kinetic-map-server : Depends: libsdl-image1.2-dev but it is not going to be installed
                          Depends: libsdl1.2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sa@sa-ThinkPad-X230:/$

2018-09-03 19:51:47
senake
2018-09-03 20:11:01 Senake

I am not sure if it is any help, but because the current version of Ubuntu is 18.0.4, I couldn't use the link in your user manual to install Ubuntu 16.0.4.  Instead, I used the following links:


1. Link to obtain the ISO image of Ubuntu 16.0.4 from http://releases.ubuntu.com/16.04/. The ISO image is at:

   http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-amd64.iso


2. Instructions to create A bootable USB:

https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows?_ga=2.157960632.304329474.1535820947-665810113.1535820947#3


The download link in your manual from page (http://emanual.robotis.com/docs/en/platform/turtlebot3/pc_setup/) is https://www.ubuntu.com/download/alternative-downloads. The 16.0.4 link leads to this page http://cdimage.ubuntu.com/netboot/16.04/?_ga=2.105723779.1610410129.1535970811-665810113.1535820947 which has more links, not an ISO image as would be expected from the URL. The amd64 link which I used (as I was installing Ubuntu over a previous Windows 7) then led to this page - http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/installer-amd64/current/images/netboot/ - which just had directories and files, not and ISO image.


 Ubuntu is now the only OS on this machine as I overwrote the old Window 7 install.

2018-09-03 20:11:01
senake
2018-09-03 22:28:57 Kurt

Sorry, I am probably not much help here... But wonder how up to date the ISO image was...


So if it were me, the next things I would do include:


1) As @will son mentioned doing: sudo apt-get update


2) Followed by: sudo apt-get upgrade

Note: you might have to wait for some automatic update functions to complete or try to kill them off. 


3) Then depending on results there, I might try; sudo apt-get dist-upgrade


4) followed by sudo apt-get autoremove


If 3) and 4) did anything I might try repeating 1) and 2)  until it says nothing to update...


Not sure what state you are an in?  Do you have any of the ROS installed? 


If it were me, I would maybe go to the ROS install page: http://wiki.ros.org/kinetic/Installation/Ubuntu

And probably install the FULL desktop:

sudo apt-get install ros-kinetic-desktop-full

And then install any of the pieces that were missing... That is you could probably reissue the command that failed, hopefully everything was resolved in above steps, or could piece meal and do
sub-pieces of the command...

Or sometimes have had luck, by setting up my workspace, and have all of the sources for it setup and then use, rosdep to install the pieces that I am missing: http://wiki.ros.org/rosdep
Maybe with the stuff in section 2.3.2 where you:
cd ~/catkin_ws
rosdep install --from-paths src --ignore-src -r -y

But again it has been a long time since I tried rosdep to do this.

Good luck, hope something in here works for you! If not, I would do as suggested by @Will Son and issue an issue to the Turtlebot 3 github project... You might want to also include
any additional information you can, like what the results are of the command: uname -a

Kurt

 


2018-09-03 22:28:57
kurteck
2018-09-04 09:17:59 Will Son

I don't think there are multiple different images on ubuntu.com.

You'd probably end up with the identical file if you download the iso image via utorrent.

Like Kurt mentioned above, I'd remove all ROS related packages and try with the given commands from eManual.

During installation, I used to enter "sudo apt-get update" and "sudo apt-get upgrade" a few times because some of the packages were failed to install due to some network issue.

Even sometimes I had to install the problematic package on the other day, but I think it is less likely to happen frequently.

If this doesn't work again, the next option I'd choose is the manual ROS installation.

You can also ask for a help in larger communities like ROS discourse.

Thank you.

2018-09-04 09:17:59
willson
2018-09-04 16:11:16 Senake

Hi Kurt & Will Son,


All of the Ubunto and non dependent ROS packages seem up to date - see below - so I have logged an issue on Turtlebot 3 github project.


Please can you let what terminal command I need to remove the ROS related packages so that I can retry the eManual steps again? I will also take a look at the manual ROS installation...


sa@sa-ThinkPad-X230:~$ sudo apt-get update
Hit:1 http://gb.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://packages.ros.org/ros/ubuntu xenial InRelease
Reading package lists... Done
sa@sa-ThinkPad-X230:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
sa@sa-ThinkPad-X230:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
sa@sa-ThinkPad-X230:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
sa@sa-ThinkPad-X230:~$ sudo apt-get install ros-kinetic-desktop-full
Reading package lists... Done
Building dependency tree      
Reading state information... Done
ros-kinetic-desktop-full is already the newest version (1.3.2-0xenial-20180810-032811-0800).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
sa@sa-ThinkPad-X230:~$
comment
2018-09-04 17:51:54 willson
You may refer to this page for uninstalling ROS.
https://www.howtoinstall.co/en/ubuntu/xenial/ros-desktop?action=remove
2018-09-04 17:51:54
willson
2018-09-04 16:11:16
senake
2018-09-04 16:32:26 Senake

Hi Kurt & Will Son,


I just looked at the manual ROS install content. I already ran 'sudo apt-get install ros-kinetic-desktop-full', so I tried to just install the map-server package, but it failed with the same error - see below.


Rather than hunting around in the dark, I think that it would be best to start  again with a clean Ubuntu install...Please could you provide either more complete steps as to how I can use the Ubuntu link in your eManual or a link to a Ubuntu ISO image that will work with the Turtlebot 3 ROS packages?


== OUTPUT FROM MANUAL ROS INSTALL OF MAP SERVER - DID NOT WORK ==


sa@sa-ThinkPad-X230:~$ sudo apt-get install ros-kinetic-map-server
[sudo] password for sen:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 ros-kinetic-map-server : Depends: libsdl-image1.2-dev but it is not going to be installed
                          Depends: libsdl1.2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 

2018-09-04 16:32:26
senake
2018-09-04 16:46:09 Senake

Kurt & Will Son,


As the terminal commands seem to indicate that I have an up to date Ubuntu installation, I was also just wondering if the error might be caused by dependency on an OLDER Ubuntu library.


This post on the ROS forums - https://answers.ros.org/question/288210/ros-kinetic-navigation-installation-problem/ - relating to the failure of the navigation' package (no map server)  seems to have been caused by dependency of an older 16.0.4 library. Could this be the case for the map-server ROS package?



2018-09-04 16:46:09
senake
2018-09-04 17:58:45 Will Son

Senake,


Your issue ticket was accepted and our TurtleBot3 developer will help you to solve the issue, so please keep track on the GitHub issue page.

As you already provided a lot of information, we'll try to reproduce this case and see what went wrong.

If any outdated manual contents are found, it'll be updated right away.

Thank you.

2018-09-04 17:58:45
willson
Reply
웹에디터 시작 웹 에디터 끝