Linux Lite Forums

Software - Support => Installing Software => Topic started by: billtour on August 22, 2023, 02:08:06 PM

Title: Sky Charts install
Post by: billtour on August 22, 2023, 02:08:06 PM
I'm trying to install Sky Charts (Carte du Ciel) in a new install of v.5.8 of L.L.  First of all, what should I look for in the long list of possible downloads of software? .Deb?  ,Tar? The .Deb seems to not get started installing.  The .tar tried .  I can supply error messages. Thanks for the help.
Title: Re: Sky Charts install
Post by: stevef on August 22, 2023, 05:22:08 PM
https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntu
Title: Re: Sky Charts install
Post by: billtour on August 22, 2023, 08:18:18 PM
This is what I get after entering the first line:
 
 bill  ~  bash <(wget -qO- https://raw.githubusercontent.com/pchev/skychart/master/setup_skychart_deb.sh)
This script add the Skychart repository to simplify the installation and update of the software.
It is possible to get the STABLE version that is updated every few year,
or the more frequently updated BETA version with the last features and corrections.
1) Stable
2) Beta
3) Quit
Please select the version you want: 1
You may now give your password for the sudo apt command.
[sudo] password for bill:
OK
OK
2023-08-22 19:54:17 URL:http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2 [1357/1357] -> "8B8B57C1AA716FC2.key" [1]
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: keybox './skychart-temp-keyring.gpg' created
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: WARNING: nothing exported
mv: cannot stat 'skychart.gpg': No such file or directory

The repository is defined to use the stable packages.
You can now use your prefered package manager to install Skychart.
If you want to continue from the command line do not forget to run: sudo apt update
 bill  ~  
Title: Re: Sky Charts install
Post by: stevef on August 23, 2023, 05:01:42 AM
The line
Code: [Select]
gpg: no valid OpenPGP data found.indicates your system wasn't able to import the public key required.

I'd suggest trying it again.  You should see a message including
Code: [Select]
gpg: key 8B8B57C1AA716FC2: public key "Patrick Chevalley <[email protected]>" importedinstead of the no valid data found message.

If it continues to fail we need to look at why your system isn't importing keys.
Title: Re: Sky Charts install
Post by: billtour on August 23, 2023, 08:54:06 PM
Same result two more times.  What next?  I'm clueless.  Thanks for the help.
Title: Re: Sky Charts install
Post by: stevef on August 24, 2023, 02:36:37 AM
Quote
What next?

I would look at the Sky Chart install script and break it into small steps to see if we can work out what is happening.
You appear to have a problem getting the key, so trying to do this step manually in verbose mode might show a problem.

The wget command below is a slightly modified line from the script.  It will try to get the key from the location specified in the Sky Chart install script and save it in your home directory. It has verbose options enabled.

Code: [Select]
wget -O testskychart.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x$key"
It may throw an error message so post back what happens.
If it works you can examine the resulting key file with
Code: [Select]
cat testskychart.key
You should see a block of apparently random characters bounded by
Quote
-----BEGIN PGP PUBLIC KEY BLOCK-----

-----END PGP PUBLIC KEY BLOCK-----
Title: Re: Sky Charts install
Post by: billtour on August 28, 2023, 10:28:24 PM
I didn't see any errors after running "wget".  However, "cat" gave me pages of what looks like what you might see when opening a non-text file using a text editor.  It was pages of mostly characters that look like question marks inside of diamond shapes.  I saw no "begin pgp public key block".  I hope this helps.
Title: Re: Sky Charts install
Post by: stevef on August 29, 2023, 02:00:27 AM
It does help a bit.  The key file should be a properly formatted, readable text file with definite, legible header and footer which is very different to the randomness of a non-text file.
So it sounds like something has gone wrong at that stage.

It might help more to see the actual text that you see on screen while executing the verbose form of the command.
Code: [Select]
wget -SO testskychart.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x$key"
Title: Re: Sky Charts install
Post by: billtour on August 29, 2023, 08:42:58 PM
The following is all of what comes up when I run the "CAT" command:

C�1~�*3WJ�%��~�g��o��NЃE��OYE��S�F�j}���*�}�9�"�L
H;��߆�د����Mގ���/

Edit - just showing a sample of output.
Title: Re: Sky Charts install
Post by: stevef on August 30, 2023, 02:34:23 AM
That's we'd expect from your earlier description. If you post what actually happens when you issue the verbose 'wget' command it might show why wget is not getting the key properly.

Code: [Select]
wget -SO testskychart.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x$key"
Thank you
Title: Re: Sky Charts install
Post by: billtour on August 30, 2023, 09:00:06 PM

Sorry.  testskychart.key was put into my user folder and looks good.  Here is the result of WGET:

 bill  ~  wget -SO testskychart.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x$key"
--2023-08-30 20:40:11--  http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x
Resolving keyserver.ubuntu.com (keyserver.ubuntu.com)... 185.125.188.26, 185.125.188.27, 2620:2d:4000:1007::70c, ...
Connecting to keyserver.ubuntu.com (keyserver.ubuntu.com)|185.125.188.26|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Thu, 31 Aug 2023 00:40:12 GMT
  Server: Hockeypuck/2.1.0-222-g25248d4
  Content-Type: text/plain
  Connection: close
  Content-Encoding: gzip
  Transfer-Encoding: chunked
Length: unspecified [text/plain]
Saving to: ‘testskychart.key’

testskychart.key        [  <=>               ]  69.84K   323KB/s    in 0.2s   

2023-08-30 20:40:13 (323 KB/s) - ‘testskychart.key’ saved [71512]

 bill  ~  

Title: Re: Sky Charts install
Post by: stevef on August 31, 2023, 01:12:45 AM
Quote
testskychart.key was put into my user folder and looks good
Does this mean that testskychart.key contains a properly formated text block with the header and footer a bit like this...
Code: [Select]
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Hostname:
Version: Hockeypuck 2.1.0-222-g25248d4

xo0EX5NHUgEEAML3/A8gdIurI4lp24s4SFbzxs2q70T6Idmpr/IkqAVghx5M35w/
l5DUOr7A0DDb84LUV5qwTHc/YEI9riz1foIZZxnyryoqE8I5Ou/DlSVvJScL9YiW

several 100s lines of text cut from here

xwCggrBlKycw9gfSRtDVSLyu0mggBgoAn1K8Kjxihh+3W58umLj/uL7Wn/sewkkE
GBECAAkFAkL6aBcCGwwACgkQlZxmk1cKRo5exwCgrYQge8zOEFZMvJPhDGJ2nwrQ
vDYAn0Q80JkvCW6T+KM2GCNc8TDJ0rE0
=g5ta
-----END PGP PUBLIC KEY BLOCK-----
Instead of the random code reported previously ?

If yes, then that is better, but one thing that still looks a bit odd is the file size.
Your output reports 69.84K (71,512 bytes), but whenever I've tried, it has consistently been 94.43K (96,696 bytes).

I'd suggest re-trying this command several times to check the resulting file size.  The downloaded file in your home directory will just get overwritten each time.
Code: [Select]
wget -SO testskychart.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x$key"You need to look at the number in the square brackets on the final line of the report, I'd expect you to see [96696] rather than [71512]

If you do get a keyfile size of [96696] try following the Sky Chart installation script again.
Code: [Select]
https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntuIf you consistently get [71512] then there's still something odd, but it might be worth trying the installation script.
Title: Re: Sky Charts install
Post by: billtour on August 31, 2023, 07:43:00 PM
Yes.  It looks like this:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Hostname:
Version: Hockeypuck 2.1.0-222-g25248d4

xo0EX5NHUgEEAML3/A8gdIurI4lp24s4SFbzxs2q70T6Idmpr/IkqAVghx5M35w/
l5DUOr7A0DDb84LUV5qwTHc/YEI9riz1foIZZxnyryoqE8I5Ou/DlSVvJScL9YiW
xtdoMevWsjEzNDjwDdaR0I0F0a5CJl4IWzVojnsMAyR70UmHxlIsOch7ABEBAAHN
.
.   26 pages
.
xwCggrBlKycw9gfSRtDVSLyu0mggBgoAn1K8Kjxihh+3W58umLj/uL7Wn/sewkkE
GBECAAkFAkL6aBcCGwwACgkQlZxmk1cKRo5exwCgrYQge8zOEFZMvJPhDGJ2nwrQ
vDYAn0Q80JkvCW6T+KM2GCNc8TDJ0rE0
=g5ta
-----END PGP PUBLIC KEY BLOCK-----

I'll try your other suggestions regarding the file size issue and let you know what happens.
Title: Re: Sky Charts install
Post by: billtour on August 31, 2023, 07:49:24 PM
I just got a file size of 71512, so I ran the install script and got a no such file or directory error.

 bill  ~  https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntu
bash: https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntu: No such file or directory
 bill  ~  127  
Title: Re: Sky Charts install
Post by: stevef on September 01, 2023, 02:02:36 AM
Sorry if I've confused you.

Code: [Select]
https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntuis the link to the web page of the instructions which documents downloading and running the script.

It looks like you attempted to 'run' the web page itself resulting in the 'no such file or directory error'

You need to open the instructions web page in your browser, then read and follow them carefully.

The first line of the instructions that you actually run is
Code: [Select]
bash <(wget -qO- https://raw.githubusercontent.com/pchev/skychart/master/setup_skychart_deb.sh)
Title: Re: Sky Charts install
Post by: billtour on September 01, 2023, 10:49:09 PM
You've just learned how much I know about Linux.  Thanks very much for your help.  Hopefully, I can get through the install now by myself. 
Title: Re: Sky Charts install
Post by: billtour on September 01, 2023, 10:55:16 PM
Well, no such luck.  Here's what I get after the first copy and paste:

bash <(wget -qO- https://raw.githubusercontent.com/pchev/skychart/master/setup_skychart_deb.sh)
This script add the Skychart repository to simplify the installation and update of the software.
It is possible to get the STABLE version that is updated every few year,
or the more frequently updated BETA version with the last features and corrections.
1) Stable
2) Beta
3) Quit
Please select the version you want: 1
You may now give your password for the sudo apt command.
[sudo] password for bill:
OK
OK
2023-09-01 22:51:16 URL:http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2 [1357/1357] -> "8B8B57C1AA716FC2.key" [1]
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: keybox './skychart-temp-keyring.gpg' created
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: WARNING: nothing exported
mv: cannot stat 'skychart.gpg': No such file or directory

The repository is defined to use the stable packages.
You can now use your prefered package manager to install Skychart.
If you want to continue from the command line do not forget to run: sudo apt update
 bill  ~  
Title: Re: Sky Charts install
Post by: billtour on September 01, 2023, 10:59:04 PM
This may be unrelated, but, I ran an update and got the following errors:

===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.linuxliteos.com/forums/ and paste the log below into a new or existing thread for assistance.

============ Log ===========

Hit:1 http://repo.linuxliteos.com/linuxlite emerald InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:7 http://archive.canonical.com/ubuntu focal InRelease
Get:4 http://vega.ap-i.net/apt stable InRelease [3,615 B]
Err:4 http://vega.ap-i.net/apt stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B8B57C1AA716FC2
Reading package lists...
W: GPG error: http://vega.ap-i.net/apt stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B8B57C1AA716FC2
E: The repository 'http://www.ap-i.net/apt stable InRelease' is not signed.
Title: Re: Sky Charts install
Post by: stevef on September 02, 2023, 04:38:09 AM
It is related. The sky chart installation script has added itself as a repository but because of the problem with the authentication set up it is preventing the update process completing.
Has the update been a problem since August 22 ?

To complete updates, run the command below.  It removes the file that the sky chart script added to your repository list in the attempt to install itself.
Code: [Select]
sudo rm /etc/apt/sources.list.d/skychart.listYou will need to enter your password.
Updates should then run normally.  Please let us know.

If you wish to continue tackling your problem with the installation, please run the following command.
This will try to download the author's public key to your home directory as a file called skychartpublic.key and provide some debugging information.
Code: [Select]
wget -SO skychartpublic.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2"
Please post back with the screen output showing the command and resulting output.

If a file gets downloaded, please run
Code: [Select]
md5sum skychartpublic.keyand post back showing the command and result.
Title: Re: Sky Charts install
Post by: billtour on September 03, 2023, 04:08:30 PM
I don't know when the problem started because it is a new install of Linux Lite (8/15) and I'm still installing what I want.  I haven't been concerned about doing updates yet.

This is the result of the WGET:

wget -SO skychartpublic.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2"
--2023-09-03 15:58:46--  http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2
Resolving keyserver.ubuntu.com (keyserver.ubuntu.com)... 185.125.188.27, 185.125.188.26, 2620:2d:4000:1007::d43, ...
Connecting to keyserver.ubuntu.com (keyserver.ubuntu.com)|185.125.188.27|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Sun, 03 Sep 2023 19:58:47 GMT
  Server: Hockeypuck/2.1.0-222-g25248d4
  Content-Type: text/plain
  Content-Length: 1357
  Content-Encoding: gzip
Length: 1357 (1.3K) [text/plain]
Saving to: ‘skychartpublic.key’

skychartpublic.key                100%[===========================================================>]   1.33K  --.-KB/s    in 0.05s   

2023-09-03 15:58:47 (26.8 KB/s) - ‘skychartpublic.key’ saved [1357/1357]

 bill  ~  


I don't see where any files were downloaded.  I do see the skychartpublic.key file in my user folder.

I will now continue with the install and hope for no more issues.  Thanks much.
Title: Re: Sky Charts install
Post by: billtour on September 03, 2023, 04:18:42 PM
I started over with the first command as per the installation instructions and got the following.  Is it OK to continue???

bash <(wget -qO- https://raw.githubusercontent.com/pchev/skychart/master/setup_skychart_deb.sh)
This script add the Skychart repository to simplify the installation and update of the software.
It is possible to get the STABLE version that is updated every few year,
or the more frequently updated BETA version with the last features and corrections.
1) Stable
2) Beta
3) Quit
Please select the version you want: 1
You may now give your password for the sudo apt command.
[sudo] password for bill:
OK
OK
2023-09-03 16:13:42 URL:http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2 [1357/1357] -> "8B8B57C1AA716FC2.key" [1]
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: keybox './skychart-temp-keyring.gpg' created
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: WARNING: nothing exported
mv: cannot stat 'skychart.gpg': No such file or directory

The repository is defined to use the stable packages.
You can now use your prefered package manager to install Skychart.
If you want to continue from the command line do not forget to run: sudo apt update
 bill  ~  
Title: Re: Sky Charts install
Post by: stevef on September 03, 2023, 04:57:44 PM
Quote
Is it OK to continue???
We still need to sort the authentication problem out.

This message
Quote
gpg: no valid OpenPGP data found.
when you ran the script most recently confirms it still needs fixing..

I think understand what is going wrong but still need to find why.

Please open a terminal and post back with these commands and the resulting output.
Code: [Select]
cat ~/.wgetrc
Code: [Select]
cat /etc/wgetrc
Code: [Select]
/usr/local/etc/wgetrc
Quote
I don't see where any files were downloaded.  I do see the skychartpublic.key file in my user folder.
Your home folder (usually your username) is where the file will have ended up.
Title: Re: Sky Charts install
Post by: billtour on September 04, 2023, 10:41:12 PM
Here are the results of those commands:

 bill  ~  cat ~/.wgetrc
cat: /home/bill/.wgetrc: No such file or directory
 bill  ~  1  cat /etc/wgetrc
###
### Sample Wget initialization file .wgetrc
###

## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file. You can find this here:
##   $ info wget.info 'Startup File'
## Or online here:
##   https://www.gnu.org/software/wget/manual/wget.html#Startup-File
##
## Wget initialization file can reside in /etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
##
## To use the settings in this file, you will have to uncomment them,
## as well as change them, in most cases, as the values on the
## commented-out lines are the default values (e.g. "off").
##
## Command are case-, underscore- and minus-insensitive.
## For example ftp_proxy, ftp-proxy and ftpproxy are the same.


##
## Global settings (useful for setting up in /etc/wgetrc).
## Think well before you change them, since they may reduce wget's
## functionality, and make it behave contrary to the documentation:
##

# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes).  The
# default quota is unlimited.
#quota = inf

# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#tries = 20

# Lowering the maximum depth of the recursive retrieval is handy to
# prevent newbies from going too "deep" when they unwittingly start
# the recursive retrieval.  The default is 5.
#reclevel = 5

# By default Wget uses "passive FTP" transfer where the client
# initiates the data connection to the server rather than the other
# way around.  That is required on systems behind NAT where the client
# computer cannot be easily reached from the Internet.  However, some
# firewalls software explicitly supports active FTP and in fact has
# problems supporting passive transfer.  If you are in such
# environment, use "passive_ftp = off" to revert to active FTP.
#passive_ftp = off
passive_ftp = on

# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
#waitretry = 10


##
## Local settings (for a user to set in his $HOME/.wgetrc).  It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##

# Set this to on to use timestamping by default:
#timestamping = off

# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors).  Wget does *not* send `From:' by default.
#header = From: Your Name <[email protected]>

# You can set up other headers, like Accept-Language.  Accept-Language
# is *not* sent by default.
#header = Accept-Language: en

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

# If you do not want to use proxy at all, set this to off.
#use_proxy = on

# You can customize the retrieval outlook.  Valid options are default,
# binary, mega and micro.
#dot_style = default

# Setting this to off makes Wget not download /robots.txt.  Be sure to
# know *exactly* what /robots.txt is and how it is used before changing
# the default!
#robots = on

# It can be useful to make Wget wait between connections.  Set this to
# the number of seconds you want Wget to wait.
#wait = 0

# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = off

# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#recursive = off

# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#backup_converted = off

# To have Wget follow FTP links from HTML files by default, set this
# to on:
#follow_ftp = off

# To try ipv6 addresses first:
#prefer-family = IPv6

# Set default IRI support state
#iri = off

# Force the default system encoding
#localencoding = UTF-8

# Force the default remote server encoding
#remoteencoding = UTF-8

# Turn on to prevent following non-HTTPS links when in recursive mode
#httpsonly = off

# Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
#secureprotocol = auto
 bill  ~  /usr/local/etc/wgetrc
bash: /usr/local/etc/wgetrc: No such file or directory
Title: Re: Sky Charts install
Post by: stevef on September 05, 2023, 02:14:33 AM
Thank you.

To confirm what I think is happening with your system, please can you run these commands and post back with what happens.

1 Remove any existing copy of the file
Code: [Select]
rm 8B8B57C1AA716FC2.key2 Download a fresh copy of the author's key using the command from the skychart script
Code: [Select]
wget -O 8B8B57C1AA716FC2.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2"3 Verify the type of file that has been downloaded.
Code: [Select]
file 8B8B57C1AA716FC2.key
Title: Re: Sky Charts install
Post by: billtour on September 05, 2023, 07:42:39 PM
 
 bill  ~  rm 8B8B57C1AA716FC2.key
rm: cannot remove '8B8B57C1AA716FC2.key': No such file or directory
 bill  ~  1  wget -O 8B8B57C1AA716FC2.key "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2"
--2023-09-05 19:38:24--  http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8B8B57C1AA716FC2
Resolving keyserver.ubuntu.com (keyserver.ubuntu.com)... 185.125.188.26, 185.125.188.27, 2620:2d:4000:1007::d43, ...
Connecting to keyserver.ubuntu.com (keyserver.ubuntu.com)|185.125.188.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1357 (1.3K) [text/plain]
Saving to: ‘8B8B57C1AA716FC2.key’

8B8B57C1AA716FC2.key              100%[===========================================================>]   1.33K  --.-KB/s    in 0.05s   

2023-09-05 19:38:25 (29.3 KB/s) - ‘8B8B57C1AA716FC2.key’ saved [1357/1357]

 bill  ~  file 8B8B57C1AA716FC2.key
8B8B57C1AA716FC2.key: gzip compressed data, from Unix, original size modulo 2^32 1739
 bill  ~  

The 8B8B57C1AA716FC2.key file is in my home dir.

Should I try the install again?
Title: Re: Sky Charts install
Post by: stevef on September 06, 2023, 01:50:30 AM
Thank you.  That shows that wget on your system is saving the key as a compressed file.
The skychart install script doesn't run properly with the compressed data because the gpg commands it uses do not work with compressed data.

The best thing would be to understand how/why wget is doing this and correcting that to allow the script to run.
An alternative is to import the key and add the repository manually with a few extra commands to deal with the compressed download.  To emulate what the script does but without the errors, follow the commands below in sequence.  If you get any error messages or unexpected responses please post back.  Sorry if it looks a bit daunting, but it is just a case of pasting in the commands and reading the responses.

Rename and decompress the compressed file.
Code: [Select]
mv 8B8B57C1AA716FC2.key 8B8B57C1AA716FC2.gz
Code: [Select]
gzip -dc 8B8B57C1AA716FC2.gz >8B8B57C1AA716FC2.key
Check the result by running these commands.
Code: [Select]
file 8B8B57C1AA716FC2.keyExpected response
8B8B57C1AA716FC2.key: PGP public key block Secret-Key
Code: [Select]
md5sum 8B8B57C1AA716FC2.keyExpected response
807f6e1d41cf5406c080609cd42104a3  8B8B57C1AA716FC2.key

Run these commands to import the public key and export as a keyring file
Code: [Select]
gpg --no-default-keyring --keyring ./skychart-temp-keyring.gpg --import 8B8B57C1AA716FC2.keyExpected response
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'
gpg: key 8B8B57C1AA716FC2: public key "Patrick Chevalley <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Code: [Select]
gpg --no-default-keyring --keyring ./skychart-temp-keyring.gpg --export --output skychart.gpgExpected response
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'

Check the keyring with this
Code: [Select]
file skychart.gpgExpected response
skychart.gpg: PGP/GPG key public ring (v4) created Sun Sep 18 20:13:08 2016 RSA (Encrypt or Sign) 2048 bits MPI=0xb0642ac63565db5c...

Delete the temporary files used to create the keyring
Code: [Select]
rm skychart-temp-keyring.gpg
Code: [Select]
rm skychart-temp-keyring.gpg~
Code: [Select]
rm 8B8B57C1AA716FC2.key
Make the folder for the keyring (if it already exists you'll see a message which can be ignored) and move the keyring to it
Code: [Select]
sudo mkdir /usr/local/share/keyrings
Code: [Select]
sudo mv skychart.gpg /usr/local/share/keyrings/
Add the skychart (stable) repository with the signing information with this command.
The choice of stable is based on your selections in previous posts.
If you want the more frequently updated beta version, replace the word 'stable' with 'unstable'
Code: [Select]
sudo sh -c "echo deb [signed-by=/usr/local/share/keyrings/skychart.gpg] http://www.ap-i.net/apt stable main > /etc/apt/sources.list.d/skychart.list"
Confirm the key is correctly installed and the skychart repository is available.
Code: [Select]
sudo apt updateExpected response is a line like this somewhere in the list
http://vega.ap-i.net/apt stable InRelease [3,615 B]




If that line appears you have done the equivalent of step 1 and step 2 of the skychart ubuntu installation.
Open this link in a browser
Code: [Select]
https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntuand rejoin their guide at step 3

If they are still on your system, you can also delete a couple of files that we used earlier while testing the wget operation.
Code: [Select]
rm skychartpublic.key
Code: [Select]
rm testskychart.key
Title: Re: Sky Charts install
Post by: billtour on September 06, 2023, 10:48:33 PM
Thanks to you, stevef, and others like who make Linux "simple".  Without you it would be impossible.  My SkyCharts software is nearly done installing.  Now I need to read up on how to close this out.   Thanks again.
Title: Re: Sky Charts install
Post by: billtour on September 06, 2023, 11:08:43 PM
I'm looking at the Modify Message screen and there is no Prefix to choose.  So, I don't know how to mark this as SOLVED.
Title: Re: Sky Charts install
Post by: stevef on September 07, 2023, 12:56:36 AM
Glad you got it installed.   I've marked the thread as Solved - you need to be modifying the initial post to choose a prefix for the thread.
For what it is worth, the install script from skychart should have worked.  I still don't understand the underlying issue of wget on your system not behaving as expected.

This command checks to see if you have a wget startup file in a non standard location.
Would you post back with the result of
Code: [Select]
env | grep -i WGET