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 21-03-2024, 15:39   #1
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 433
Installing OCPN on Raspi4

I've tried OCPN in Raspberry Pi 4 (8 GB & SSD)
Debian version: 12 (bookworm) 64 bits

I've did it with flatpak but it gave me some error because the zoom bar was in the middle of the window and could not move it, also, when I clicked on add charts folder the program quit at the very same moment.
so, uninstalled OCPN via flatpak and also it.

gone for the instructions in the OCPN web and followed step by step with this result:
Code:
Corsair@S-212:~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C865EB40
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.wEFxSUNEY3/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys C865EB40
gpg: key 67E4A52AC865EB40: "Launchpad PPA for OpenCPN" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Corsair@S-212:~ $ sudo apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease       
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease                 
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease                
Hit:5 https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu focal InRelease 
Reading package lists... Done                              
W: https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Corsair@S-212:~ $ sudo apt-get install opencpn
Reading package lists... Done
Building dependency tree... Done
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: libglew2.1 (>= 1.12.0) but it is not installable
           Depends: libwxbase3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
           Depends: libwxgtk-webview3.0-gtk3-0v5 (>= 3.0.4+dfsg) but it is not installable
           Depends: libwxgtk3.0-gtk3-0v5 (>= 3.0.4+dfsg-10~) but it is not installable
           Recommends: xcalib but it is not going to be installed
           Recommends: opencpn-doc but it is not installable
           Recommends: opencpn-sglock-amd64 but it is not installable
           Recommends: opencpn-sglock-arm64 but it is not installable
           Recommends: opencpn-sglock-arm32 but it is not installable
           Recommends: libusb-0.1-4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I don't want to install Openplotter and if possible not to use flatpak.

what could be the next to have it installed on the Rpi?
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Old 21-03-2024, 16:04   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Installing OCPN on Raspi4

OpenCPN is in the standard bookworm-backports Debian repository, no need for any PPA. You seem to probably be using using Wayland, so you will have the same problems you describe you had with flatpak regardless of the way you install the program. Switch to X11 and they will be gone.
nohal is offline   Reply With Quote
Old 21-03-2024, 17:15   #3
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 433
Re: Installing OCPN on Raspi4

Quote:
Originally Posted by nohal View Post
Switch to X11 and they will be gone.
thanks Nohal,

How to switch to X11?
Last time I used Unix was back on 1990, and I run away from it.
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Old 21-03-2024, 17:18   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Installing OCPN on Raspi4

raspi-config, see https://www.raspberrypi.com/document...iguration.html
nohal is offline   Reply With Quote
Old 22-03-2024, 02:10   #5
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 433
Re: Installing OCPN on Raspi4

Quote:
Originally Posted by nohal View Post
Thanks a lot, something similar I downloaded, and I have a lack of knowledge about Linux, but with the guide I can solve it.

the main problem is installs OCPN, that I'm not able to do it.
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Old 22-03-2024, 02:21   #6
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Installing OCPN on Raspi4

Quote:
Originally Posted by Corsair63 View Post
I don't want to install Openplotter and if possible not to use flatpak.
Out of interest, why not openplotter? It works straight away & does it all for you.
barcoMeCasa is offline   Reply With Quote
Old 22-03-2024, 02:30   #7
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 433
Re: Installing OCPN on Raspi4

Quote:
Originally Posted by barcoMeCasa View Post
Out of interest, why not openplotter? It works straight away & does it all for you.
another reasons not for forum.

maybe I'd give a try.

as far as I remember must be installed from the beginning from a sd/ssd image?
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Old 22-03-2024, 03:14   #8
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Installing OCPN on Raspi4

Quote:
Originally Posted by Corsair63 View Post
the main problem is installs OCPN, that I'm not able to do it.
From the Debian repositoies
Code:
echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install opencpn
or using flatpak

Code:
flatpak install org.opencpn.OpenCPN
nohal is offline   Reply With Quote
Old 22-03-2024, 03:22   #9
Registered User

Join Date: Sep 2023
Location: Cruising
Posts: 326
Re: Installing OCPN on Raspi4

Quote:
Originally Posted by Corsair63 View Post
maybe I'd give a try.

as far as I remember must be installed from the beginning from a sd/ssd image?
You could give it a go & see what repositories it has set up. Debian 5.8.4 is in there.



And yes, it's a fully set up system image ready to go, burn on a card & turn on.

https://openplotter.readthedocs.io/e...wnloading.html

Not that experienced with repositories but this is from openplotter V4 >

Code:
pi@openplotter:~ $ sudo apt-cache policy | grep opencpn
 500 https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu jammy/main armhf Packages
     release v=22.04,o=LP-PPA-opencpn-opencpn,a=jammy,n=jammy,l=OpenCPN,c=main,b=armhf
 500 https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu jammy/main arm64 Packages
     release v=22.04,o=LP-PPA-opencpn-opencpn,a=jammy,n=jammy,l=OpenCPN,c=main,b=arm64
pi@openplotter:~ $ cat /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
pi@openplotter:~ $
barcoMeCasa is offline   Reply With Quote
Old 22-03-2024, 07:48   #10
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 433
Re: Installing OCPN on Raspi4

thanks for your support, now I've been able to setup OCPN, and I had another problems with the software but I'll open a new thread.

followed:
Official instructions:
Code:
sudo nano /etc/apt/sources.list

A text editor will open.
deb https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu focal main
Save the file pressing Ctrl X, say Yes and press enter. 

Now type:
sudo apt install dirmngr

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C865EB40

sudo apt-get update

sudo apt-get install opencpn
It seems that the instructions for editing the sources.list it makes not install the OCPN.


Instructions working:
Code:
echo "deb Index of /debian bookworm-backports main contrib non-free-firmware" | sudo tee -a /etc/apt/sources. List

sudo apt update

sudo apt install opencpn
I had to edit the /etc/apt/sources.list file and delete the line inserted in the official instructions above
(deb https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu focal main)

after that I proceed as per Nohal instructions and was installed and running.
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Reply


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
Data visualization in OCPN and in OCPN-Draw 58gschol OpenCPN 3 21-02-2019 14:25
Need oCPN binary dependancies for Win 7 / vs2010 / wxLib 3.0.3 / oCPN 4.6.1 build... evendine OpenCPN 5 04-03-2018 05:05
OCPN 4.8.2 Status bar 0.6 : Preference kills OCPN! Didier B OpenCPN 15 12-02-2018 02:05
Furuno and OCPN KrisCatteceur Navigation 2 12-01-2012 13:04
Does OCPN support NMEA 0183 v3.1? Netsurfer OpenCPN 5 25-05-2010 07:42

Advertise Here


All times are GMT -7. The time now is 02:38.


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.