posta l'output al comando
Codice: Seleziona tutto
hp-systray -xCodice: Seleziona tutto
sudo apt install hplip-gui
Codice: Seleziona tutto
hp-systray -xCodice: Seleziona tutto
sudo apt install hplip-guiCodice: Seleziona tutto
paride@paride-System-Product-Name:~$ hp-systray -x
HP Linux Imaging and Printing System (ver. 3.20.9)
System Tray Status Service ver. 2.0
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.
error: Unable to lock /home/paride/.hplip/hp-systray.lock. Is hp-systray already running?
paride@paride-System-Product-Name:~$ sudo apt install hplip-gui
[sudo] password di paride:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
graphicsmagick libboost-program-options1.71.0 libgraphicsmagick++-q16-12
libgraphicsmagick-q16-3 libgtkmm-2.4-1v5
Usare "sudo apt autoremove" per rimuoverli.
I seguenti pacchetti aggiuntivi saranno inoltre installati:
hplip hplip-data libhpmud0 libsane-hpaio printer-driver-hpcups
I seguenti pacchetti NUOVI saranno installati:
hplip hplip-data hplip-gui libhpmud0 libsane-hpaio printer-driver-hpcups
0 aggiornati, 6 installati, 0 da rimuovere e 2 non aggiornati.
È necessario scaricare 7.149 kB di archivi.
Dopo quest'operazione, verranno occupati 15,3 MB di spazio su disco.
Continuare? [S/n] s
Scaricamento di:1 http://it.archive.ubuntu.com/ubuntu focal/main amd64 hplip-data all 3.20.3+dfsg0-2 [6.427 kB]
Scaricamento di:2 http://it.archive.ubuntu.com/ubuntu focal/main amd64 libhpmud0 amd64 3.20.3+dfsg0-2 [107 kB]
Scaricamento di:3 http://it.archive.ubuntu.com/ubuntu focal/main amd64 libsane-hpaio amd64 3.20.3+dfsg0-2 [126 kB]
Scaricamento di:4 http://it.archive.ubuntu.com/ubuntu focal/main amd64 printer-driver-hpcups amd64 3.20.3+dfsg0-2 [266 kB]
Scaricamento di:5 http://it.archive.ubuntu.com/ubuntu focal/main amd64 hplip amd64 3.20.3+dfsg0-2 [204 kB]
Scaricamento di:6 http://it.archive.ubuntu.com/ubuntu focal/universe amd64 hplip-gui all 3.20.3+dfsg0-2 [19,1 kB]
Recuperati 7.149 kB in 1s (4.776 kB/s)
Selezionato il pacchetto hplip-data non precedentemente selezionato.
(Lettura del database... 275846 file e directory attualmente installati.)
Preparativi per estrarre .../0-hplip-data_3.20.3+dfsg0-2_all.deb...
Estrazione di hplip-data (3.20.3+dfsg0-2)...
Selezionato il pacchetto libhpmud0:amd64 non precedentemente selezionato.
Preparativi per estrarre .../1-libhpmud0_3.20.3+dfsg0-2_amd64.deb...
Estrazione di libhpmud0:amd64 (3.20.3+dfsg0-2)...
Selezionato il pacchetto libsane-hpaio:amd64 non precedentemente selezionato.
Preparativi per estrarre .../2-libsane-hpaio_3.20.3+dfsg0-2_amd64.deb...
Estrazione di libsane-hpaio:amd64 (3.20.3+dfsg0-2)...
Selezionato il pacchetto printer-driver-hpcups non precedentemente selezionato.
Preparativi per estrarre .../3-printer-driver-hpcups_3.20.3+dfsg0-2_amd64.deb...
Estrazione di printer-driver-hpcups (3.20.3+dfsg0-2)...
Selezionato il pacchetto hplip non precedentemente selezionato.
Preparativi per estrarre .../4-hplip_3.20.3+dfsg0-2_amd64.deb...
Estrazione di hplip (3.20.3+dfsg0-2)...
Selezionato il pacchetto hplip-gui non precedentemente selezionato.
Preparativi per estrarre .../5-hplip-gui_3.20.3+dfsg0-2_all.deb...
Estrazione di hplip-gui (3.20.3+dfsg0-2)...
Configurazione di hplip-data (3.20.3+dfsg0-2)...
Configurazione di libhpmud0:amd64 (3.20.3+dfsg0-2)...
Configurazione di libsane-hpaio:amd64 (3.20.3+dfsg0-2)...
Configurazione di printer-driver-hpcups (3.20.3+dfsg0-2)...
Configurazione di hplip (3.20.3+dfsg0-2)...
Creating/updating hplip user account...
Configurazione di hplip-gui (3.20.3+dfsg0-2)...
Elaborazione dei trigger per desktop-file-utils (0.24-1ubuntu3)...
Elaborazione dei trigger per mime-support (3.64ubuntu1)...
Elaborazione dei trigger per cups (2.3.1-9ubuntu1.1)...
Elaborazione dei trigger per gnome-menus (3.36.0-1ubuntu1)...
Elaborazione dei trigger per libc-bin (2.31-0ubuntu9.1)...
Elaborazione dei trigger per man-db (2.9.1-1)...
Elaborazione dei trigger per dbus (1.12.16-2ubuntu2.1)...Codice: Seleziona tutto
Hi ,
>
> Were you able to install the plugin successfully?
> If you are facing issue via hp-plugin then please install via $sh
> hplip-3.20.9.plugin.run command.
> After that print should work fine.
>
Codice: Seleziona tutto
lpr -P nome_stampante tuo_pdf.pdfCodice: Seleziona tutto
lpinfoCodice: Seleziona tutto
error: ubuntu-20.04 version is not supported, so all dependencies may not be installed. However trying to install using ubuntu-19.10 version packages.Codice: Seleziona tutto
paride@paride-System-Product-Name:~$ lpstat -p -d
la stampante HP_LaserJet_Professional_P_1102w è inattiva. è stata abilitata da gio 19 nov 2020, 18:44:09
destinazione predefinita del sistema: HP_LaserJet_Professional_P_1102w

Codice: Seleziona tutto
dpkg -l | grep hpCodice: Seleziona tutto
sudo apt updateCodice: Seleziona tutto
paride@paride-System-Product-Name:~$ dpkg -l | grep hp
ii hplip 3.20.3+dfsg0-2 amd64 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 3.20.3+dfsg0-2 all HP Linux Printing and Imaging - data files
ii hplip-doc 3.20.3+dfsg0-2 all HP Linux Printing and Imaging - documentation
ii hplip-gui 3.20.3+dfsg0-2 all HP Linux Printing and Imaging - GUI utilities (Qt-based)
ii libhpmud0:amd64 3.20.3+dfsg0-2 amd64 HP Multi-Point Transport Driver (hpmud) run-time libraries
ii libsane-hpaio:amd64 3.20.3+dfsg0-2 amd64 HP SANE backend for multi-function peripherals
ii printer-driver-hpcups 3.20.3+dfsg0-2 amd64 HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ri printer-driver-postscript-hp 3.20.3+dfsg0-2 amd64 HP Printers PostScript Descriptions
ii python3-launchpadlib 1.10.13-1 all Launchpad web services client library (Python 3)
paride@paride-System-Product-Name:~$
paride@paride-System-Product-Name:~$ sudo apt update
Trovato:1 http://it.archive.ubuntu.com/ubuntu focal InRelease
Trovato:2 http://it.archive.ubuntu.com/ubuntu focal-updates InRelease
Trovato:3 http://it.archive.ubuntu.com/ubuntu focal-backports InRelease
Scaricamento di:4 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Scaricamento di:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24,2 kB]
Scaricamento di:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [56,6 kB]
Recuperati 188 kB in 1s (148 kB/s)
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Tutti i pacchetti sono aggiornati.
paride@paride-System-Product-Name:~$ Codice: Seleziona tutto
paride@paride-System-Product-Name:~$ hp-plugin
HP Linux Imaging and Printing System (ver. 3.20.9)
Plugin Download and Install Utility ver. 2.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.
HP Linux Imaging and Printing System (ver. 3.20.9)
Plugin Download and Install Utility ver. 2.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.
Codice: Seleziona tutto
paride@paride-System-Product-Name:~$ hp-plugin
HP Linux Imaging and Printing System (ver. 3.20.9)
Plugin Download and Install Utility ver. 2.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.
HP Linux Imaging and Printing System (ver. 3.20.9)
Plugin Download and Install Utility ver. 2.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.
Checking for network connection...
Downloading plug-in from:
Traceback (most recent call last):
File "/usr/share/hplip/ui5/plugindialog.py", line 248, in NextButton_clicked
status, download_plugin_file, error_str = self.pluginObj.download(self.plugin_path,self.plugin_download_callback)
File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
core = core_install.CoreInstall()
File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
self.passwordObj = password.Password(ui_mode)
File "/usr/share/hplip/base/password.py", line 88, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
return distro.linux_distribution(full_distribution_name=False)[0]
File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
self.version(),
File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
self.lsb_release_attr('release'),
File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permesso negato: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/share/hplip/ui5/plugindialog.py", line 248, in NextButton_clicked
status, download_plugin_file, error_str = self.pluginObj.download(self.plugin_path,self.plugin_download_callback)
File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
core = core_install.CoreInstall()
File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
self.passwordObj = password.Password(ui_mode)
File "/usr/share/hplip/base/password.py", line 88, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
return distro.linux_distribution(full_distribution_name=False)[0]
File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
self.version(),
File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
self.lsb_release_attr('release'),
File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.


Codice: Seleziona tutto
paride@paride-System-Product-Name:~$ apt list hplip
Elencazione... Fatto
hplip/focal,now 3.20.3+dfsg0-2 amd64 [installato]
Codice: Seleziona tutto
hplip-install[8704]: info: :
hplip-install[8704]: info: :[01mHP Linux Imaging and Printing System (ver. 3.20.3)[0m
hplip-install[8704]: info: :[01mHPLIP Installer ver. 5.1[0m
hplip-install[8704]: info: :
hplip-install[8704]: info: :Copyright (c) 2001-18 HP Development Company, LP
hplip-install[8704]: info: :This software comes with ABSOLUTELY NO WARRANTY.
hplip-install[8704]: info: :This is free software, and you are welcome to distribute it
hplip-install[8704]: info: :under certain conditions. See COPYING file for more details.
hplip-install[8704]: info: :
hplip-install[8704]: info: :Installer log saved in: [01mhplip-install_Fri-20-Nov-2020_06:22:37.log[0m
hplip-install[8704]: info: :
hplip-install[8704]: info: :
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: ubuntu-20.04 version is not supported, so all dependencies may not be installed. However trying to install using ubuntu-19.10 version packages.
hplip-install[8704]: info: :Installation exitCodice: Seleziona tutto
paride@paride-System-Product-Name:~$ apt show hplip
Package: hplip
Version: 3.20.3+dfsg0-2
Priority: optional
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 531 kB
Depends: adduser, cups, hplip-data (= 3.20.3+dfsg0-2), libhpmud0 (= 3.20.3+dfsg0-2), libsane-hpaio (= 3.20.3+dfsg0-2), lsb-base, printer-driver-hpcups (= 3.20.3+dfsg0-2), python3-dbus, python3-gi, python3-pexpect, python3-pil, python3-reportlab, wget, python3:any, xz-utils, python3 (<< 3.9), python3 (>= 3.8~), libc6 (>= 2.14), libcups2 (>= 1.6.0), libdbus-1-3 (>= 1.9.14), libpython3.8 (>= 3.8.2), libsane (>= 1.0.24)
Recommends: avahi-daemon, policykit-1, printer-driver-postscript-hp, sane-utils
Suggests: hplip-doc, hplip-gui, python3-notify2, system-config-printer
Homepage: https://developers.hp.com/hp-linux-imaging-and-printing
Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Download-Size: 204 kB
APT-Manual-Installed: yes
APT-Sources: http://it.archive.ubuntu.com/ubuntu focal/main amd64 Packages
Description: sistema HP Linux Printing and Imaging (HPLIP)
Il sistema HP Linux Printing and Imaging offre pieno supporto per la
stampa sulla maggior parte delle stampanti HP SFP (single function
peripheral) a getto di inchiostro e molte LaserJet, per la scansione,
l'invio dei fax e l'accesso alle schede di memoria sulla maggior parte dei
dispositivi MFP (multi-function peripheral) multifunzione di HP.
.
HPLIP is composed of:
* System services to handle communications with the printers
* HP CUPS backend driver (hp:) with bi-directional communication with
HP printers (provides printer status feedback to CUPS and enhanced
HPIJS functionality such as 4-side full-bleed printing support)
* HP CUPS backend driver for sending faxes (hpfax:)
* hpcups CUPS Raster driver to turn rasterized input from the CUPS
filter chain into the printer's native format (PCL, LIDIL, ...).
(hpcups is shipped in a separate package)
* HPIJS Ghostscript IJS driver to rasterize output from PostScript(tm)
files or from any other input format supported by Ghostscript, and
also for PostScript(tm) to fax conversion support
(HPIJS is shipped in a separate package)
* Command line utilities to perform printer maintenance, such as
ink-level monitoring or pen cleaning and calibration
* GUI and command line utility to download data from the photo card
interfaces in MFP devices
* GUI and command line utilities to interface with the fax functions
* A GUI toolbox to access all these functions in a friendly way
* HPAIO SANE backend (hpaio) for flatbed and Automatic Document Feeder
(ADF) scanning using MFP devices
.
Sono supportati dispositivi USB e JetDirect (via rete).
paride@paride-System-Product-Name:~$

Codice: Seleziona tutto
sudo apt-get purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds \
libsane-hpaio printer-driver-hpcups printer-driver-hpijs
sudo rm -rf /usr/share/hplip/
sudo apt-get -f install
sudo apt-get autoremove


Fatto. Scusa l'inesperienzatrekfan1 ha scritto: ↑venerdì 11 dicembre 2020, 12:07Il [Risolto] va scritto evitando il tutto maiuscolo e tra parentesi quadre così come lo ho scritto io, correggi, grazie
Inoltre i listati anche se brevi vanno inseriti tra tag CODE (tasto </> dell'editor completo) ti ho corretto i post in prima pagina ma non ho corretto nella seconda, procedi a sistemare quanto prima, grazie![]()

Prova questo:paride46 ha scritto: ↑venerdì 6 novembre 2020, 19:24Non funziona. Rimane in attesa. Ho dovuto fermarlo manualmente.
Ho aperto il problema sul sito degli sviluppatori, speriamo mi rispondano.
Codice: Seleziona tutto
paride@paride-System-Product-Name:~$ pdb3 /usr/share/hplip/plugin.py > /usr/share/hplip/plugin.py(23)<module>() -> __version__ = '2.1' (Pdb) (Pdb) (Pdb) [2]+ Fermato pdb3 /usr/share/hplip/plugin.py
Codice: Seleziona tutto
pdb3 /usr/share/hplip/plugin.py -i -g
Ti ringrazio molto per l'interessamento, ma come ho pubblicato ieri 10 dic 2020 sul forum alle 14:41 il problema è risoltomagozurlinux ha scritto: ↑venerdì 11 dicembre 2020, 17:13Prova questo:paride46 ha scritto: ↑venerdì 6 novembre 2020, 19:24Non funziona. Rimane in attesa. Ho dovuto fermarlo manualmente.
Ho aperto il problema sul sito degli sviluppatori, speriamo mi rispondano.
Codice: Seleziona tutto
paride@paride-System-Product-Name:~$ pdb3 /usr/share/hplip/plugin.py > /usr/share/hplip/plugin.py(23)<module>() -> __version__ = '2.1' (Pdb) (Pdb) (Pdb) [2]+ Fermato pdb3 /usr/share/hplip/plugin.py
Codice: Seleziona tutto
pdb3 /usr/share/hplip/plugin.py -i -g
Visualizzano questa sezione: Bing [Bot] e 12 ospiti