Python Forum
Unable to verify Python files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to verify Python files
#1
Hello,

I'm trying to verify the downloaded Python 3.9.1 files before I install them...

I created a new folder and downloaded these two files to it:

Python-3.9.1.tar.xz
Python-3.9.1.tar.xz.asc

I also downloaded and imported the public key to verify the files.

According to the Python website in order to verify the download I need to run this command:

gpg --verify Python-3.9.1.tar.xz.asc

I get the following message when I run the command:

gpg: Signature made Mon 07 Dec 2020 03:37:32 PM MST
gpg: using RSA key E3FF2839C048B25C084DEBE9B26995E310250568
gpg: Can't check signature: No public key

When I run gpg --list-keys I see this key info:

pub rsa4096 2015-05-11 [SC] [expires: 2025-05-11]
E3FF2839C048B25C084DEBE9B26995E310250568
uid [ unknown] Łukasz Langa (GPG langa.pl) <[email protected]>
uid [ unknown] Łukasz Langa (Work e-mail account) <[email protected]>
uid [ unknown] [jpeg image of size 24479]
sub rsa4096 2015-05-11 [E] [expires: 2025-05-11]

Can you someone please explain to me why I'm getting the gpg: Can't check signature: No public key error?

Thank you
Reply
#2
I'm still not able to figure out how to verify these files so any help would be greatly appreciated. Thanks.
Reply
#3
you should probably be asking this question on https://python.org (the authors of python)
Reply
#4
Get public key.
G:\div_code
λ gpg --recv-keys B26995E310250568
gpg: requesting key 10250568 from hkp server keys.gnupg.net
gpg: key 10250568: public key "\xc5\x81ukasz Langa (GPG langa.pl) <[email protected]>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Test.
G:\div_code
λ  gpg --verify Python-3.9.1.tgz.asc
gpg: assuming signed data in `Python-3.9.1.tgz'
gpg: Signature made Mon Dec  7 23:37:32 2020     using RSA key ID 10250568
gpg: Good signature from "\xc5\x81ukasz Langa (GPG langa.pl) <[email protected]>"
gpg:                 aka "\xc5\x81ukasz Langa <[email protected]>"
gpg:                 aka "\xc5\x81ukasz Langa (Work e-mail account) <[email protected]>"
gpg:                 aka "[jpeg image of size 24479]"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: E3FF 2839 C048 B25C 084D  EBE9 B269 95E3 1025 0568
Get a warning,but it's okay look at fingerprint.
So this dos not work for me to get public key from the specified server,that's why get warning.
But method over is okay.
G:\div_code
λ gpg --keyserver https://keybase.io/ambv/ --recv-keys B26995E310250568
gpg: requesting key 10250568 from https server keybase.io
gpgkeys: no key data found for https://keybase.io/ambv/
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver receive failed: bad public key
Can let pyenv do all install,then it download directly from python.org/ftp/python
pyenv Simple Python Version Management
snippsat Wrote:
# Install
tom@tom:~$ pyenv install 3.8.1
Downloading Python-3.8.1.tar.xz...
-> https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
Installing Python-3.8.1...
Installed Python-3.8.1 to /home/tom/.pyenv/versions/3.8.1
 
# Set as system wide version
tom@tom:~$ pyenv global 3.8.1

# Test
tom@tom:~$ python
Python 3.8.1 (default, Feb 11 2020, 09:18:58) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(walrus := True)
True
>>> exit()
Reply
#5
Verified and installed - thank you...


(Dec-30-2020, 05:19 PM)snippsat Wrote: Get public key.
G:\div_code
λ gpg --recv-keys B26995E310250568
gpg: requesting key 10250568 from hkp server keys.gnupg.net
gpg: key 10250568: public key "\xc5\x81ukasz Langa (GPG langa.pl) <[email protected]>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
Test.
G:\div_code
λ  gpg --verify Python-3.9.1.tgz.asc
gpg: assuming signed data in `Python-3.9.1.tgz'
gpg: Signature made Mon Dec  7 23:37:32 2020     using RSA key ID 10250568
gpg: Good signature from "\xc5\x81ukasz Langa (GPG langa.pl) <[email protected]>"
gpg:                 aka "\xc5\x81ukasz Langa <[email protected]>"
gpg:                 aka "\xc5\x81ukasz Langa (Work e-mail account) <[email protected]>"
gpg:                 aka "[jpeg image of size 24479]"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: E3FF 2839 C048 B25C 084D  EBE9 B269 95E3 1025 0568
Get a warning,but it's okay look at fingerprint.
So this dos not work for me to get public key from the specified server,that's why get warning.
But method over is okay.
G:\div_code
λ gpg --keyserver https://keybase.io/ambv/ --recv-keys B26995E310250568
gpg: requesting key 10250568 from https server keybase.io
gpgkeys: no key data found for https://keybase.io/ambv/
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver receive failed: bad public key
Can let pyenv do all install,then it download directly from python.org/ftp/python
pyenv Simple Python Version Management
snippsat Wrote:
# Install
tom@tom:~$ pyenv install 3.8.1
Downloading Python-3.8.1.tar.xz...
-> https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
Installing Python-3.8.1...
Installed Python-3.8.1 to /home/tom/.pyenv/versions/3.8.1
 
# Set as system wide version
tom@tom:~$ pyenv global 3.8.1

# Test
tom@tom:~$ python
Python 3.8.1 (default, Feb 11 2020, 09:18:58) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(walrus := True)
True
>>> exit()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python script to verify Firmware option available in Device Manager rajithc 1 1,286 Mar-17-2023, 11:48 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020