install ROS on ubuntu14.04.3, depends errors - ubuntu-14.04

when I tried to install ROS in a 64-bit Ubuntu14.04.3 following this document, some problems occurred.
After I configured my Ubuntu repositories to allow "restricted," "universe," and "multiverse,I did this:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 0xB01FA116
then I entered:
sudo apt-get install ros-indigo-desktop-full
I got errors:
The following packages have unmet dependencies:
ros-indigo-desktop-full:i386 : Depends: ros-indigo-desktop:i386 but it is not going to be installed
Depends: ros-indigo-perception:i386 but it is not going to be installed
Depends: ros-indigo-simulators:i386 but it is not going to be installed
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
then I tried this to fix the depends:
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
It did not work.
Then I tried this :
sudo apt-get install libsdformat1
Still errors,
I tried this:
sudo apt-get install libgl1-mesa-dev-lts-utopic
I got many errors about i386 like this:
-mesa-dev-lts-utopic:i386 : Depends: mesa-common-dev-lts-utopic:i386 (= 10.3.2-0ubuntu1~trusty2) but it is not going to be installed
Depends: libgl1-mesa-glx-lts-utopic:i386 (= 10.3.2-0ubuntu1~trusty2) but it is not going to be installed
Depends: libdrm-dev:i386 (>= 2.4.52) but it is not going to be installed
Depends: libx11-dev:i386 but it is not going to be installed
Depends: libx11-xcb-dev:i386 but it is not going to be installed
I don't know why I got such errors, beacuse my ubuntu is 64 bit. What can I do next? Thanks.
And my second question is what is the different between ROS Indigo Igloo,ROS Jade Turtle and ROS Kinetic Kame, thanks.

ROS Kinetic Kame (latest), ROS Jade Turtle and ROS Indigo Igloo are different versions/distributions of ROS. Other distributions of ROS are:
ROS Hydro Medusa, ROS Groovy Galapagos, ROS Fuerte Turtle, ROS Electric Emys, ROS Diamondback, ROS C Turtle, ROS Box Turtle.
ROS Indigo is primarily targeted at Ubuntu 14.04 LTS. Indigo supports releasing, documenting and integration testing of catkin-based packages only. Previously, rosbuild-based packages were used which are also supported in ROS Indigo.
ROS jade Turtle is primarily targeted at Ubuntu 15.04 (Ubuntu LTS 14.04 Trusty also supported)
ROS Kinetic Kame is primarily targeted at Ubuntu 16.04 (Xenial) (Ubuntu 15.10 Wily and Debian Jessie also supported)
Now since you're using Ubuntu 14.04.3 64-bit, it is recommended that you install ROS Indigo.
If you're using it on a virtual drive, you can also download a pre-installed ROS distribution in Ubuntu from here.

I would recommend installing the listed dependencies (in the tutorial you are following) :
sudo apt-get install xserver-xorg-dev-lts-utopic
mesa-common-dev-lts-utopic libxatracker-dev-lts-utopic
libopenvg1-mesa-dev-lts-utopic libgles2-mesa-dev-lts-utopic
libgles1-mesa-dev-lts-utopic libgl1-mesa-dev-lts-utopic
libgbm-dev-lts-utopic libegl1-mesa-dev-lts-utopic
That should resolve your issues.

Related

Cannot install g++ on ubuntu 14.04.4 LTS (I have tried commands and software center)

I cannot install g++ on newly installed ubuntu 14.04.4 LTS.
When I use command sudo apt-get install g++, the terminal tell me:
cluster#cluster0-vm:~$ sudo apt-get install g++
[sudo] password for cluster:
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:
g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I changed the source, and tried again, failed too.
cluster#cluster0-vm:~$ sudo apt-get install g++
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:
g++:i386 : Depends: cpp:i386 (>= 4:4.7.3-1ubuntu10) but it is not going to be installed
Depends: gcc:i386 (>= 4:4.7.3-1ubuntu10) but it is not going to be installed
Depends: g++-4.7:i386 (>= 4.7.3-1~) but it is not going to be installed
Depends: gcc-4.7:i386 (>= 4.7.3-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I used the ubuntu software center to install g++, failed again......
Figure: Use ubuntu software center to install g++
This problem has been solved by changing another source.
I have tried 4 sources, and all of them have problems......OMG!
I think this will help:
sudo apt-get update
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get install g++
Also this could help:
sudo dpkg --purge g++# Try this first
sudo dpkg --purge --force-depends g++# Try this ONLY if the previous line fails
sudo apt-get clean g++# Remove g++ from the cache
sudo apt-get install g++# Download and install the appropriate version of g++
If I had to guess, I would say there are other libc6, libc-dev, etc..files that need updating before you can update the C's and G's.
It seems that if you install build essentials then it will correct the problem.
If you look up the files on the ubuntu packages site and look at the dependencies, then compare them to what is on your machine, I bet you find you have an update conflict due to incompatible dependency version somewhere.
You could manually download them individually at the bottom of the repository page (a small table) then double click the deb files and they will start to install if all of the dependencies and versions are met and compatible.
Think of it as "A depends on B which depends on C which depends on D......" being installed. to some infinity no avail. Its a nightmare when doing it that way. But does force you to respect Synaptic and the apt-get thorough and detailed process and compatibility check.
Best to start with build essentials though.

Unable to install libgtk2.0-dev on Raspberry Pi 2

I am trying to install libgtk2.0-dev on my Raspberry Pi 2 running on latest raspbian. When I use the command sudo apt-get install libgtk2.0-dev, I get the following dependency errors:
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:
libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried fixing the broken packages using sudo apt-get install -f, sudo apt-get update, sudo apt-get upgrade and then sudo apt-get install libgtk2.0-dev. It still didn't work. I tried apt-get install on the dependencies and their dependencies, but the result is the same. The solutions in link1 and link2 did not help either.
My source.list contains:
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi
Am I missing something in my source.list? How can I resolve this?
apt-cache policy libgtk2.0-dev libpango1.0-dev libcairo2-dev showed that the problem was with /etc/apt/sources.list.d/raspi.list.
raspi.list contained deb http://archive.raspberrypi.org/debian/ wheezy main. Changed wheezy to jessie, ran apt-get update and then running apt-get install libgtk2.0-dev worked.
Use aptitude instead:
sudo aptitude install libglib2.0-dev

Update libpq5 (>= 9.4~beta3) on Debian Wheezy

I want to upgrade my postgresql version, native 9.1 from debian wheezy to last 9.4 version.
I put the line
deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main
into
/etc/apt/sources.list.d/pgdg.list
then
apt-get update
apt-get upgrade
But when I try to apt-get install postgresql-9.4, I got the following error:
postgresql-9.4 : Depends: postgresql-client-9.4 but it is not going to be installed
So I try to install postgresql-client-9.4 and I got the following error:
postgresql-client-9.4 : Depends: libpq5 (>= 9.4~beta3) but 9.3.5-1.pgdg70+1 is to be installed
And I really don't know how to upgrade libpq5...
Thanks for help
You have to append 9.4 to repository line. From http://www.postgresql.org/about/news/1524 :
If you are using one of the release distributions of Debian or Ubuntu,
add this to your /etc/apt/sources.list.d/pgdg.list to have 9.4
available:
deb http://apt.postgresql.org/pub/repos/apt/ codename-pgdg main 9.4

can't install QT4 on linux Mint

I am trying to compile vpnshrew with CMAKE on linux mint.
However QT4 is missing and I have already tried everything with no success. The starting line it's this dependency error:
$ sudo apt-get install libqt4-core
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:
libqt4-core : Depends: libqt4-dbus (= 4:4.8.3+dfsg-0ubuntu3) but it is not going to be installed
Depends: libqt4-network (= 4:4.8.3+dfsg-0ubuntu3) but it is not going to be installed
Depends: libqt4-script (= 4:4.8.3+dfsg-0ubuntu3) but it is not going to be installed
Depends: libqt4-test (= 4:4.8.3+dfsg-0ubuntu3) but 4:4.8.3+dfsg-0ubuntu3.1 is to be installed
Depends: libqt4-xml (= 4:4.8.3+dfsg-0ubuntu3) but 4:4.8.3+dfsg-0ubuntu3.1 is to be installed
Depends: libqtcore4 (= 4:4.8.3+dfsg-0ubuntu3) but 4:4.8.3+dfsg-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
I have already tried lots of solutions. Namely
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update
Thanks in advance for any help.
Try sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui.

ubuntu 13.04 and g++

I had recently installed ubuntu 13.04 and I'm a new linux user but I am unable to compile g++ code.
It says
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
When I tried to install g++ using following statements
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
It says:
The following packages have unmet dependencies:
g++-4.8 : Depends: gcc-4.8 (= 4.8.1-2ubuntu1~13.04) but it is not going to be installed
Depends: libcloog-isl4 (>= 0.17) but it is not installable
Depends: libisl10 (>= 0.10) but it is not installable
E: Unable to correct problems, you have held broken packages.
Will appreciate your help.
For Ubuntu, the easiest way to get all the build tools including g++ is to
sudo apt-get install build-essential
I suggest you check AskUbuntu for more info.
You just do try "sudo apt-get install g++" in the command line?
so package manager will try to install missing package. Do not request specific version and You will be fine! It fails just because of specific version requirement.

Resources