i have ubuntu 20.04 and my hp 6520 printer does not work

Asked by Erica Best on 2020-11-29

 Downloads sh hplip-3.20.9.run
Creating directory hplip-3.20.9
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.9 Self Extracting Archive..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

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

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installer log saved in: hplip-install_Sun-29-Nov-2020_16:47:18.log

Traceback (most recent call last):
  File "/home/erica/Downloads/hplip-3.20.9/base/password.py", line 85, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/erica/Downloads/hplip-3.20.9/./install.py", line 241, in <module>
    text_install.start(language, auto, test_depends, test_unknown, assume_network, max_retries, enable, disable)
  File "/home/erica/Downloads/hplip-3.20.9/installer/text_install.py", line 63, in start
    core = CoreInstall(MODE_INSTALLER, INTERACTIVE_MODE)
  File "/home/erica/Downloads/hplip-3.20.9/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/home/erica/Downloads/hplip-3.20.9/base/password.py", line 118, in __init__
    self.__readAuthType() # self.__authType
  File "/home/erica/Downloads/hplip-3.20.9/base/password.py", line 141, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/home/erica/Downloads/hplip-3.20.9/base/password.py", line 87, in get_distro_name
    import distro
ModuleNotFoundError: No module named 'distro'
i cant get pass this

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Erica Best (purplelover04) said :
#1

now i have this problem

➜ Downloads sh hplip-3.20.9.run
Creating directory hplip-3.20.9
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.9 Self Extracting Archive..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

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

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installer log saved in: hplip-install_Sun-29-Nov-2020_16:59:58.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a

INTRODUCTION
------------
This installer will install HPLIP version 3.20.9 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 20.04.

Is "Ubuntu 20.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (erica)'s password:

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

RUNNING HPLIP LIBS REMOVE COMMANDS
----------------------------------
sudo apt-get remove libhpmud0 libsane-hpaio
sudo apt-get remove libhpmud0 libsane-hpaio ( hp_libs_remove step 1)
OK

MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
python3-notify2 gui_qt5 OPTIONAL
python3-pyqt5-dbus gui_qt5 OPTIONAL
python3-pyqt5 gui_qt5 REQUIRED
python3-dbus fax REQUIRED
python3-pil scan OPTIONAL
python3-reportlab fax OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: python3-pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: python3-dbus (Python DBus - Python bindings for DBus)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt5': python3-notify2 (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'gui_qt5': python3-pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)
warning: Missing OPTIONAL dependency for option 'fax': python3-reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'scan': python3-pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
A package manager '/usr/bin/python3 /usr/bin/update-manager' appears to be running. Please quit the package manager and press enter to continue (i=ignore, r=retry*, f=force, q=quit) :

Revision history for this message
shivani mandora (shivani1708) said :
#2

select "f=force" option to quit the running manager.

And continue installation

Can you help with this problem?

Provide an answer of your own, or ask Erica Best for more information if necessary.

To post a message you must log in.