[Risolto] Problema con hplip e Multifunzione HP

Riconoscimento, installazione e configurazione delle periferiche.
Scrivi risposta
GertdalPozzo
Prode Principiante
Messaggi: 21
Iscrizione: lunedì 21 settembre 2015, 14:40
Desktop: mate
Distribuzione: Ubuntu 22.10
Sesso: Maschile

[Risolto] Problema con hplip e Multifunzione HP

Messaggio da GertdalPozzo »

    Salve a tutti.
    Ho un problema ad installare i plugin per la scansione della stampante HP Laser Jet Pro MFP m28a.
    Ho seguito alcune guide sul forum, in particolare la seguente discussione:
    viewtopic.php?f=9&t=635591&hilit=m28a

    Premetto che la stampante funziona perfettamente, è lo scanner che, pur venendo riconosciuto, appena parte il programma XSane, mi dice che deve essere installato un plugin mancante.
    La versione di hplip installata è l'ultima disponibile sul sito ufficiale della HP, ovvero la 3.23.5
    Il sistema installato sul pc in cui vorrei far funzionare lo scanner è Ubuntu Mate 22.10

    Il problema su cui mi sono incagliato è il seguente: quando digito il seguate comando:

    Codice: Seleziona tutto

    hp-plugin -i
    il risultato da terminale è che sembra non riuscire a collegarsi al server per scaricare il plugin dello scanner

    Codice: Seleziona tutto

    HP Linux Imaging and Printing System (ver. 3.23.5)
    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.23.5)
    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.
    
    (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
    
    
    -----------------------------------------
    | PLUG-IN INSTALLATION FOR HPLIP 3.23.5 |
    -----------------------------------------
    
      Option      Description                                       
      ----------  --------------------------------------------------
      d           Download plug-in from HP (recommended)            
      p           Specify a path to the plug-in (advanced)          
      q           Quit hp-plugin (skip installation)                
    
    Enter option (d=download*, p=specify path, q=quit) ? d
    
    -------------------
    | DOWNLOAD PLUGIN |
    -------------------
    
    Checking for network connection...
    error: Network connection not detected.
    Se qualcuno potesse aiutarmi sarei molto grato.
    Grazie mille
    Ultima modifica di GertdalPozzo il domenica 23 luglio 2023, 10:46, modificato 1 volta in totale.
    GertdalPozzo
    Prode Principiante
    Messaggi: 21
    Iscrizione: lunedì 21 settembre 2015, 14:40
    Desktop: mate
    Distribuzione: Ubuntu 22.10
    Sesso: Maschile

    Re: Problema con hplip e Multifunzione HP

    Messaggio da GertdalPozzo »

    Se a qualcuno può essere utile posto anche il risultato del comando:

    Codice: Seleziona tutto

    hp-plugin -i -g
    che, rispetto al precedente, aggiunge l'opzione di debug.

    Codice: Seleziona tutto

    HP Linux Imaging and Printing System (ver. 3.23.5)
    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.23.5)
    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-plugin[12990]: debug: Locking: /home/emiliano/.hplip/hp-plugin.lock
    hp-plugin[12990]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
    hp-plugin[12990]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
    (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
    
    
    -----------------------------------------
    | PLUG-IN INSTALLATION FOR HPLIP 3.23.5 |
    -----------------------------------------
    
      Option      Description                                       
      ----------  --------------------------------------------------
      d           Download plug-in from HP (recommended)            
      p           Specify a path to the plug-in (advanced)          
      q           Quit hp-plugin (skip installation)                
    
    Enter option (d=download*, p=specify path, q=quit) ? 
    
    -------------------
    | DOWNLOAD PLUGIN |
    -------------------
    
    Checking for network connection...
    hp-plugin[12990]: debug: /usr/bin/wget --cache=off --tries=3 --timeout=60 --output-document=- http://www.hp.com --spider -S
    hp-plugin[12990]: debug: Spider mode enabled. Check if remote file exists.
    --2023-07-20 16:29:01--  http://www.hp.com/
    Resolving www.hp.com (www.hp.com)... 2a02:26f0:df::212:fed8, 2a02:26f0:df::212:fed3, 173.222.106.185, ...
    Connecting to www.hp.com (www.hp.com)|2a02:26f0:df::212:fed8|:80... connected.
    HTTP request sent, awaiting response... 
      HTTP/1.1 503 Service Unavailable
      Server: AkamaiGHost
      Mime-Version: 1.0
      Content-Type: text/html
      Content-Length: 176
      Expires: Thu, 20 Jul 2023 14:29:01 GMT
      Date: Thu, 20 Jul 2023 14:29:01 GMT
      Connection: keep-alive
      Set-Cookie: aka_client_code=IT-
      Akamai-GRN: 0.d4fe1202.1689863341.594db2c
      Server-Timing: ak_p; desc="469406_34799316_93641516_35_7577_23_-_-";dur=1
    Remote file does not exist -- broken link!!!
    
    
    hp-plugin[12990]: debug: wget returned: 8
    hp-plugin[12990]: debug: /usr/bin/curl --output - --connect-timeout 5 --max-time 10 http://www.hp.com --head
    hp-plugin[12990]: debug: Traceback (most recent call last):
      File "/usr/bin/hp-plugin", line 354, in <module>
        ok = utils.check_network_connection()
      File "/usr/share/hplip/base/utils.py", line 2294, in check_network_connection
        status = download_via_curl(url, head=True)
      File "/usr/share/hplip/base/utils.py", line 2272, in download_via_curl
        status, output = run(cmd)
      File "/usr/share/hplip/base/utils.py", line 1295, in run
        child = pexpect.spawnu(cmd, timeout=timeout)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
        super(spawnu, self).__init__(*args, **kwargs)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
        self._spawn(command, args)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
        os.execv(self.command, self.args)
    PermissionError: [Errno 13] Permission denied
    Error in sys.excepthook:
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 128, in apport_excepthook
        increment_crash_counter(pr, pr_filename)
      File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 355, in increment_crash_counter
        fd = os.open(filename, os.O_NOFOLLOW | os.O_RDONLY | os.O_NONBLOCK)
    PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'
    
    Original exception was:
    Traceback (most recent call last):
      File "/usr/bin/hp-plugin", line 354, in <module>
        ok = utils.check_network_connection()
      File "/usr/share/hplip/base/utils.py", line 2294, in check_network_connection
        status = download_via_curl(url, head=True)
      File "/usr/share/hplip/base/utils.py", line 2272, in download_via_curl
        status, output = run(cmd)
      File "/usr/share/hplip/base/utils.py", line 1295, in run
        child = pexpect.spawnu(cmd, timeout=timeout)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
        super(spawnu, self).__init__(*args, **kwargs)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
        self._spawn(command, args)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
        os.execv(self.command, self.args)
    PermissionError: [Errno 13] Permission denied
    
    hp-plugin[12990]: debug: curl returned: 1
    hp-plugin[12990]: debug: /usr/bin/ping -c1 -W1 -w10 www.hp.com
    hp-plugin[12990]: debug: Traceback (most recent call last):
      File "/usr/bin/hp-plugin", line 354, in <module>
        ok = utils.check_network_connection()
      File "/usr/share/hplip/base/utils.py", line 2296, in check_network_connection
        status = check_network_via_ping(ping_server)
      File "/usr/share/hplip/base/utils.py", line 2285, in check_network_via_ping
        status, output = run(cmd)
      File "/usr/share/hplip/base/utils.py", line 1295, in run
        child = pexpect.spawnu(cmd, timeout=timeout)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
        super(spawnu, self).__init__(*args, **kwargs)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
        self._spawn(command, args)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
        os.execv(self.command, self.args)
    PermissionError: [Errno 13] Permission denied
    Error in sys.excepthook:
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 128, in apport_excepthook
        increment_crash_counter(pr, pr_filename)
      File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 355, in increment_crash_counter
        fd = os.open(filename, os.O_NOFOLLOW | os.O_RDONLY | os.O_NONBLOCK)
    PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'
    
    Original exception was:
    Traceback (most recent call last):
      File "/usr/bin/hp-plugin", line 354, in <module>
        ok = utils.check_network_connection()
      File "/usr/share/hplip/base/utils.py", line 2296, in check_network_connection
        status = check_network_via_ping(ping_server)
      File "/usr/share/hplip/base/utils.py", line 2285, in check_network_via_ping
        status, output = run(cmd)
      File "/usr/share/hplip/base/utils.py", line 1295, in run
        child = pexpect.spawnu(cmd, timeout=timeout)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
        super(spawnu, self).__init__(*args, **kwargs)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
        self._spawn(command, args)
      File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
        os.execv(self.command, self.args)
    PermissionError: [Errno 13] Permission denied
    
    hp-plugin[12990]: debug: ping returned: 1
    error: Network connection not detected.
    hp-plugin[12990]: debug: Unlocking: /home/emiliano/.hplip/hp-plugin.lock
    
    Fatemi sapere se qualcuno ha qualche idea.
    Grazie mille.
    GertdalPozzo
    Prode Principiante
    Messaggi: 21
    Iscrizione: lunedì 21 settembre 2015, 14:40
    Desktop: mate
    Distribuzione: Ubuntu 22.10
    Sesso: Maschile

    Re: Problema con hplip e Multifunzione HP

    Messaggio da GertdalPozzo »

    In attesa di qualche consiglio provo a postare i risultati di alcuni comandi proposti in un'altra discussione che riguarda, come nel mio caso, una multifunzione HP con scanner HP non funzionante.
    La discussione è la seguente: viewtopic.php?f=9&t=653277&sid=8a960f7e ... 9574c0cbf7

    Premetto che ho installato la stampante con il comando

    Codice: Seleziona tutto

    hp-setup -i
    Ecco i risultati dei comandi suggeriti:

    Codice: Seleziona tutto

    dpkg -l | grep hplip

    Codice: Seleziona tutto

    ii  hplip                                         3.22.6+dfsg0-1                           amd64        HP Linux Printing and Imaging System (HPLIP)
    ii  hplip-data                                    3.22.6+dfsg0-1                           all          HP Linux Printing and Imaging - data files
    ii  hplip-gui                                     3.22.6+dfsg0-1                           all          HP Linux Printing and Imaging - GUI utilities (Qt-based)
    

    Codice: Seleziona tutto

    hp-check

    Codice: Seleziona tutto

    Saving output in log file: /home/emiliano/hp-check.log
    
    HP Linux Imaging and Printing System (ver. 3.23.5)
    Dependency/Version Check Utility ver. 15.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.
    
    Note: hp-check can be run in three modes:
    1. Compile-time check mode (-c or --compile): Use this mode before compiling the
    HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
    are installed to successfully compile HPLIP.                                    
    2. Run-time check mode (-r or --run): Use this mode to determine if a distro    
    supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   
    has the proper dependencies installed to successfully run.                      
    3. Both compile- and run-time check mode (-b or --both) (Default): This mode    
    will check both of the above cases (both compile- and run-time dependencies).   
    
    Check types:                                                                    
    a. EXTERNALDEP - External Dependencies                                          
    b. GENERALDEP - General Dependencies (required both at compile and run time)    
    c. COMPILEDEP - Compile time Dependencies                                       
    d. [All are run-time checks]                                                    
    PYEXT SCANCONF QUEUES PERMISSION                                                
    
    Status Types:
        OK
        MISSING       - Missing Dependency or Permission or Plug-in
        INCOMPAT      - Incompatible dependency-version or Plugin-version
    
    -Traceback (most recent call last):
      File "/usr/bin/hp-check", line 861, in <module>
        dep.core.init()
      File "/usr/share/hplip/installer/core_install.py", line 523, in init
        self.get_distro()
      File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
        if 'MX' in distro_release_name:
    NameError: name 'distro_release_name' is not defined
    

    Codice: Seleziona tutto

    sudo scanimage -L

    Codice: Seleziona tutto

    Created directory: /var/lib/snmp/cert_indexes
    device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3B83515' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
    

    Codice: Seleziona tutto

    sudo sane-find-scanner

    Codice: Seleziona tutto

    # sane-find-scanner will now attempt to detect your scanner. If the
      # result is different from what you expected, first make sure your
      # scanner is powered up and properly connected to your computer.
    
      # No SCSI scanners found. If you expected something different, make sure that
      # you have loaded a kernel SCSI driver for your SCSI adapter.
    
    found possible USB scanner (vendor=0x03f0 [HP], product=0xbf2a [HP LaserJet MFP M28-M31]) at libusb:001:002
      # Your USB scanner was (probably) detected. It may or may not be supported by
      # SANE. Try scanimage -L and read the backend's manpage.
    
      # Not checking for parallel port scanners.
    
      # Most Scanners connected to the parallel port or other proprietary ports
      # can't be detected by this program.
    
    Attendo consigli e guide spirituali.
    Grazie mille.
    Roberto Pontecorvi
    Rampante Reduce
    Rampante Reduce
    Messaggi: 6633
    Iscrizione: mercoledì 20 maggio 2009, 22:48
    Distribuzione: 18.4 mate - 22.4 mate
    Sesso: Maschile
    Località: Versilia

    Re: Problema con hplip e Multifunzione HP

    Messaggio da Roberto Pontecorvi »

    Prona a scaricare i plugin da qui e installarli con l'opzione "p" specificando ilp ercorso del file. Per scaricare i plugin -> https://www.openprinting.org/download/p ... P/plugins/ - il file da scaricare deve essere quello relativo alla versione di hplip che hai installato con estensione .run, per sicurezza scarica anche quello con erstensione .asc.
    GertdalPozzo
    Prode Principiante
    Messaggi: 21
    Iscrizione: lunedì 21 settembre 2015, 14:40
    Desktop: mate
    Distribuzione: Ubuntu 22.10
    Sesso: Maschile

    Re: Problema con hplip e Multifunzione HP

    Messaggio da GertdalPozzo »

    Roberto Pontecorvi ha scritto:
    venerdì 21 luglio 2023, 21:04
    Prona a scaricare i plugin da qui e installarli con l'opzione "p" specificando ilp ercorso del file. Per scaricare i plugin -> https://www.openprinting.org/download/p ... P/plugins/ - il file da scaricare deve essere quello relativo alla versione di hplip che hai installato con estensione .run, per sicurezza scarica anche quello con erstensione .asc.

    Intanto grazie mille per il consiglio. Era una procedura che avevo già provato e per sicurezza ho riprovato di nuovo.
    Per scaricare i file ho copiato e incollato il contenuto degli script in due nuovi file di testo creati sul desktop (hplip-3.23.5-plugin.run e hplip-3.23.5-plugin.run.asc) e gli ho dato permessi di esecuzione con "chmod u+x".
    Purtroppo nemmeno questa procedura va a buon fine. Ti posto il risultato:

    Codice: Seleziona tutto

    emiliano@AspireE1-522:~$ hp-plugin -i
    
    HP Linux Imaging and Printing System (ver. 3.23.5)
    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.23.5)
    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.
    
    (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
    
    
    -----------------------------------------
    | PLUG-IN INSTALLATION FOR HPLIP 3.23.5 |
    -----------------------------------------
    
      Option      Description                                       
      ----------  --------------------------------------------------
      d           Download plug-in from HP (recommended)            
      p           Specify a path to the plug-in (advanced)          
      q           Quit hp-plugin (skip installation)                
    
    Enter option (d=download*, p=specify path, q=quit) ? p
    Enter the path to the 'hplip-3.23.5-plugin.run' file (q=quit) : /home/emiliano/Desktop
    
    ---------------
    | COPY PLUGIN |
    ---------------
    
    Downloading plug-in from: file:///home/emiliano/Desktop/hplip-3.23.5-plugin.run
    Downloading plug-in: [\                                   ] 0%  1100%Importing digital key
     
    error: Digital signature verification failed for the file /home/emiliano/.hplip/hplip-3.23.5-plugin.run. File may have been corrupted or altered
    Ho provato anche ad avviare hplip-3.23.5-plugin.run con il comando bash, ma mi restituisce il seguente errore:

    Codice: Seleziona tutto

    emiliano@AspireE1-522:~$ bash /home/emiliano/Desktop/hplip-3.23.5-plugin.run
    Verifying archive integrity...  100%  Error in MD5 checksums: 58da47a5c69bbb6ec94d0cd7ce44dea7 is different from 258bc4e8a1cb945f21ac0077a49a729a
    
    Avatar utente
    corradoventu
    Imperturbabile Insigne
    Imperturbabile Insigne
    Messaggi: 3984
    Iscrizione: domenica 27 aprile 2008, 22:23
    Desktop: GNOME
    Distribuzione: Ubuntu 22.04,23.10,24.04,24.10
    Sesso: Maschile
    Località: Rezzoaglio (GE)
    Contatti:

    Re: Problema con hplip e Multifunzione HP

    Messaggio da corradoventu »

    Hai provato a usare simple-scan ? se non lo hai dovresti trovarlo nel repository

    Codice: Seleziona tutto

    sudo apt install simple-scan
    Con o senza religione, i buoni si comportano bene e i cattivi male, ma ci vuole la religione per far comportare male i buoni.
    (Steven Weinberg)
    GertdalPozzo
    Prode Principiante
    Messaggi: 21
    Iscrizione: lunedì 21 settembre 2015, 14:40
    Desktop: mate
    Distribuzione: Ubuntu 22.10
    Sesso: Maschile

    Re: Problema con hplip e Multifunzione HP

    Messaggio da GertdalPozzo »

    corradoventu ha scritto:
    sabato 22 luglio 2023, 8:24
    Hai provato a usare simple-scan ? se non lo hai dovresti trovarlo nel repository

    Codice: Seleziona tutto

    sudo apt install simple-scan

    Anche questa opzione l'avevo già provata. Per scrupolo ho riprovato a lanciare simple-scan da terminale ma non funziona.
    Posto il risultato dello screenshot:

    Immagine

    Se proseguo nel tentativo di installare il plugin, il problema è il medesimo esposto a inizio discussione: non installa il plugin, sia specificando un percorso locale, che scegliendo l'opzione download da server.
    Grazie mille comunque.
    freengin
    Prode Principiante
    Messaggi: 229
    Iscrizione: lunedì 18 marzo 2019, 11:19

    Re: Problema con hplip e Multifunzione HP

    Messaggio da freengin »

    GertdalPozzo ha scritto:
    giovedì 20 luglio 2023, 8:20
    Il sistema installato sul pc in cui vorrei far funzionare lo scanner è Ubuntu Mate 22.10
    La 22.10 è EOL
    GertdalPozzo
    Prode Principiante
    Messaggi: 21
    Iscrizione: lunedì 21 settembre 2015, 14:40
    Desktop: mate
    Distribuzione: Ubuntu 22.10
    Sesso: Maschile

    Re: Problema con hplip e Multifunzione HP

    Messaggio da GertdalPozzo »

    freengin ha scritto:
    sabato 22 luglio 2023, 9:36
    GertdalPozzo ha scritto:
    giovedì 20 luglio 2023, 8:20
    Il sistema installato sul pc in cui vorrei far funzionare lo scanner è Ubuntu Mate 22.10
    La 22.10 è EOL

    Dici che il problema potrebbe essere quello?
    Magari provo ad aggiornare il S.O. ma mi ci vorrà un po' di tempo.
    GertdalPozzo
    Prode Principiante
    Messaggi: 21
    Iscrizione: lunedì 21 settembre 2015, 14:40
    Desktop: mate
    Distribuzione: Ubuntu 22.10
    Sesso: Maschile

    Re: Problema con hplip e Multifunzione HP

    Messaggio da GertdalPozzo »

    freengin ha scritto:
    sabato 22 luglio 2023, 9:36
    GertdalPozzo ha scritto:
    giovedì 20 luglio 2023, 8:20
    Il sistema installato sul pc in cui vorrei far funzionare lo scanner è Ubuntu Mate 22.10
    La 22.10 è EOL

    Appena installata la Ubuntu Mate 22.04 LTS tutto funziona a meraviglia: sia stampante che scanner.
    Grazie mille a tutti per l'aiuto.
    Scrivi risposta

    Ritorna a “Driver e periferiche”

    Chi c’è in linea

    Visualizzano questa sezione: Google [Bot] e 10 ospiti