Pearson 39-II
Posts: 2
Joined: Tue Jul 20, 2021 2:41 am

OpenCPN Cannot Be Installed - unmet dependencies

Tue Jul 20, 2021 3:29 am

Just brought up a new Raspberry Pi 4 , using the Raspberry Pi Imager to fresh install the Pi OS. That seems to have gone well and uname -a returns :

Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

My problem is OpenCPN cannot install due to:

Code: Select all

The following packages have unmet dependencies:
 opencpn : Depends: libtinyxml2.6.2v5 but it is not installable
           Depends: libwxbase3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
           Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
           Depends: wx3.0-i18n but it is not installable
           Recommends: xcalib but it is not installable
           Recommends: opencpn-doc but it is not going to be installed
I believe I followed the OpenCPN Manual instructions for adding the OpenCPN repository for the "latest Buster:"
That is, my only entry in etc/apt/sources.list is:

Code: Select all

deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ bionic main
My etc/sources/apt/sources.list.d/raspi.list is:

Code: Select all

deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ buster main
running apt-get update seemed to work well:

Code: Select all

root@raspberrypi:~# apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease [20.7 kB]
Get:3 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic/main armhf Packages [5,576 B]
Get:4 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic/main Translation-en [2,008 B]
Fetched 28.3 kB in 2s (15.7 kB/s)                             
Reading package lists... Done
root@raspberrypi:~# apt-get install opencpn
But running apt-get install opencpn fails due to the unmet dependencies listed above. What did I miss here? Was I supposed to install source code first even though this is not in the OpenCPN instructions? Am I sourcing the wrong repository? Is OpenCPN code dependent on Debian packages no longer part of Pi OS release 5.10.17?

I managed to hack my way to success a couple of years ago in getting Ubuntu / Mate running on a Beaglebone Black including OpenCPN from the then current Ubuntu ppa and have been navigating with it for all that time since. But I realize I remain a complete newbie on how these Linux releases and installations are managed, especially the Pi OS versions. Could someone enlighten me on what is going wrong here and suggest what to do to complete the OpenCPN installation?

User avatar
ksharindam
Posts: 197
Joined: Sat Jan 09, 2016 4:16 pm

Re: OpenCPN Cannot Be Installed - unmet dependencies

Thu Jul 22, 2021 7:02 am

Ubuntu bionic repository is not compatible with Debian Buster repo.
So if you try to install a package from bionic repo, it can not find the required dependencies in debian buster repo.

Again, the instructions you followed is for Ubuntu or ubuntu based distributions. But RPi OS is debian based.

fruitoftheloom
Posts: 27077
Joined: Tue Mar 25, 2014 12:40 pm

Re: OpenCPN Cannot Be Installed - unmet dependencies

Thu Jul 22, 2021 7:38 am

ksharindam wrote:
Thu Jul 22, 2021 7:02 am
Ubuntu bionic repository is not compatible with Debian Buster repo.
So if you try to install a package from bionic repo, it can not find the required dependencies in debian buster repo.

Again, the instructions you followed is for Ubuntu or ubuntu based distributions. But RPi OS is debian based.

Please read the Official Instructions:

https://opencpn.org/wiki/dokuwiki/doku. ... rrypi_rpi2


Ubuntu like Raspberry Pi (Raspbian)OS are both based of Debian and have always been so... :lol:
I am a volunteer, take what I advise as advice not the utopian holy grail.

fruitoftheloom
Posts: 27077
Joined: Tue Mar 25, 2014 12:40 pm

Re: OpenCPN Cannot Be Installed - unmet dependencies

Thu Jul 22, 2021 7:41 am

Pearson 39-II wrote:
Tue Jul 20, 2021 3:29 am
Just brought up a new Raspberry Pi 4 , using the Raspberry Pi Imager to fresh install the Pi OS. That seems to have gone well and uname -a returns :

Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

My problem is OpenCPN cannot install due to:

Code: Select all

The following packages have unmet dependencies:
 opencpn : Depends: libtinyxml2.6.2v5 but it is not installable
           Depends: libwxbase3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
           Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
           Depends: wx3.0-i18n but it is not installable
           Recommends: xcalib but it is not installable
           Recommends: opencpn-doc but it is not going to be installed
I believe I followed the OpenCPN Manual instructions for adding the OpenCPN repository for the "latest Buster:"
That is, my only entry in etc/apt/sources.list is:

Code: Select all

deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ bionic main
My etc/sources/apt/sources.list.d/raspi.list is:

Code: Select all

deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ buster main
running apt-get update seemed to work well:

Code: Select all

root@raspberrypi:~# apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease [20.7 kB]
Get:3 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic/main armhf Packages [5,576 B]
Get:4 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic/main Translation-en [2,008 B]
Fetched 28.3 kB in 2s (15.7 kB/s)                             
Reading package lists... Done
root@raspberrypi:~# apt-get install opencpn
But running apt-get install opencpn fails due to the unmet dependencies listed above. What did I miss here? Was I supposed to install source code first even though this is not in the OpenCPN instructions? Am I sourcing the wrong repository? Is OpenCPN code dependent on Debian packages no longer part of Pi OS release 5.10.17?

I managed to hack my way to success a couple of years ago in getting Ubuntu / Mate running on a Beaglebone Black including OpenCPN from the then current Ubuntu ppa and have been navigating with it for all that time since. But I realize I remain a complete newbie on how these Linux releases and installations are managed, especially the Pi OS versions. Could someone enlighten me on what is going wrong here and suggest what to do to complete the OpenCPN installation?


The instructions appear to be slightly out of date from 6 months ago, contact the Developers to ask for their Support for their Software.

https://opencpn.org/wiki/dokuwiki/doku. ... rrypi_rpi2



Alternatively if you can wait for Debian 11 Bullseye based Operating System then the package will be in repositories:

https://packages.debian.org/bullseye/opencpn


If you want to try Debian 11 Bullseye there is a 3rd Party Unofficial Release here:

https://raspi.debian.net/tested-images/
I am a volunteer, take what I advise as advice not the utopian holy grail.

User avatar
ksharindam
Posts: 197
Joined: Sat Jan 09, 2016 4:16 pm

Re: OpenCPN Cannot Be Installed - unmet dependencies

Thu Jul 22, 2021 3:18 pm

fruitoftheloom wrote:
Thu Jul 22, 2021 7:38 am
Please read the Official Instructions:

https://opencpn.org/wiki/dokuwiki/doku. ... rrypi_rpi2


Ubuntu like Raspberry Pi (Raspbian)OS are both based of Debian and have always been so... :lol:
Yes you are right.
The opencpn package for bionic is compatible with debian buster.

User avatar
ksharindam
Posts: 197
Joined: Sat Jan 09, 2016 4:16 pm

Re: OpenCPN Cannot Be Installed - unmet dependencies

Thu Jul 22, 2021 3:22 pm

I have successfully installed the package in this way.
1. download the package in this page http://ppa.launchpad.net/opencpn/opencp ... o/opencpn/ .
Direct link http://ppa.launchpad.net/opencpn/opencp ... _armhf.deb .

2. open terminal where the opencpn package was downloaded .
3. Run command

Code: Select all

sudo apt install ./opencpn*deb
It will install all required dependencies.

Pearson 39-II
Posts: 2
Joined: Tue Jul 20, 2021 2:41 am

Re: OpenCPN Cannot Be Installed - unmet dependencies

Thu Jul 22, 2021 5:21 pm

Thanks, fruitoftheloom. Yes, of course both Pi OS and Ubuntu are Debian-based variants and the written directions on the OpenCPN site for R Pi 2,3, and 4 are correct to specify the Ubuntu PPA for OpenCPN repository.

I feel pretty sure I followed those OpenCPN R Pi directions to the letter several times over the past few days as I used the R PI Org's Raspberry Pi Imager to do several clean new installs onto my SDHC memory card, then re-attempts to install OpenCPN, but with the same unmet dependencies failure.

But I tried that again last night and got some different results. I found small differences in the details of configuring the things like time zone and national location. Then a much longer initial update of the OS. Best of all the apt-update of both the Debian buster source and the opencpn/ubuntu source were much more detailed and took longer. And OpenCPN then did install apparently flawlessly without any of those unmet dependencies. I've been testing OpenCPN this morning on the many charts I downloaded and it's working great.

I do not discount entirely the possibility that I was making some installation human errors, but across 4 installs, I don't think so. Having posted the issue on several forums (Cruisers, R Pi Forum, and Stack Exchange ) I'm suspecting some kind OS engineer fixed the issue whether she or he read my posts or not, and we got the benefit of the OpenCPN install working exactly as directed in their manual once the update took place. Anyway, YAY, and thanks to everyone.

Return to “Raspberry Pi OS”