Robotics StackExchange | Archived questions

Need help install gazebo

I am using jetson tx1. I could not install the full package of ros indigo only the base package so now I have to install gazebo separately. I am following the steps to install from tutorial but I have problem. First I don't have curl

ubuntu@tegra-ubuntu:~/Documents$ curl -ssL http://get.gazebosim.org | sh
bash: curl: command not found

So I tried to install curl but I also have problem when install this:

ubuntu@tegra-ubuntu:~/Documents$ sudo apt-get install curl
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 curl : Depends: libcurl3 (= 7.35.0-1ubuntu2.10) but 7.35.0-1ubuntu2.6 is to be installed
 libpcre3-dev : Depends: libpcre3 (= 1:8.31-2ubuntu2.3) but 2:8.35-7.1ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ubuntu@tegra-ubuntu:~/Documents$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libpcre3-dev : Depends: libpcre3 (= 1:8.31-2ubuntu2.3) but 2:8.35-7.1ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

I don't know what should I do next. Please give me an advice.

Thank you very much.

Edit 1: Below is what happen if I install Pre-Built Debians

ubuntu@tegra-ubuntu:~/Documents$ sudo apt-get install ros-indigo-gazebo-ros-pkgs ros-indigo-gazebo-ros-control
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-indigo-gazebo-ros-pkgs
E: Unable to locate package ros-indigo-gazebo-ros-control

Edit 2: Alternative Installation (http://gazebosim.org/tutorials?tut=install_ubuntu&cat=install) When I come to: sudo apt-get install gazebo7 I don't think I should install gazebo7 because it says that Indigo should go with gazebo2. Then I got

ubuntu@tegra-ubuntu:~/Documents$ sudo apt-get install gazebo2  2
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gazebo2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gazebo2' has no installation candidate

Asked by Thang Nguyen on 2016-11-18 02:02:17 UTC

Comments

Have you tried the Alternate Installation? It does not require curl.

Asked by JoshMarino on 2016-11-18 22:49:37 UTC

Josh, I have just added the edit 2 about alternative installation. It says gazebo7 but I would like to install gazebo2.

Asked by Thang Nguyen on 2016-11-19 01:40:24 UTC

Gazebo2 is from packages.ros.org whereas the link I gave is for packages.osrfoundation.org, Gazebo 4-7. Might be able to follow same steps, but replacing the source location.

Asked by JoshMarino on 2016-11-19 18:01:08 UTC

Answers

I would like to know about the operating system. Are you using Linux 14.04 or what? I have gone through experience in Raspberry Pi 3. Initially, I installed debian package and I was facing lots of problems. Then I removed it and installed ubuntu mate and in it, I installed everything the desktop package of ROS and it worked perfectly. Jetson TX1 is a high specification system and it would run with no problem even if you install Desktop package. Installing individual packages will always create problems because many times you will need many different packages. That's my experience.

Asked by Abdul Mannan on 2016-11-19 02:27:47 UTC

Comments

Yes, I am using Ubuntu 14.04. So you mean that I should reinstall ROS full? The problem is at the time I install ROS, I cannot install the full package version, I don't remember why. I may have to try it again.

Asked by Thang Nguyen on 2016-11-19 08:15:15 UTC

Yes. Install Desktop version and please first install ubuntu mate. Otherwise, desktop package option will not be available. All the best.

Asked by Abdul Mannan on 2016-11-21 10:07:16 UTC

Dr Abdul: I believe that I installed the desktop version but I have not installed ubuntu mate yet. Maybe this the reason.

Asked by Thang Nguyen on 2016-11-21 11:26:34 UTC

Dr Abdul: I don't understand why I need Ubuntu mate. Could you please tell me more detail about this?

Asked by Thang Nguyen on 2016-11-22 07:54:44 UTC

I have a bad experience about different operating system. In particular, I used Raspbian. It was not good. It was giving me lots of errors when I was using ROS and used to take a really long time to build package. When I used ubuntu mate, I did not have these problems.

Asked by Abdul Mannan on 2016-11-25 01:33:24 UTC