Thursday, August 1, 2024

hp printer software does not install on linux ubuntu deepin

/utils.py:2039: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:

HP Linux Imaging and Printing System (ver. 3.16.7)
HPLIP Installer ver. 5.1


Installer log saved in: hplip-install_Thu-01-Aug-2024_18:02:22.log

core_install.py:1899: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if home_dir is "":
Traceback (most recent call last):
  File "/home/g/Downloads/hplip-3.16.7/./install.py", line 241, in <module>
    text_install.start(language, auto, test_depends, test_unknown, assume_network, max_retries, enable, disable)
  File "/home/g/Downloads/hplip-3.16.7/installer/text_install.py", line 60, in start
    core =  CoreInstall(MODE_INSTALLER, INTERACTIVE_MODE)
  File "/home/g/Downloads/hplip-3.16.7/installer/core_install.py", line 225, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 110, in __init__
    self.__readAuthType()  #self.__authType   
  File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 133, in __readAuthType
    distro_name =  get_distro_name().lower()
  File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 79, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'



chmod u+x ~/Downloads/hplip*.run
 ~/Downloads/hplip*.run
 
Traceback (most recent call last):
File "/home/g/Downloads/hplip-3.16.7/./install.py", line 241, in <module>
text_install.start(language, auto, test_depends, test_unknown, assume_network, max_retries, enable, disable)
File "/home/g/Downloads/hplip-3.16.7/installer/text_install.py", line 60, in start
core = CoreInstall(MODE_INSTALLER, INTERACTIVE_MODE)
File "/home/g/Downloads/hplip-3.16.7/installer/core_install.py", line 225, in __init__
self.passwordObj = password.Password(ui_mode)
File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 110, in __init__
self.__readAuthType() #self.__authType
File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 133, in __readAuthType
distro_name = get_distro_name().lower()
File "/home/g/Downloads/hplip-3.16.7/base/password.py", line 79, in get_distro_name
os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
 
 sudo apt install hplip-gui
 https://ubuntuhandbook.org/index.php/2021/07/install-latest-hplip-ubuntu-20-04-fix/
 hplip-3.16.7.run
https://sourceforge.net/projects/hplip/files/latest/download 
 
  dpkg -l hplip
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===============-============-============================================
ii hplip 3.21.12+dfsg0-1 amd64 HP Linux Printing and Imaging Sys
tem (HPLIP)