View Issue Details

IDProjectCategoryView StatusLast Update
0018252CentOS-8hplippublic2021-07-21 19:21
Reportersfokin Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version8.4.2105 
Summary0018252: hp-plugin can't download gpg key
DescriptionDuring installation 'hp-plugin -i' tool can't download gpg key from server, because it uses incorrect server.
Second problem is this tool makes own gpg dir with incorrect permissions.
Steps To Reproducerun 'hp-pligin -i' and choose default options.
You will see 'error: Unable to recieve key from keyserver'
Additional InformationI've prepared the patch to fix this issue.
TagsNo tags attached.

Activities

sfokin

sfokin

2021-07-21 11:41

reporter  

hplip-3.18.4-gpgdir-rules-gpg-server.patch (1,321 bytes)   
diff -uprN a/base/password.py b/base/password.py
--- a/base/password.py	2021-07-16 11:19:07.363594142 +0300
+++ b/base/password.py	2021-07-16 11:19:52.441320237 +0300
@@ -56,6 +56,7 @@ AUTH_TYPES = {'mepis': 'su',
               'boss': 'su',
               'lfs': 'su',
               'manjarolinux': 'sudo',
+              'almalinux': 'su',
               }
 
 
diff -uprN a/base/validation.py b/base/validation.py
--- a/base/validation.py	2021-07-16 11:19:07.364594092 +0300
+++ b/base/validation.py	2021-07-16 11:22:50.609324314 +0300
@@ -42,7 +42,7 @@ class DigiSign_Verification(object):
 
 
 class GPG_Verification(DigiSign_Verification):
-    def __init__(self, pgp_site = 'pool.sks-keyservers.net', key = 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9):
+    def __init__(self, pgp_site = 'pgp.mit.edu', key = 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9):
         self.__pgp_site = pgp_site
         self.__key = key
         self.__gpg = utils.which('gpg',True)
@@ -55,7 +55,7 @@ class GPG_Verification(DigiSign_Verifica
 
         if not os.path.exists(self.__gpg_dir):
             try:
-                os.mkdir(self.__gpg_dir, 0o755)
+                os.mkdir(self.__gpg_dir, 0o700)
             except OSError:
                 log.error("Failed to create %s" % self.__gpg_dir)
         self.__change_owner()
carlwgeorge

carlwgeorge

2021-07-21 19:21

developer   ~0038547

CentOS Linux 8 and CentOS Stream 8 have the same version of this package, hplip-3.18.4-9.el8. Based on that it's reasonable to assume this bug is reproducible on CentOS Stream 8. Please open a bugzilla to engage with the RHEL maintainer on a solution.

https://wiki.centos.org/ReportBugs
https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&version=CentOS%20Stream

Issue History

Date Modified Username Field Change
2021-07-21 11:41 sfokin New Issue
2021-07-21 11:41 sfokin File Added: hplip-3.18.4-gpgdir-rules-gpg-server.patch
2021-07-21 19:21 carlwgeorge Status new => closed
2021-07-21 19:21 carlwgeorge Resolution open => fixed
2021-07-21 19:21 carlwgeorge Note Added: 0038547