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-01-2022, 09:26   #76
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...


1. Change the "focal" back to "bionic". Save the file.

2. $ sudo apt-get update
3. $ sudo apt install opencpn


Thanks
Dave
The outcome:-
Code:
$ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic main

$ sudo apt-get update
Ign:1 http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease
Err:2 http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic Release
  Undetermined Error
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:4 http://archive.raspberrypi.org/debian 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.

$ sudo apt install opencpn
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package opencpn 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

E: Package 'opencpn' has no installation candidate
DickG is offline   Reply With Quote
Old 21-01-2022, 10:00   #77
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: Raspberry Pi w/ OpenCPN

Checked my systems and the way OpenCPN on several systems work. It is the Focal version.

It is probably no problem with de Flatpak OpenCPN 2.6 setup. See info on other item and how to do that setup. Flatpak is a universal Linux application.


Bram
verkerkbr is offline   Reply With Quote
Old 21-01-2022, 10:07   #78
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Raspberry Pi w/ OpenCPN

DickG...


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


Dave
bdbcat is offline   Reply With Quote
Old 21-01-2022, 15:18   #79
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...


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


Dave
Outcome:-

Code:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C865EB40
Executing: /tmp/apt-key-gpghome.UvS2r3a89J/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

$ sudo apt update
Ign:1 http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease
Err:2 http:/ppa.launchpad.net/opencpn/opencpn/ubuntu bionic Release
  Undetermined Error
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Get:4 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
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.

$ sudo apt install opencpn
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package opencpn 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

E: Package 'opencpn' has no installation candidate
DickG is offline   Reply With Quote
Old 21-01-2022, 18:35   #80
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Raspberry Pi w/ OpenCPN

DickG...


Something scrambled in your package manager. Let's try to fix it.
Please do:



Code:
$ sudo rm /var/lib/apt/lists/ppa.launchpad.net_opencpn_opencpn_ubuntu_dists_bionic_InRelease

Then, again:


Code:
$ sudo apt update
$ sudo apt install opencpn

We'll see how that goes.
Dave
bdbcat is offline   Reply With Quote
Old 22-01-2022, 01:05   #81
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...


Something scrambled in your package manager. Let's try to fix it.
Please do:



Code:
$ sudo rm /var/lib/apt/lists/ppa.launchpad.net_opencpn_opencpn_ubuntu_dists_bionic_InRelease

Then, again:


Code:
$ sudo apt update
$ sudo apt install opencpn

We'll see how that goes.
Dave
rm result:-
Code:
$ sudo rm /var/lib/apt/lists/ppa.launchpad.net_opencpn_opencpn_ubuntu_dists_bionic_InRelease
rm: cannot remove '/var/lib/apt/lists/ppa.launchpad.net_opencpn_opencpn_ubuntu_dists_bionic_InRelease': No such file or directory
I don't know what that means - but I appreciate all the help!
DickG is offline   Reply With Quote
Old 22-01-2022, 07:35   #82
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Raspberry Pi w/ OpenCPN

DickG...


Please:


$ ls -l /var/lib/apt/lists


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 22-01-2022, 07:42   #83
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...


Please:


$ ls -l /var/lib/apt/lists


Thanks
Dave
Outcome:-
Code:
$ ls -l /var/lib/apt/lists
total 69876
-rw-r--r-- 1 root root    32594 Jan 21 15:30 archive.raspberrypi.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root  1581006 Jan 21 15:30 archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages
drwxr-xr-x 2 _apt root     4096 Feb 13  2020 auxfiles
-rw-r----- 1 root root        0 Feb 13  2020 lock
drwx------ 2 _apt root     4096 Jan 22 10:52 partial
-rw-r--r-- 1 root root   235037 Oct 10 23:45 raspbian.raspberrypi.org_raspbian_dists_buster_contrib_binary-armhf_Packages
-rw-r--r-- 1 root root    14977 Jan 22 04:24 raspbian.raspberrypi.org_raspbian_dists_buster_InRelease
-rw-r--r-- 1 root root 69170360 Jan 22 04:23 raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages
-rw-r--r-- 1 root root   496476 Oct 10 23:45 raspbian.raspberrypi.org_raspbian_dists_buster_non-free_binary-armhf_Packages
-rw-r--r-- 1 root root     2704 Feb  9  2019 raspbian.raspberrypi.org_raspbian_dists_buster_rpi_binary-armhf_Packages
DickG is offline   Reply With Quote
Old 22-01-2022, 08:21   #84
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Raspberry Pi w/ OpenCPN

DickG...
Well, it is a mystery.
If it were my system, I would burn a new SDCard image, and start over.
But, if you just want to get OCPN installed, do this:


1. In browser, download the following file:
https://launchpad.net/~opencpn/+arch...04.1_armhf.deb


2. $ sudo dpkg -i ~/Downloads/opencpn*.deb


3. $ sudo apt-get install -f


Dave
bdbcat is offline   Reply With Quote
Old 22-01-2022, 09:24   #85
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...
Well, it is a mystery.
If it were my system, I would burn a new SDCard image, and start over.
But, if you just want to get OCPN installed, do this:


1. In browser, download the following file:
https://launchpad.net/~opencpn/+arch...04.1_armhf.deb


2. $ sudo dpkg -i ~/Downloads/opencpn*.deb


3. $ sudo apt-get install -f


Dave
Thanks very much for your persistence! I'll maybe try your second suggestion before resorting to the first. I had just made the [I thought] step forward of getting the Pi4 to boot from an SSD, so I'll give it another chance before starting over.

All the help is much appreciated.

Dick
DickG is offline   Reply With Quote
Old 22-01-2022, 12:14   #86
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...
Well, it is a mystery.
If it were my system, I would burn a new SDCard image, and start over.
But, if you just want to get OCPN installed, do this:


1. In browser, download the following file:
https://launchpad.net/~opencpn/+arch...04.1_armhf.deb


2. $ sudo dpkg -i ~/Downloads/opencpn*.deb


3. $ sudo apt-get install -f


Dave
Dave,

The download and install option seems to have worked. Thanks very much for getting me this far!

Dick
DickG is offline   Reply With Quote
Old 22-01-2022, 12:51   #87
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Raspberry Pi w/ OpenCPN

DickG...


You are welcome.
I do not really understand what is scrambled in your package management system. Did some research, and most reports suggest that re-installation of the entire OS is really the only way that these things can be reset. Relatively easy on rPI, frightening on a larger system that has been in use for years....


Anyway, good luck with O56.
Dave
bdbcat is offline   Reply With Quote
Old 22-01-2022, 23:13   #88
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...


You are welcome.
I do not really understand what is scrambled in your package management system. Did some research, and most reports suggest that re-installation of the entire OS is really the only way that these things can be reset. Relatively easy on rPI, frightening on a larger system that has been in use for years....


Anyway, good luck with O56.
Dave
Dave,
I wonder what will happen with Opencpn when I do ".. update" & ".. upgrade"? Having been installed from the downloaded .deb will it update and upgrade?

I'm not too far along with the Pi4, so restarting from scratch shouldn't be too bad when I get to that point.
Thanks
Dick
DickG is offline   Reply With Quote
Old 26-01-2022, 07:02   #89
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Quote:
Originally Posted by bdbcat View Post
DickG...


You are welcome.
I do not really understand what is scrambled in your package management system. Did some research, and most reports suggest that re-installation of the entire OS is really the only way that these things can be reset. Relatively easy on rPI, frightening on a larger system that has been in use for years....


Anyway, good luck with O56.
Dave
Dave,

I just built a usb boot drive from scratch using Raspberry Pi Imager on osx 12.1. I then booted the pi4 with it and allowed the update and upgrade steps that happen on the initial boot up. After rebooting I followed the steps for OpenCPN installation as before, and found a similar outcome. the details are below:-

Code:
pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list
pi@raspberrypi:~ $ sudo cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu/ bionic main
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.108MnBbMhL/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
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic InRelease [20.7 kB]
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease                                              
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease                                                 
Get:4 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic/main armhf Packages [5,544 B]
Get:5 http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic/main Translation-en [1,976 B]
Fetched 28.3 kB in 1s (28.2 kB/s)                  
Reading package lists... Done
pi@raspberrypi:~ $ 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: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
           Recommends: xcalib but it is not going to be installed
           Recommends: opencpn-doc but it is not going to be installed
           Recommends: opencpn-sglock-amd64 but it is not installable
           Recommends: opencpn-sglock-arm32 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Thought I'd let you know about the "start from scratch" option. Not sure whether any of the above will mean anything to you - I'm afraid it doesn't to me.

Best wishes,

Dick
DickG is offline   Reply With Quote
Old 26-01-2022, 07:40   #90
Registered User

Join Date: Jan 2022
Posts: 15
Re: Raspberry Pi w/ OpenCPN

Just checked the os-release - it was "bullseye" - so I changed "bionic" to "focal" and OpenCPN has just installed!

Thanks again for the support in this thread.

Regards

Dick
DickG 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
OpenCPN on Raspberry PI Raspbian Captain_Steve OpenCPN 12 08-02-2015 10:45
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 17:14.


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.