APM Planner install on linux ubuntu14 - dpkg dependency problem libflite1, libqt5core5a, libqt5gui5-gles, libstdc++6

I am trying install APM planner on linux 14.04. I have some dependency issues and not sure how to update the prerequisite files. I am installing APM planner using instructions from : http://ardupilot.org/planner2/docs/installation-for-linux.html

When I run the first command : sudo dpkg -i apmplanner*.deb I get the following print out.

I

Is there a way to update all these prerequisite files at once?

See error print out below

jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo dpkg -i apmplanner*.deb
Selecting previously unselected package apmplanner2.
(Reading database … 224404 files and directories currently installed.)
Preparing to unpack apmplanner2.deb …
Unpacking apmplanner2 (2.0.20) …
dpkg: dependency problems prevent configuration of apmplanner2:
apmplanner2 depends on libflite1 (>= 1.4-release-9~); however:
Version of libflite1:amd64 on system is 1.4-release-8ubuntu0.1.
apmplanner2 depends on libqt5core5a (>= 5.4.0); however:
Version of libqt5core5a:amd64 on system is 5.2.1+dfsg-1ubuntu14.3.
apmplanner2 depends on libqt5gui5 (>= 5.3.0) | libqt5gui5-gles (>= 5.3.0); however:
Version of libqt5gui5:amd64 on system is 5.2.1+dfsg-1ubuntu14.3.
Package libqt5gui5-gles is not installed.
apmplanner2 depends on libstdc++6 (>= 5.2); however:
Version of libstdc++6:amd64 on system is 4.8.4-2ubuntu1~14.04.3.

dpkg: error processing package apmplanner2 (–install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.54ubuntu1.1) …
Errors were encountered while processing:
apmplanner2

Those packages that you need for your build are in Ubuntu 16.04. Rather than go thru all the hassle of apt-pinning to grab specific packages out of a newer repository, I would recommend simply upgrading your Ubuntu install to 16.04LTS.

1 Like

Most of the documentation for installing:

Gazebo http://ardupilot.org/dev/docs/using-rosgazebo-simulator-with-sitl.html
SITL http://planner.ardupilot.com/dev/docs/setting-up-sitl-on-linux.html
DroneKit SITL http://python.dronekit.io/develop/sitl_setup.html
DroneKit http://planner.ardupilot.com/dev/docs/raspberry-pi-via-mavlink.html
Pixhawk SITL http://dev.px4.io/simulation-sitl.html
FlightGear

rMost of the documentation for installing those programs recommend ubuntu 14.04 LTS. Hence the reason I stuck with the older 14.04 Linux. I know sometimes documentation lags development (ie the documentation is out dated & inaccurate). Which of the above programs run on ubuntu 16 using the same installation instructions or other available instructions?

Once I update from ubuntu 14 to 16 , would I need to reinstall these programs ?

Thanks kindly

I don’t have any machines here running 14.04 at present so I can verify this, but if an apt-get update && apt-get upgrade doesn’t get you the newer versions of the libraries you need to run APM Planner2, you will have to upgrade to 16.04LTS. I have built from source and/or installed the pre-compiled .debs on both 32-bit and 64-bit and I know it works on Xenial. It also builds and runs fine on Debian Stretch. On Debian Jessie (stable branch) it returns the same errors you have noted.

The error messages you are getting is caused by your libs being an older version than what is required for the install. It looks like you are running 14.04.3 and the latest should be 14.04.5. So try:
sudo apt-get update && apt-get upgrade
and see if you get the required library versions. If it doesn’t work, then I’d recommend upgrading to 16.

The upgrade to 16.04 should be pretty painless, on a desktop system simply:
sudo do-release-upgrade

Do NOT use the GUI to try to upgrade from one LTS release to another unless you get the prompt after the first point release. Your upgrade will likely hang using the GUI.

Gazebo I don’t know. or PX4 you have to ask them

SITL works, I assume this means DroneKit and DroneKit SITL will also work.

APM Planner pre-built binaries are for 16.04, but its AP2 is compatible with 14.04 if you build the code yourself. You just need to install the developer dependencies for qt5 or easier again is to download and install the qt dev env from download.qt.io open the code in the QtCreator code edit and build.

There just isn’t enough people to work on builds for all systems so we target the most popular and unto date i.e. 16.04 LTS.

If you need any further help with APM Planner 2.0 I’m happy to help guide you in the right direction.

I have some i386 builds on my personal server that work on Ubuntu 15 or 16, or Debian Stretch

I’m working on a project using an AVR board for I/O with a 32-bit dual-core linux co-processor running APM Planner2 onboard the aircraft with WiFi/SSH et al. So I’m just archiving those on my personal server for now. But they are available for anybody that wants to run on 32-bit Debian-based systems.

I successfully ran: sudo apt-get update && sudo apt-get upgrade.

I tried manually updating my dependencies using :

sudo apt-get -f install libflite1
sudo apt-get -f install libqt5gui5
sudo apt-get -f install libstdc++6

etc

The terminal told me I have the latest versions already. But then goes on to say I have unsatisfied dependencies recommending I updtate libflite, dc++6, libqt5gui5 etc

Here is a quick print out.
Hopefully my newbiew questions helps someone else.

jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get update && sudo apt-get upgrade
[sudo] password for jh:
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://ca.archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Get:2 http://security.ubuntu.com trusty-security/main Sources [120 kB]
Get:3 http://ca.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://extras.ubuntu.com trusty Release.gpg
Get:4 http://security.ubuntu.com trusty-security/restricted Sources [4,064 B]
Get:5 http://security.ubuntu.com trusty-security/universe Sources [42.1 kB]
Get:6 http://security.ubuntu.com trusty-security/multiverse Sources [2,749 B]
Hit http://extras.ubuntu.com trusty Release
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [527 kB]
Hit http://extras.ubuntu.com trusty/main Sources
Get:8 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Hit http://ca.archive.ubuntu.com trusty-backports InRelease
Get:9 http://security.ubuntu.com trusty-security/universe amd64 Packages [136 kB]
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Get:10 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,995 B]
Hit http://ca.archive.ubuntu.com trusty Release.gpg
Get:11 http://security.ubuntu.com trusty-security/main i386 Packages [490 kB]
Hit http://extras.ubuntu.com trusty/main i386 Packages
Get:12 http://security.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Get:13 http://ca.archive.ubuntu.com trusty-updates/main Sources [382 kB]
Get:14 http://security.ubuntu.com trusty-security/universe i386 Packages [136 kB]
Get:15 http://security.ubuntu.com trusty-security/multiverse i386 Packages [5,159 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Get:16 http://ca.archive.ubuntu.com trusty-updates/restricted Sources [5,360 B]
Get:17 http://ca.archive.ubuntu.com trusty-updates/universe Sources [164 kB]
Get:18 http://ca.archive.ubuntu.com trusty-updates/multiverse Sources [7,126 B]
Get:19 http://ca.archive.ubuntu.com trusty-updates/main amd64 Packages [897 kB]
Get:20 http://ca.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en_CA
Get:21 http://ca.archive.ubuntu.com trusty-updates/universe amd64 Packages [374 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:22 http://ca.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.8 kB]
Get:23 http://ca.archive.ubuntu.com trusty-updates/main i386 Packages [858 kB]
Get:24 http://ca.archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:25 http://ca.archive.ubuntu.com trusty-updates/universe i386 Packages [376 kB]
Get:26 http://ca.archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.2 kB]
Hit http://ca.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://ca.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://ca.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://ca.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/main Sources
Hit http://ca.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://ca.archive.ubuntu.com trusty-backports/universe Sources
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://ca.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://ca.archive.ubuntu.com trusty Release
Hit http://ca.archive.ubuntu.com trusty/main Sources
Hit http://ca.archive.ubuntu.com trusty/restricted Sources
Hit http://ca.archive.ubuntu.com trusty/universe Sources
Hit http://ca.archive.ubuntu.com trusty/multiverse Sources
Hit http://ca.archive.ubuntu.com trusty/main amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/main i386 Packages
Hit http://ca.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://ca.archive.ubuntu.com trusty/universe i386 Packages
Hit http://ca.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://ca.archive.ubuntu.com trusty/main Translation-en_CA
Hit http://ca.archive.ubuntu.com trusty/main Translation-en
Hit http://ca.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://ca.archive.ubuntu.com trusty/restricted Translation-en
Hit http://ca.archive.ubuntu.com trusty/universe Translation-en_CA
Hit http://ca.archive.ubuntu.com trusty/universe Translation-en
Ign http://ca.archive.ubuntu.com trusty/multiverse Translation-en_CA
Ign http://ca.archive.ubuntu.com trusty/restricted Translation-en_CA
Fetched 4,750 kB in 10s (450 kB/s)
Reading package lists… Done
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:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is installed
E: Unmet dependencies. Try using -f.
jh@jh-Lenovo-Ideapad-Z50-70:~$

jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo dpkg -i apmplanner2*.deb
Selecting previously unselected package apmplanner2.
(Reading database … 256620 files and directories currently installed.)
Preparing to unpack apmplanner2.deb …
Unpacking apmplanner2 (2.0.20) …
dpkg: dependency problems prevent configuration of apmplanner2:
apmplanner2 depends on libflite1 (>= 1.4-release-9~); however:
Version of libflite1:amd64 on system is 1.4-release-8ubuntu0.1.
apmplanner2 depends on libqt5core5a (>= 5.4.0); however:
Version of libqt5core5a:amd64 on system is 5.2.1+dfsg-1ubuntu14.3.
apmplanner2 depends on libqt5gui5 (>= 5.3.0) | libqt5gui5-gles (>= 5.3.0); however:
Version of libqt5gui5:amd64 on system is 5.2.1+dfsg-1ubuntu14.3.
Package libqt5gui5-gles is not installed.
apmplanner2 depends on libstdc++6 (>= 5.2); however:
Version of libstdc++6:amd64 on system is 4.8.4-2ubuntu1~14.04.3.

dpkg: error processing package apmplanner2 (–install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.54ubuntu1.1) …
Errors were encountered while processing:
apmplanner2
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
libqt5script5 libqt5serialport5 libsdl2-2.0-0 linux-headers-4.4.0-31
linux-headers-4.4.0-31-generic linux-image-4.4.0-31-generic
linux-image-extra-4.4.0-31-generic
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
apmplanner2
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 90.7 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 257470 files and directories currently installed.)
Removing apmplanner2 (2.0.20) …
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.54ubuntu1.1) …
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo dpkg -i apmplanner2*.deb
Selecting previously unselected package apmplanner2.
(Reading database … 256620 files and directories currently installed.)
Preparing to unpack apmplanner2.deb …
Unpacking apmplanner2 (2.0.20) …
dpkg: dependency problems prevent configuration of apmplanner2:
apmplanner2 depends on libflite1 (>= 1.4-release-9~); however:
Version of libflite1:amd64 on system is 1.4-release-8ubuntu0.1.
apmplanner2 depends on libqt5core5a (>= 5.4.0); however:
Version of libqt5core5a:amd64 on system is 5.2.1+dfsg-1ubuntu14.3.
apmplanner2 depends on libqt5gui5 (>= 5.3.0) | libqt5gui5-gles (>= 5.3.0); however:
Version of libqt5gui5:amd64 on system is 5.2.1+dfsg-1ubuntu14.3.
Package libqt5gui5-gles is not installed.
apmplanner2 depends on libstdc++6 (>= 5.2); however:
Version of libstdc++6:amd64 on system is 4.8.4-2ubuntu1~14.04.3.

dpkg: error processing package apmplanner2 (–install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.54ubuntu1.1) …
Errors were encountered while processing:
apmplanner2
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get update && sudo apt-get upgrade
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://ca.archive.ubuntu.com trusty InRelease
Get:2 http://security.ubuntu.com trusty-security/main Sources [120 kB]
Get:3 http://ca.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:4 http://security.ubuntu.com trusty-security/restricted Sources [4,064 B]
Get:5 http://security.ubuntu.com trusty-security/universe Sources [42.1 kB]
Ign http://extras.ubuntu.com trusty InRelease
Get:6 http://security.ubuntu.com trusty-security/multiverse Sources [2,749 B]
Hit http://extras.ubuntu.com trusty Release.gpg
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [527 kB]
Hit http://ca.archive.ubuntu.com trusty-backports InRelease
Hit http://extras.ubuntu.com trusty Release
Hit http://ca.archive.ubuntu.com trusty Release.gpg
Get:8 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Hit http://extras.ubuntu.com trusty/main Sources
Get:9 http://security.ubuntu.com trusty-security/universe amd64 Packages [136 kB]
Get:10 http://ca.archive.ubuntu.com trusty-updates/main Sources [382 kB]
Get:11 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,995 B]
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Get:12 http://security.ubuntu.com trusty-security/main i386 Packages [490 kB]
Hit http://extras.ubuntu.com trusty/main i386 Packages
Get:13 http://security.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Get:14 http://security.ubuntu.com trusty-security/universe i386 Packages [136 kB]
Get:15 http://ca.archive.ubuntu.com trusty-updates/restricted Sources [5,360 B]
Get:16 http://security.ubuntu.com trusty-security/multiverse i386 Packages [5,159 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Get:17 http://ca.archive.ubuntu.com trusty-updates/universe Sources [164 kB]
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Get:18 http://ca.archive.ubuntu.com trusty-updates/multiverse Sources [7,126 B]
Get:19 http://ca.archive.ubuntu.com trusty-updates/main amd64 Packages [897 kB]
Get:20 http://ca.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:21 http://ca.archive.ubuntu.com trusty-updates/universe amd64 Packages [374 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en_CA
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:22 http://ca.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.8 kB]
Get:23 http://ca.archive.ubuntu.com trusty-updates/main i386 Packages [858 kB]
Get:24 http://ca.archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:25 http://ca.archive.ubuntu.com trusty-updates/universe i386 Packages [376 kB]
Get:26 http://ca.archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.2 kB]
Get:27 http://ca.archive.ubuntu.com trusty-updates/main Translation-en [435 kB]
Get:28 http://ca.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,661 B]
Get:29 http://ca.archive.ubuntu.com trusty-updates/restricted Translation-en [3,699 B]
Get:30 http://ca.archive.ubuntu.com trusty-updates/universe Translation-en [198 kB]
Hit http://ca.archive.ubuntu.com trusty-backports/main Sources
Hit http://ca.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://ca.archive.ubuntu.com trusty-backports/universe Sources
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://ca.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://ca.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://ca.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://ca.archive.ubuntu.com trusty Release
Hit http://ca.archive.ubuntu.com trusty/main Sources
Hit http://ca.archive.ubuntu.com trusty/restricted Sources
Hit http://ca.archive.ubuntu.com trusty/universe Sources
Hit http://ca.archive.ubuntu.com trusty/multiverse Sources
Hit http://ca.archive.ubuntu.com trusty/main amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://ca.archive.ubuntu.com trusty/main i386 Packages
Hit http://ca.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://ca.archive.ubuntu.com trusty/universe i386 Packages
Hit http://ca.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://ca.archive.ubuntu.com trusty/main Translation-en_CA
Hit http://ca.archive.ubuntu.com trusty/main Translation-en
Hit http://ca.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://ca.archive.ubuntu.com trusty/restricted Translation-en
Hit http://ca.archive.ubuntu.com trusty/universe Translation-en_CA
Hit http://ca.archive.ubuntu.com trusty/universe Translation-en
Ign http://ca.archive.ubuntu.com trusty/multiverse Translation-en_CA
Ign http://ca.archive.ubuntu.com trusty/restricted Translation-en_CA
Fetched 5,395 kB in 14s (376 kB/s)
Reading package lists… Done
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:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is installed
E: Unmet dependencies. Try using -f.
jh@jh-Lenovo-Ideapad-Z50-70:~$ apt-get -f install libflite1
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get -f install libflite1
Reading package lists… Done
Building dependency tree
Reading state information… Done
libflite1 is already the newest version.
libflite1 set to manually installed.
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is to be installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get-f install libflite1
sudo: apt-get-f: command not found
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get -f install libflite1
Reading package lists… Done
Building dependency tree
Reading state information… Done
libflite1 is already the newest version.
libflite1 set to manually installed.
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is to be installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get -f install libqt5gui5
Reading package lists… Done
Building dependency tree
Reading state information… Done
libqt5gui5 is already the newest version.
libqt5gui5 set to manually installed.
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is to be installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get -f install libstdc++6
Reading package lists… Done
Building dependency tree
Reading state information… Done
libstdc++6 is already the newest version.
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is to be installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
jh@jh-Lenovo-Ideapad-Z50-70:~$ sudo apt-get install libstdc++6
Reading package lists… Done
Building dependency tree
Reading state information… Done
libstdc++6 is already the newest version.
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
apmplanner2 : Depends: libflite1 (>= 1.4-release-9~) but 1.4-release-8ubuntu0.1 is to be installed
Depends: libqt5core5a (>= 5.4.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
Depends: libqt5gui5 (>= 5.3.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
jh@jh-Lenovo-Ideapad-Z50-70:~$ pwd

The library versions in the 14.04 repository don’t appear to be new enough to support the build you are trying to install. There’s two courses of action you can take
1:) Use apt-pinning: https://help.ubuntu.com/community/PinningHowto

2.) Upgrade your 14.04 install to 16.04LTS

Unless you have a specific reason for wanting to stay on 14.04 (like a software application that will break if you upgrade to 16.04), I would recommend the 16.04LTS upgrade option.

The pixhawk development environment and gazebo sitl documentation recommend ubuntu 14.04 & ubuntu LTS.

[Uploading…]
()

Documentation normally lags development, so I’m not sure if ubuntu 16 is supported yet?
In the absence of up to date documentation, I’ll ask on the forums before updating to ubuntu 16.

Thanks Chris.

I prefer to build or run the beta branch instead of master. But I purged my 2.0.23-rc4 install on one of my 64-bit machines and installed the 64-bit 2.0.20 trusty build on it just to verify it for you. Not one problem with it.

I’ll push 2.0.23 as a release build this weekend. It’s pretty much good to go. :grinning:

I agree. I been trying to crash my UAV with 2.0.23 and so far it’s smarter than I am and refuses to do anything unusual. I’d say it’s about as Prime Time as it gets.

1 Like

I just upgraded to ubuntu 16.04 LTS. The instructions for installing APM planner http://ardupilot.org/planner2/docs/installation-for-linux.html
list 2 download links.
http://discuss.ardupilot.org/t/download-latest-apm-planner-2-0-20-and-other-releases or firmware.ardupilot.org/Tools/APMPlanner . They have packages for ubuntu 14 and ubuntu 15. There are no packages labelled ubuntu 16.04. Which package is for ubuntu 16.04 thanks ?

The installation instructions for apm planner http://ardupilot.org/planner2/docs/installation-for-linux.html has a link https://raw.githubusercontent.com/diydrones/apm_planner/master/debian/apmplanner2.desktop for a file.
The link isnt working.

Is this simply an image file i can download from here and configure to run as a shortcut?

Thanks

16.04 is known as Xenial Xerus, 15. is Wily WereWolf 14, is Trusty Tahr.

You need to Xenial Xerus and use this one http://firmware.ardupilot.org/Tools/APMPlanner/beta/ The beta is ready for release, so it will be the same as the final release.

The documentation is lagging a bit, but realize there’s a limited number of people working on the project and not enough hours in the day. There’s very few times that backwards compatibility is broken with libraries in the linux world. So linux distribution versions newer than the version a build was built on will normally have no problems running it. As library versions progress it’s the older linux distribution versions that will have problems with dependencies. And those can usually be fixed if you have a need to stay on that older version. But it takes somebody dedicated to documenting what is required to do it, and with the current manpower on the project you get back to the problem with the number of hours in a day to get it all done.

I disagree… The LTS versions guarantee long term compatibility of binaries.

APM Planner 2.0 is dependent only on the Qt Framework installed. and Qt does all the hard work for us to make APM Planner 2.0 run on e.g 14/15/16 versions of linux with no code changes. The problem is that the linux distro s don’t update Qt in step with Qt release. Even though APM Planner 2.0 only requires Qt 5.4.2, (you can make it build with Qt 5.3.2 with a small change) those dependencies aren’t easily download (i.e. using a ppa) unless a 3rd party provides them.

The almost easiest thing to do for platforms we don’t have a binary pre-compiled for is to download the qt framework from http://download.qt.io and build it.

Otherwise just use 16.04LTS install, we will support that until the next LTS :slight_smile:

I just installed APM 2.0 on my Ubuntu 16.04 machine. No real problems… the docs are out of date

I would start the install off with a
"sudo apt-get update && upgrade"

the file path for the install is wrong. I would just do-
“sudo dpkg -i apm*.deb”

The create an icon link is also broken or doesnt go anywhere useful… I just go to my menu and select and start apm there…

The interface has a bit of a stripped down look… Coming from autoquad and QGC I am dissappointed so far in the appearance of APM 2.0. Particularily the artifical horizon lack gradients to the graphics. The map is really bad and a bit buggy. Sooming in and out on the map sometimes previous map tiles do not dissappear completely and this results in a current zoom tile have the previous zoom tile overlayed… I just hope it all works as expected!

What I was saying was, that there was a question as to whether or not the latest stable build is supported on 16.04 because the docs say to use 14.04. There’s a good chance you can jump ahead a LTS version and the build for the previous LTS version should install and run.

I’d like to try APM Planner2 on a Mac. But I don’t think my antique PowerBook G4 is gonna work. My wife has a MacBook Pro, but she won’t let me touch it. So I’m kind of stuck with linux for now.