Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 29-10-2020, 11:35   #1
Registered User

Join Date: Oct 2020
Posts: 9
Post Open CPN on Debian in 2020

Hi folks,



I'm new to the forum and to Open CPN. Got it up and running on my Macbook, but I prefer to use Linux when possible. I am running Debian Buster and I added the Ubuntu PPA (the instruction says the Trusty version is the correct Ubuntu version to use). I get the following error:


Code:
sudo apt-get install opencpn
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:
 opencpn : Depends: libcurl3 (>= 7.16.2) but it is not installable
           Depends: libtinyxml2.6.2 but it is not installable
           Depends: libwxbase3.0-0 (>= 3.0.0) but it is not installable
           Depends: libwxgtk3.0-0 (>= 3.0.0) but it is not installable
           Recommends: xcalib but it is not going to be installed
           Recommends: opencpn-doc but it is not installable
E: Unable to correct problems, you have held broken packages.
I'm wondering if it is simply that the Trusty PPA is no longer the correct one for Debian. Any advice or recommendations would be greatly appreciated. Thank you!


--Matt
laanan is offline   Reply With Quote
Old 29-10-2020, 12:42   #2
Registered User

Join Date: Aug 2015
Posts: 474
Re: Open CPN on Debian in 2020

sudo apt-get install -f
(will often install missing dependencies)
boatbod is offline   Reply With Quote
Old 29-10-2020, 13:22   #3
Registered User
 
pinguino's Avatar

Join Date: May 2009
Location: SE Spain
Boat: Jeanneau SO 32I
Posts: 125
Re: Open CPN on Debian in 2020

Try bionic instead.
pinguino is offline   Reply With Quote
Old 29-10-2020, 14:50   #4
Registered User

Join Date: Oct 2020
Posts: 9
Re: Open CPN on Debian in 2020

Changing to bionic helped, I get a few error messages, but it opens and runs. Thanks!
laanan is offline   Reply With Quote
Old 19-07-2021, 14:38   #5
Registered User
 
Pearson 39-II's Avatar

Join Date: Jul 2021
Location: Punta Gorda, FL
Boat: Pearson 39-2 , 39' 3"
Posts: 18
Re: Open CPN on Debian in 2020

Just brought up a new Raspberry Pi 4 in Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster and updated it.

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:
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
Following the OpenCPN Manual my only entry in etc/apt/sources.list is:
deb Index of /opencpn/opencpn/ubuntu bionic main


apt-get update from that repository seems to work fine:
Code:
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 the install fails as described above - unmet dependencies on 3 uninstallable packages.

I'm definitely using an armv7l cpu. I'm using a 32-bit Debian release:
Code:
getconf LONG_BIT
32
So, what is the problem and can I work around it somehow?
Pearson 39-II is offline   Reply With Quote
Old 19-07-2021, 17:14   #6
Registered User
 
Pearson 39-II's Avatar

Join Date: Jul 2021
Location: Punta Gorda, FL
Boat: Pearson 39-2 , 39' 3"
Posts: 18
Re: Open CPN on Debian in 2020

Correction to my post.
Following the OpenCPN Manual my only entry in etc/apt/sources.list is:
Code:
deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ bionic main
Hopefully bracketing this as CODE will prevent it being changed from what I'd typed?
Pearson 39-II is offline   Reply With Quote
Old 20-07-2021, 00:07   #7
Registered User
 
carles_pina's Avatar

Join Date: Jul 2021
Posts: 7
Re: Open CPN on Debian in 2020

Very quick answer with an alternative method: I'm using Debian Buster with opencpn installed via flatpak. It sems to work well.
carles_pina is offline   Reply With Quote
Old 20-07-2021, 00:38   #8
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,136
Re: Open CPN on Debian in 2020

Quote:
Originally Posted by carles_pina View Post
Very quick answer with an alternative method: I'm using Debian Buster with opencpn installed via flatpak. It sems to work well.

Yes the Flatpak version works very well on my RaspiOS 64 bits, Ubuntu Hirtute Hippo 64, Debian Bullseye 64 on a RPI4 with 2 GB. Also on my Linux Mint UMA version for AMD64.


First you have to install the Flatpak application. Sudo apt-get install flatpak and then the OpenCPN for flatpak version. The version for the Rpi is not so easy to find. You need the Aarch version (ARM)



The first start can be done in the terminal with:



flatpak run org.opencpn.OpenCPN//stable (or beta).


Update is update instead of run.


Debian and Ubuntu makes an icon for easy starting. However not yet in The RaspiOS. But can be easily done from the terminal.


A great development no longer connected to a release version.


Bram
verkerkbr is online now   Reply With Quote
Old 21-07-2021, 08:15   #9
Registered User
 
Pearson 39-II's Avatar

Join Date: Jul 2021
Location: Punta Gorda, FL
Boat: Pearson 39-2 , 39' 3"
Posts: 18
Re: Open CPN on Debian in 2020

Thanks, Bram. Tried to follow your suggestions as well as the Flatpak part of the OpenCPN manual and even the Flatpak website but get this result:
Code:
root@raspberrypi:~# apt install flatpak
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package flatpak 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
However the following packages replace it:
  xdg-desktop-portal

E: Package 'flatpak' has no installation candidate
Flatpak appears not available. xdg-desktop-portal is already installed in my Pi OS, but I have no idea how it might be used to get flatpak and so then allow me access to flatpak OpenCpn, per your
Code:
flatpak run org.opencpn.OpenCPN//stable (or beta).
. Can you describe where the AArch ARM version of Flatpak you've recommended can be found?
Or is there now some new way to access the flathub repository of OpenCPN?

Is a 64-bit OS required now to use Flatpak?
Pearson 39-II is offline   Reply With Quote
Old 22-07-2021, 10:29   #10
Registered User
 
Pearson 39-II's Avatar

Join Date: Jul 2021
Location: Punta Gorda, FL
Boat: Pearson 39-2 , 39' 3"
Posts: 18
Re: Open CPN on Debian in 2020

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.
Pearson 39-II is offline   Reply With Quote
Old 26-07-2021, 19:48   #11
Registered User

Join Date: Jul 2021
Posts: 15
Re: Open CPN on Debian in 2020

Hello, I am also new to the forums and OpenCPN. I am struggling installing OpenCPN on my raspberry pi 4. Despite re-formatting the SD with Raspian Buster and starting from scratch, I can't get past the first code given on the official OpenCPN website.
Here is the command: $ sudo nano /ect/apt/sources.list
Once the editor opens, a red bar at the bottom says [ Directory ' /ect/apt' does not exist ]

From some of the research I did, I gather the directory is missing, correct?
How would I add it?

Thanks.
Ferro Angel is offline   Reply With Quote
Old 26-07-2021, 20:14   #12
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,503
Re: Open CPN on Debian in 2020

Ferro...


Check your spelling: "ect"->"etc"


$ sudo nano /etc/apt/sources.list


If you copied the error verbatim from one of the OCPN webpages, please let use know where, so that we may correct it.




Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 27-07-2021, 07:58   #13
Registered User

Join Date: Jul 2021
Posts: 15
Re: Open CPN on Debian in 2020

Dave,

Thank you for your help. I had not realized my typing error. The commands on OpenCPN web page is just fine, I merely misread the line.

Thanks again.
Ferro Angel is offline   Reply With Quote
Reply

Tags
open cpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open CPN - failed to open / initialize srboat OpenCPN 15 05-08-2020 00:09
Cannot open Open CPN SVToucan431 OpenCPN 8 05-03-2017 02:16
Open CPN wont open BONEY MAHONEY OpenCPN 3 26-07-2012 21:08
Open CPN Works Initially But Then Will Not Open GrahamW OpenCPN 4 25-01-2012 04:57
Open cpn Installs but Does Not Open with Vista 64 bit felipe OpenCPN 3 03-06-2011 12:23

Advertise Here


All times are GMT -7. The time now is 14:07.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.