Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 19-01-2022, 01:35   #1
Registered User

Join Date: Jan 2022
Posts: 9
Upgrade OpenCPN to 5.6.0 Raspberry Pi

I have OpenCPN V5.2.4 installed on Raspberry Pi 4B, which works OK.

But I cannot get the upgrade to 5.6.0 installed on RPI.
If I follow the instructions from the manual "OpenCPN Installation / Raspberry Pi 2/3" I get the following error messages when I try to update the modified sources.list:


pi@raspberrypi:~ $ sudo apt update
Get:1 Index of /debian bullseye InRelease [23.5 kB]
Get:2 Index of /raspbian bullseye InRelease [15.0 kB]
Err:3 http://ppa.launchpad.net/opencpn/ubuntu bionic InRelease
403 Forbidden [IP: 2001:67c:1560:8008::19 80]
Get:4 Index of /debian bullseye/main armhf Packages [246 kB]
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/opencpn/ubu...onic/InRelease 403 Forbidden [IP: 2001:67c:1560:8008::19 80]
E: The repository 'http://ppa.launchpad.net/opencpn/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


There is a problem because Apt-Key Deprecated.
I tried to fix this by getting a valid key for C865EB40 from OpenPGP Public Key Server, but that does not solve the problem.

Is there anyone who can advice how to upgrade OpenCPN from 5.2.4 to 5.6.0 on RPI?

Regards,
Wim
Wim55 is offline   Reply With Quote
Old 19-01-2022, 11:40   #2
Registered User

Join Date: Jan 2022
Posts: 15
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

I have this problem too.

I put:-
deb http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic main

at the end of sources.list

I found dirmgr was not an option.

Apt-key seemed to work:-
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C865EB40
Executing: /tmp/apt-key-gpghome.7BuTZhja30/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys C865EB40
gpg: key 67E4A52AC865EB40: public key "Launchpad PPA for OpenCPN" imported
gpg: Total number processed: 1
gpg: imported: 1

Update got this result:-
$ sudo apt-get update
Ign:1 http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease m i
Err:2 http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic Release
Undetermined Error
Hit:3 Index of /debian buster InRelease
Hit:4 Index of /raspbian buster InRelease
Reading package lists... Done
E: The repository 'http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Any help would be appreciated.

Regards

Dick
DickG is offline   Reply With Quote
Old 19-01-2022, 13:11   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Wim55...
Looks like you are running Bullseye.
If so, the proper ubuntu release target is "focal", "not bionic"


Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 20-01-2022, 02:43   #4
Registered User

Join Date: Dec 2021
Posts: 8
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Hello,
I have OpenCPN 5.6 running on RPI4 (used focal instead of bionic when installing) everything seems OK so far, except that the watchdog plugin isn't available in the master plugins catalog. Thanks for any suggestion to assist in sorting the issue.
Stadlo2 is offline   Reply With Quote
Old 20-01-2022, 12:50   #5
Registered User
 
ecormier's Avatar

Join Date: Mar 2020
Location: Nova Scotia
Boat: C&C 24
Posts: 18
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

I'm a long time linux user here and I just have to say that mixing ubuntu repos with either debian or raspbian is NOT a good idea, their bases are different and all you need is one incompatible version miss match with a dependency and everything is borked. If you need to use ubuntu repos to get opencpn, why not just install ubuntu on the RPi4??!?
ecormier is offline   Reply With Quote
Old 20-01-2022, 21:05   #6
Registered User
 
Jonna's Avatar

Join Date: Dec 2012
Location: On the way to the tropics from Finland
Boat: Roberts 345 (modified)
Posts: 26
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Just installed Bullseye today. "Focal" did the trick to get OpenCPN installed.

What I'm missing is the Radar plugin. It's not on the plugin list in OpenCPN and "apt-get install opencpn-plugin-radar" also doesn't work.

Anyone know how to install the plugin?
Jonna is offline   Reply With Quote
Old 21-01-2022, 03:19   #7
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Quote:
Originally Posted by Jonna View Post
Just installed Bullseye today. "Focal" did the trick to get OpenCPN installed.

What I'm missing is the Radar plugin. It's not on the plugin list in OpenCPN and "apt-get install opencpn-plugin-radar" also doesn't work.

Anyone know how to install the plugin?

Hi Jonna,

install the OpenCPn flatpak version. Then you have most of the plugins available. Including the radar plugin.

It is not that difficult to do:

First install flatpak: sudo apt install flatpak

and then the flatpak OpenCPN version:

flastpak install --user https://dl.flathub.org/repo/appstrea...CPN_flatpakref

At first start flatpak OpenCPN 2.6 in the terminal.

flatpak run org.opencpn.OpenCPN

then you get an icon.


updating the do the same but replace run with update. OpenCPN runs in an own enviroment (sandbox)

flatpak opencpn works on all Linux systems.

I have not tested with working radar. I'am at home. But it seems to work.



Bram
verkerkbr is offline   Reply With Quote
Old 21-01-2022, 13:19   #8
Registered User

Join Date: Jan 2022
Posts: 9
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

I tried the upgrade with focal instead of bionic.
The upgrade and install give the following results:

pi@raspberrypi:~ $ sudo apt-get update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1952 (packagekitd)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/
pi@raspberrypi:~ $ sudo apt-get install opencpn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
opencpn is already the newest version (5.2.4+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.


As you can see, no errors on the key but is says that the latest version 5.2.4 already is installed. Which is the case, but 5.2.4 is not the latest version 5.6.0????

What do I do wrong???

Regars,
Wim
Wim55 is offline   Reply With Quote
Old 21-01-2022, 13:40   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Wim55...


There is an error:
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1952 (packagekitd)


As a result of this error, the "sudo apt-get update" command did nothing.



Please reboot, and try again.

Dave
bdbcat is offline   Reply With Quote
Old 22-01-2022, 00:30   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Quote:
Originally Posted by Wim55 View Post
I tried the upgrade with focal instead of bionic.
The upgrade and install give the following results:

pi@raspberrypi:~ $ sudo apt-get update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1952 (packagekitd)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/
pi@raspberrypi:~ $ sudo apt-get install opencpn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
opencpn is already the newest version (5.2.4+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.


As you can see, no errors on the key but is says that the latest version 5.2.4 already is installed. Which is the case, but 5.2.4 is not the latest version 5.6.0????

What do I do wrong???

Regars,
Wim

Hi Wim,

i had the same problem. This is how I solved it:

Use Synaptic and search for OpenCPN. Then you get a list with the OpenCPN files.

Click on the installed items with "remove completly". After the removal reload Synaptic again. Search for OpenCPN and see what you can install.

Then you see the latest version and can install it.

It seems that install checks if the present version is the latest. Not there is a newer version.


Bram
verkerkbr is offline   Reply With Quote
Old 22-01-2022, 18:39   #11
Registered User
 
Jonna's Avatar

Join Date: Dec 2012
Location: On the way to the tropics from Finland
Boat: Roberts 345 (modified)
Posts: 26
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Quote:
Originally Posted by verkerkbr View Post
Hi Jonna,

install the OpenCPn flatpak version. Then you have most of the plugins available. Including the radar plugin.

...
Thank you Bram, this worked. I didn't look into Flatpak in the manual, I was only looking under Raspberry Pi.

Cheers
Johanna
Jonna is offline   Reply With Quote
Old 02-02-2022, 13:28   #12
Registered User

Join Date: Jan 2022
Posts: 9
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Quote:
Originally Posted by verkerkbr View Post
Hi Wim,

i had the same problem. This is how I solved it:

Use Synaptic and search for OpenCPN. Then you get a list with the OpenCPN files.

Click on the installed items with "remove completly". After the removal reload Synaptic again. Search for OpenCPN and see what you can install.

Then you see the latest version and can install it.

It seems that install checks if the present version is the latest. Not there is a newer version.

Bram
Hello Bram,

After some time doing other bussiness I tried your proposed solution above.
I installed Synaptic and removed completely the OpenCPN 5.2.4 successfully.
After a reboot I restarted Synaptic and searched for OpenCPN.
But the only version found is again the V5.2.4!

When I (again) add the following repository into /etc/apt/sources.list:

deb Index of /opencpn/opencpn/ubuntu focal main


I get the following errors after sudo apt-get update:

Err:3 Index of /opencpn/opencpn/ubuntu focal InitRelease
403 Forbidden [IP: 91.189.95.85 80].
Reading packagelists... Done.

E: Failed to fetch http://ppa.launchpad.net/opencpn/ope...al/InitRelease
403 Forbidden [IP: 91.189.95.85 80]
E: The repository 'http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ focal initRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See Apt-secure(8) manpage for repository creation and user configuration details.


That is probably caused due to missing key or something (the "Apt-Key Deprecated" issue I suppose).

In a previous attempt to get things better I did something with 'Apt-key', but I must recall for my self how and what I did there.
Could that cause this current problem?

See also previous posts in this chat.

Can you advice again how to proceed?
Where can I find the OpenCPN V5.6.0 package with valid key?

Regards,
Wim
Wim55 is offline   Reply With Quote
Old 02-02-2022, 20:30   #13
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Wm...


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


Dave
bdbcat is offline   Reply With Quote
Old 03-02-2022, 07:14   #14
Registered User

Join Date: Jan 2022
Posts: 9
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Dave,
Thats what I tried before, but results still with the following errors:


pi@raspberrypi:~ $ 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.E647fveE48/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
pi@raspberrypi:~ $


Regards,
Wim
Wim55 is offline   Reply With Quote
Old 03-02-2022, 07:31   #15
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: Upgrade OpenCPN to 5.6.0 Raspberry Pi

Hi Wim,

look with Synaptic to the server addres of OpenCPN. If it is Bionic change it to focal.

Reload and search for OpenCPN and looks which version now appears.

Bram
verkerkbr is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
Zeus2 Not updatting but get "upgrade failed. Retry upgrade procedure" Fluenta Marine Electronics 6 22-11-2020 05:32
Comproblem on Raspberry Pi and OpenCPN vagspel OpenCPN 4 26-12-2012 05:01
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 02:30
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 12:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


All times are GMT -7. The time now is 22:59.


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.