Comment 4 for bug 1992187

Revision history for this message
Alberto Donato (ack) wrote :

I also hit this issue, it seems get_distro_std_name got renamed but the code didn't get updated.

As a workaround, I managed to get it working with the following changes:

$ diff -u /usr/share/hplip/base/password.py.orig /usr/share/hplip/base/password.py
--- /usr/share/hplip/base/password.py.orig 2023-04-22 08:56:30.569359088 +0200
+++ /usr/share/hplip/base/password.py 2023-04-22 08:57:32.449282962 +0200
@@ -116,7 +116,7 @@
         # added replace() to remove the spaces in distro_name
         (os_name,_ver) = utils.get_distro_name() #.lower().replace(" ","")
         os_name = os_name.lower().replace(" ","")
- distro_name = get_distro_std_name(os_name)
+ distro_name = get_distro_name()
         self.__authType = user_conf.get('authentication', 'su_sudo', '')
         if self.__authType != "su" and self.__authType != "sudo":
             try:
@@ -319,7 +319,7 @@
     def __get_password_utils_ui(self):
         (os_name,_ver) = utils.get_distro_name()
         os_name = os_name.lower().replace(" ","")
- distro_name = get_distro_std_name(os_name)
+ distro_name = get_distro_name()
         if self.__authType == "sudo":
             AuthType, AuthCmd = 'sudo', 'sudo %s'
         else: