cartographer-project / cartographer_ros

Provides ROS integration for Cartographer.
Apache License 2.0
1.66k stars 1.21k forks source link

Dependencies problem with qtbase5-dev #1105

Closed narutojxl closed 5 years ago

narutojxl commented 5 years ago

similar question to https://github.com/googlecartographer/cartographer_ros/issues/263 My system is ubuntu14.04.5, ROS is indigo, kernel is Linux PC-11 4.4.0-31-generic. ROS repositories is deb http://packages.ros.org/ros/ubuntu trusty main, i don't want to upgrade my system. Because when i upgrade my system, my WiFi module crashed can not work normally. When i run rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y to install cartographer_ros dependencies, output is here:

The following packages have unmet dependencies: qtbase5-dev : Depends: libgles2-mesa-dev but it is not going to be installed or libgles2-dev but it is not installable Depends: libqt5core5a (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5dbus5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5gui5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5network5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5printsupport5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5sql5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5test5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5widgets5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Depends: libqt5xml5 (= 5.2.1+dfsg-1ubuntu14) but 5.2.1+dfsg-1ubuntu14.3 is to be installed Recommends: libqt5opengl5-dev (= 5.2.1+dfsg-1ubuntu14) but it is not going to be installed E: Unable to correct problems, you have held broken packages. ERROR: the following rosdeps failed to install apt: command [sudo -H apt-get install -y qtbase5-dev] failed adv@PC-11:~/jxl_carto_ws$

when i install qtbase5-dev with aptitude, output says that there are some confilicts:

Accept this solution? [Y/n/q/?] q Abandoning all efforts to resolve these dependencies. Abort. adv@PC-11:~/jxl_carto_ws$

when i sudo apt-get install libgl1-mesa-dev-lts-trusty according to ros indigo install link(http://wiki.ros.org/indigo/Installation/Ubuntu) to fix dependency issues, output is:

Any suggestions???

narutojxl commented 5 years ago

According to this link [https://packages.ubuntu.com/en/trusty/amd64/qtbase5-dev/download](Download Page for qtbase5-dev), You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this, deb http://security.ubuntu.com/ubuntu trusty-security main, then sudo apt-get update , it output like this:

The following packages have unmet dependencies: qtbase5-dev : Depends: libgles2-mesa-dev or libgles2-dev but it is not installable 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 E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. ERROR: the following rosdeps failed to install apt: command [sudo -H apt-get install -y qtbase5-dev] failed

And then, according to this link https://packages.ubuntu.com/trusty/libgles2-mesa-dev, install libgles2 with sudo apt-get install libgles2-mesa-dev-lts-xenial, and then again run rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y, All required rosdeps installed successfully.