LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sky Charts install
#21
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/...art_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  ~  
Reply
#22
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:
cat ~/.wgetrc
Code:
cat /etc/wgetrc
Code:
/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.
stevef
clueless
Reply
#23
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...artup-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
Reply
#24
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:
rm 8B8B57C1AA716FC2.key
2 Download a fresh copy of the author's key using the command from the skychart script
Code:
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:
file 8B8B57C1AA716FC2.key
stevef
clueless
Reply
#25

 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?o...C1AA716FC2
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?
Reply
#26
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:
mv 8B8B57C1AA716FC2.key 8B8B57C1AA716FC2.gz
Code:
gzip -dc 8B8B57C1AA716FC2.gz >8B8B57C1AA716FC2.key

Check the result by running these commands.
Code:
file 8B8B57C1AA716FC2.key
Expected response
8B8B57C1AA716FC2.key: PGP public key block Secret-Key
Code:
md5sum 8B8B57C1AA716FC2.key
Expected response
807f6e1d41cf5406c080609cd42104a3  8B8B57C1AA716FC2.key

Run these commands to import the public key and export as a keyring file
Code:
gpg --no-default-keyring --keyring ./skychart-temp-keyring.gpg --import 8B8B57C1AA716FC2.key
Expected 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:
gpg --no-default-keyring --keyring ./skychart-temp-keyring.gpg --export --output skychart.gpg
Expected response
gpg: WARNING: unsafe permissions on homedir '/home/bill/.gnupg'

Check the keyring with this
Code:
file skychart.gpg
Expected 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:
rm skychart-temp-keyring.gpg
Code:
rm skychart-temp-keyring.gpg~
Code:
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:
sudo mkdir /usr/local/share/keyrings
Code:
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:
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:
sudo apt update
Expected 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:
https://www.ap-i.net/skychart/en/documentation/installation_on_linux_ubuntu
and 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:
rm skychartpublic.key
Code:
rm testskychart.key
stevef
clueless
Reply
#27
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.
Reply
#28
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.
Reply
#29
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:
env | grep -i WGET
stevef
clueless
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)