[Risolto] Scanner HP DeskJet 2721e non rilevato

Riconoscimento, installazione e configurazione delle periferiche.
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

[Risolto] Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

ciao a tutti
a seguito di innumerevoli ricerche, ho appena acquistato una stampante HP DeskJet 2721e. Attualmente ho Ubuntu 20.04.6 LTS su Asus X415J.
Nell'elenco presente qui https://developers.hp.com/hp-linux-imag ... ices/index è indicata come supportata per tutto (riga HP DeskJet 2700 All-in-One Printer series).
Per ora l'ho collegata solo tramite USB. Alla prima stampa di un PDF, ho dovuto scegliere la seconda tra le 2 stampanti rilevate:
Schermata da 2023-03-26 13-42-07.png
. Tutto bene, stampa pdf e quella di prova effettuate.
Apro Simple Scan: Nessuno Scanner Rilevato.
La versione di HPLIP indicata per questo modello è la 3.20.5, io però ho la 3.20.3. Da terminale:

Codice: Seleziona tutto

frapponzio@fraptop:~$ apt-cache policy hplip
hplip:
  Installato: 3.20.3+dfsg0-2
  Candidato:  3.20.3+dfsg0-2
  Tabella versione:
 *** 3.20.3+dfsg0-2 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
frapponzio@fraptop:~$ dpkg -l hplip
Voluto=U (non noto)/I (installato)/R (rimosso)/P (rimosso totale)/H (in attesa)
| Stato=Non/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(nessuno)/R (reinstallazione richiesta) (Stato,Err: maiuscolo=grave)
||/ Nome           Versione       Architettura Descrizione
+++-==============-==============-============-================================>
ii  hplip          3.20.3+dfsg0-2 amd64        HP Linux Printing and Imaging Sy>
su https://developers.hp.com/hp-linux-imag ... anguage=de riportano:
Determine if a newer pre-packaged version of HPLIP is available. Use your distribution tools (Synaptic, Yum, Apt-get, YasT, Red Carpet, etc) to check. It is preferable to use a pre-packaged version of HPLIP as it is simpler to install and upgrade.
.

Quindi ho cercato su Ubuntu Software e credo di aver capito che devo installare ipp-usb. È corretto?
Temo di fare disastri che poi sono lunghi da riparare, quindi se qualcuno può aiutarmi a far funzionare lo scanner gliene sarei molto grata!
Se necessario, posso connettere PC e stampante all'hotspot generato dallo smartphone, ma non ho WIFI fisso da router.
Grazie in anticipo!!!
:)
Ultima modifica di frap il martedì 13 giugno 2023, 15:14, modificato 1 volta in totale.
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

ancora ciao.
sto provando a farcela da sola, seguendo questa guida https://doc.ubuntu-fr.org/hplip ma mi sono già bloccata: dal sito HPDevelopers l'unica versione di HPLIP disponibile al download è la 3.22.10, mentre a me basterebbe la 3.20.5. va bene lo stesso? O devo trovare esattamente la versione indicata nell'elenco All Supported Printer Models? Se così fosse, dovo la trovo?
Ho già scaricato hplip-3.22.10.run.
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 24886
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: ubuntu
Distribuzione: Ubuntu 22.04.3 LTS x86_64
Sesso: Maschile
Località: Pisa

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da magozurlinux »

frap ha scritto:
domenica 26 marzo 2023, 15:18
ancora ciao.
sto provando a farcela da sola, seguendo questa guida https://doc.ubuntu-fr.org/hplip ma mi sono già bloccata: dal sito HPDevelopers l'unica versione di HPLIP disponibile al download è la 3.22.10, mentre a me basterebbe la 3.20.5. va bene lo stesso? O devo trovare esattamente la versione indicata nell'elenco All Supported Printer Models? Se così fosse, dovo la trovo?
Ho già scaricato hplip-3.22.10.run.
Ciao.

hplip 3.20.5 lo puoi scaricare da questo link:

https://sourceforge.net/projects/hplip/ ... irror=nchc
Ubuntu 22.04 LTS Desktop :ciao:
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

rieccomi...grazie a magozurlinux, ho trovato la buona versione di HPLIP, e seguito le istruzioni da https://doc.ubuntu-fr.org/hplip.

installazione riuscita. Stampa tutto bene.
Lo scanner è rilevato sa SimpleScan, ma al momento dell'acquisizione "Acquisizione non riuscita - Impossibile connettersi allo scanner".
Da terminale ho soppresso l'installazione della stampante, disinstallato ippusbxd, riavviato pc e stampante e reinstallato tramite

Codice: Seleziona tutto

hp-setup
.

SimpleScan continua a non connettersi allo scanner.
Passando per HP Device Menager, da errore:
è possibile aprire il dispositivo 'hpaio:/usb/DeskJet_2700_series?serial=CN31DFWMWV': SI È VERIFICATO UN ERRORE DURANTE L'I/O SUL DISPOSITIVO.
Quindi:
Driver plugin installation is required
ricerca di proprietary plug-in which is missing avviata.
Ad un certo punto
"hp-diagnose_plugin" non risponde
, ma intanto si è aperta questa finestra e mi chiedo cosa devo fare....
Schermata da 2023-03-26 21-53-01.png
A quali driver si riferisce? Come faccio a sapere se ho già scaricato questi files?

Posso postare tutta l'installazione da terminale se necessario.

Spero davvero che qualcuno possa aiutarmi. Ce la sto mettendo tutta e ho VERAMENTE bisogno dello scanner al lavoro :sigh:
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

Non demordo...
Siccome parlo un po' francese, ho trovato questo intervento su ubuntu.forum.fr https://doc.ubuntu-fr.org/scanner_usb_non_reconnu

Dice di installare libsane-extra e sane-utils, ma il collegamento non funziona
Impossibile trovare il pacchetto "libsane-extras"
...Quindi, se è la buona procedura da seguire....dove lo trovo questo pacchetto (adatto alla mia versione 20.04)?!
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 24886
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: ubuntu
Distribuzione: Ubuntu 22.04.3 LTS x86_64
Sesso: Maschile
Località: Pisa

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da magozurlinux »

Ciao.

I plug-in l'hai installati?

Ti seguirò passo passo per far funzionare lo scanner.

Da terminale dai questi comandi connessa ad Internet:

Codice: Seleziona tutto

sudo apt update

Codice: Seleziona tutto

sudo apt install libsane-extras
Da terminale con la multifunzione HP accesa postami questi comandi:

Codice: Seleziona tutto

lsusb

Codice: Seleziona tutto

sudo scanimage -L

Codice: Seleziona tutto

sudo sane-find-scanner

Codice: Seleziona tutto

cat /etc/sane.d/dll.conf

Codice: Seleziona tutto

groups
Ubuntu 22.04 LTS Desktop :ciao:
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da ivantu »

la 3.20.5 è la versione minima.
Io consiglierei di installare direttamente l'ultima versione di hplip, aggiornata.
Vedi tu.

posta anche l'output da terminale ai comandi

Codice: Seleziona tutto

cat /var/log/cups/error_log
cat /var/log/cups/access_log
Buona giornata utenti del forum. :ciao: ivantu
Roberto Pontecorvi
Rampante Reduce
Rampante Reduce
Messaggi: 6613
Iscrizione: mercoledì 20 maggio 2009, 22:48
Distribuzione: 18.4 mate - 22.4 mate
Sesso: Maschile
Località: Versilia

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da Roberto Pontecorvi »

Devi installare i plugin da terminale dai il comando:

Codice: Seleziona tutto

sudo hp-plugin 
e segui le istruzioni. I drive hplip 3.22.10 funzionano.
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

Ciao a tutti, grazie delle risposte, e scusate il ritardo nel leggerle....ma durante la settimana è dura trovare del tempo libero!
Ho iniziato seguendo le indicazioni di magozurlinux, posto il risultato da terminale:

Codice: Seleziona tutto

frapponzio@fraptop:~$ sudo apt update
[sudo] password di frapponzio: 
Trovato:1 http://archive.canonical.com/ubuntu focal InRelease                  
Trovato:2 http://archive.ubuntu.com/ubuntu focal InRelease                     
Scaricamento di:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Scaricamento di:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Scaricamento di:5 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Recuperati 336 kB in 2s (196 kB/s)
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
27 pacchetti possono essere aggiornati: eseguire "apt list --upgradable" per vederli.
frapponzio@fraptop:~$ sudo apt install libsane-extras
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
E: Impossibile trovare il pacchetto libsane-extras
frapponzio@fraptop:~$ apt list --upgradable
Elencazione... Fatto
apparmor/focal-updates 2.13.3-7ubuntu5.2 amd64 [aggiornabile da: 2.13.3-7ubuntu5.1]
bolt/focal-updates 0.9.1-2~ubuntu20.04.2 amd64 [aggiornabile da: 0.9.1-2~ubuntu20.04.1]
firefox-locale-en/focal-updates,focal-security 111.0.1+build2-0ubuntu0.20.04.1 amd64 [aggiornabile da: 111.0+build2-0ubuntu0.20.04.1]
firefox-locale-fr/focal-updates,focal-security 111.0.1+build2-0ubuntu0.20.04.1 amd64 [aggiornabile da: 111.0+build2-0ubuntu0.20.04.1]
firefox-locale-it/focal-updates,focal-security 111.0.1+build2-0ubuntu0.20.04.1 amd64 [aggiornabile da: 111.0+build2-0ubuntu0.20.04.1]
firefox/focal-updates,focal-security 111.0.1+build2-0ubuntu0.20.04.1 amd64 [aggiornabile da: 111.0+build2-0ubuntu0.20.04.1]
libapparmor1/focal-updates 2.13.3-7ubuntu5.2 amd64 [aggiornabile da: 2.13.3-7ubuntu5.1]
linux-generic-hwe-20.04/focal-updates,focal-security 5.15.0.69.76~20.04.30 amd64 [aggiornabile da: 5.15.0.67.74~20.04.28]
linux-headers-generic-hwe-20.04/focal-updates,focal-security 5.15.0.69.76~20.04.30 amd64 [aggiornabile da: 5.15.0.67.74~20.04.28]
linux-image-generic-hwe-20.04/focal-updates,focal-security 5.15.0.69.76~20.04.30 amd64 [aggiornabile da: 5.15.0.67.74~20.04.28]
linux-libc-dev/focal-updates,focal-security 5.4.0-146.163 amd64 [aggiornabile da: 5.4.0-144.161]
python3-software-properties/focal-updates,focal-updates 0.99.9.11 all [aggiornabile da: 0.99.9.8]
shim-signed/focal-updates 1.40.9+15.7-0ubuntu1 amd64 [aggiornabile da: 1.40.7+15.4-0ubuntu9]
software-properties-common/focal-updates,focal-updates 0.99.9.11 all [aggiornabile da: 0.99.9.8]
software-properties-gtk/focal-updates,focal-updates 0.99.9.11 all [aggiornabile da: 0.99.9.8]
thunderbird-gnome-support/focal-updates,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 amd64 [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
thunderbird-locale-en-gb/focal-updates,focal-updates,focal-security,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 all [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
thunderbird-locale-en-us/focal-updates,focal-updates,focal-security,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 all [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
thunderbird-locale-en/focal-updates,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 amd64 [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
thunderbird-locale-fr/focal-updates,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 amd64 [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
thunderbird-locale-it/focal-updates,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 amd64 [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
thunderbird/focal-updates,focal-security 1:102.9.0+build1-0ubuntu0.20.04.1 amd64 [aggiornabile da: 1:102.8.0+build2-0ubuntu0.20.04.1]
xserver-common/focal-updates,focal-updates,focal-security,focal-security 2:1.20.13-1ubuntu1~20.04.8 all [aggiornabile da: 2:1.20.13-1ubuntu1~20.04.6]
xserver-xephyr/focal-updates,focal-security 2:1.20.13-1ubuntu1~20.04.8 amd64 [aggiornabile da: 2:1.20.13-1ubuntu1~20.04.6]
xserver-xorg-core/focal-updates,focal-security 2:1.20.13-1ubuntu1~20.04.8 amd64 [aggiornabile da: 2:1.20.13-1ubuntu1~20.04.6]
xserver-xorg-legacy/focal-updates,focal-security 2:1.20.13-1ubuntu1~20.04.8 amd64 [aggiornabile da: 2:1.20.13-1ubuntu1~20.04.6]
xwayland/focal-updates,focal-security 2:1.20.13-1ubuntu1~20.04.8 amd64 [aggiornabile da: 2:1.20.13-1ubuntu1~20.04.6]
frapponzio@fraptop:~$ 
Immagino di dover installare libsane-extras....
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

ma che dico??? il pacchetto già non l'aveva trovato nelle manipolazioni precedenti...vabbé...ecco le risposte da terminale di magozurlinux:

Codice: Seleziona tutto

frapponzio@fraptop:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:5a11 IMC Networks USB2.0 VGA UVC WebCam
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 13d3:3529 IMC Networks Bluetooth Radio 
Bus 001 Device 005: ID 03f0:1853 HP, Inc DeskJet 2700 series
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
frapponzio@fraptop:~$ sudo scanimage -L
device `hpaio:/usb/DeskJet_2700_series?serial=CN31DFWMWV' is a Hewlett-Packard DeskJet_2700_series all-in-one

frapponzio@fraptop:~$ sudo sane-find-scanner

  # 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 USB scanner (vendor=0x0bda [Generic], product=0x0129 [USB2.0-CRW]) at libusb:001:002
found USB scanner (vendor=0x03f0 [HP], product=0x1853 [DeskJet 2700 series]) at libusb:001:005
  # 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.

frapponzio@fraptop:~$ cat /etc/sane.d/dll.conf
# dll.conf - Configuration file for the SANE dynamic backend loader
#
# Backends can also be enabled by configuration snippets under the dll.d/
# directory -- third party backends can drop their configuration file in
# this in this directory, named after the backend.
#
# The next line enables the network backend; comment it out if you don't
# need to use a remote SANE scanner over the network -- see sane-net(5)
# and saned(8) for details.
net
abaton
agfafocus
apple
artec
artec_eplus48u
as6e
avision
bh
canon
canon630u
canon_dr
#canon_pp
cardscan
coolscan
#coolscan2
coolscan3
#dc210
#dc240
#dc25
dell1600n_net
dmc
epjitsu
#epson
epson2
epsonds
escl
fujitsu
genesys
#gphoto2
gt68xx
hp
hp3500
hp3900
hp4200
hp5400
hp5590
hpljm1005
hpsj5s
hs2p
ibm
kodak
kodakaio
kvs1025
kvs20xx
kvs40xx
leo
lexmark
ma1509
magicolor
matsushita
microtek
microtek2
mustek
#mustek_pp
mustek_usb
mustek_usb2
nec
niash
#p5
pie
pieusb
pint
pixma
plustek
#plustek_pp
#pnm
qcam
ricoh
ricoh2
rts8891
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
#st400
#stv680
tamarack
teco1
teco2
teco3
#test
u12
umax
umax1220u
#umax_pp
v4l
xerox_mfp
hpaio

frapponzio@fraptop:~$ groups
frapponzio adm cdrom sudo dip plugdev lpadmin lxd sambashare
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

Da terminale do i comandi cat /var/log/cups/error_log e access:

Codice: Seleziona tutto

frapponzio@fraptop:~$ cat /var/log/cups/error_log
frapponzio@fraptop:~$ cat /var/log/cups/access_log
localhost - - [02/Apr/2023:11:35:51 +0200] "POST / HTTP/1.1" 200 349 Create-Printer-Subscriptions successful-ok
localhost - - [02/Apr/2023:11:35:51 +0200] "POST / HTTP/1.1" 200 176 Create-Printer-Subscriptions successful-ok
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

sudo hp-plugin da terminale:

Codice: Seleziona tutto

frapponzio@fraptop:~$ sudo hp-plugin 

HP Linux Imaging and Printing System (ver. 3.20.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.

warning: It is not recommended to run 'hp-plugin' in a root mode.

HP Linux Imaging and Printing System (ver. 3.20.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.20.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...
Downloading plug-in from: 
Downloading plug-in: [\                                                                 ] 0%     Traceback (most recent call last):
  File "/usr/share/hplip/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 "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, 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 240, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 118, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 141, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 88, in get_distro_name
    os_name = distro.linux_distribution()[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 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, 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 72, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
    import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
  File "/usr/lib/python3/dist-packages/requests_unixsocket/__init__.py", line 1, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/hplip/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 "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, 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 240, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 118, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 141, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 88, in get_distro_name
    os_name = distro.linux_distribution()[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 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

Ho riprovato lo scanner, sia mai....sempre mpossibile connettersi,
Driver plug-in installation non va oltre lo step 1 of 2 (scelta del server di plug-in)
hp-diagnose_plugin non risponde

Grazie ancora per l'aiuto, se ho ben capito devo scaricare il pacchetto libsane-extras, ma aspetterò di farlo con qualcuno in linea, stasera o domattina! Never give up!!!
Buona domenica!
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

sto provando a capirci qualcosa. Dovrei aggiungere il nome della distro che sto usando per ottenere i pacchetti giusti? qualcosa tipo " File "/usr/share/hplip/base/password.py", line 85, in ubuntu"?! :sherlock:
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 24886
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: ubuntu
Distribuzione: Ubuntu 22.04.3 LTS x86_64
Sesso: Maschile
Località: Pisa

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da magozurlinux »

Da terminale dai questi comandi;

Codice: Seleziona tutto

sudo adduser frapponzio scanner
riavvia il pc.

Il plug-in da questa schermata l'hai installato?

Da terminale postami questo comando con la multifunzione HP accesa:

Codice: Seleziona tutto

hp-doctor
.
Allegati
Schermata da 2023-03-26 21-53-01.png
Schermata da 2023-03-26 21-53-01.png (17.4 KiB) Visualizzato 824 volte
Ubuntu 22.04 LTS Desktop :ciao:
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

ciao!
allora:

Codice: Seleziona tutto

frapponzio@fraptop:~$ sudo adduser frapponzio scanner
[sudo] password di frapponzio: 
Aggiunta dell'utente «frapponzio» al gruppo «scanner» ...
Aggiunta dell'utente frapponzio al gruppo scanner
Fatto.

Codice: Seleziona tutto

frapponzio@fraptop:~$ hp-doctor
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if 'getfacl' not in g and '' is not g and 'file' not in g:

HP Linux Imaging and Printing System (ver. 3.20.5)
Self Diagnse Utility and Healing Utility ver. 1.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.


HP Linux Imaging and Printing System (ver. 3.20.5)
Self Diagnse Utility and Healing Utility ver. 1.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.

|Gtk-Message: 21:38:58.041: Failed to load module "canberra-gtk-module"
 

Checking for Deprecated items....
No Deprecated items are found


Checking for HPLIP updates....

HP Linux Imaging and Printing System (ver. 3.20.5)
HPLIP upgrade latest version ver. 1.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: Failed to connect to HPLIP site. Error code = 8
error: Failed to connect to HPLIP site. Error code = 8
error: Failed to get latest version of HPLIP.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?


Checking for Dependencies....

---------------
| SYSTEM INFO |
---------------

 Kernel: 5.15.0-69-generic #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 GNU/Linux
 Host: fraptop
 Proc: 5.15.0-69-generic #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 GNU/Linux
 Distribution: 12 20.04
 Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.20.5
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro  20.04 version 

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.20.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.20.5
html=/usr/share/doc/hplip-3.20.5
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.5
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1679859034
pending_upgrade_time = 0

[last_used]
device_uri = hp:/usb/DeskJet_2700_series?serial=CN31DFWMWV
printer_name = DeskJet_2700

[installation]
date_time = 04/02/23 21:38:58
version = 3.20.5


 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

-------------------------
| External Dependencies |
-------------------------

 cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.3.1           OK         'CUPS Scheduler is running'
 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.50            OK         -
Gtk-Message: 21:39:17.490: Failed to load module "canberra-gtk-module"
Gtk-Message: 21:39:17.510: Failed to load module "canberra-gtk-module"
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.29          OK         -
 dbus                 DBus - Message bus system                                    REQUIRED        -               1.12.16         OK         -
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.105           OK         -
 network              network -wget                                                OPTIONAL        -               1.20.3          OK         -
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.7             OK         -

------------------------
| General Dependencies |
------------------------

 libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
 cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.3.1           OK         -
 cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.3.1           OK         -
 libpthread           libpthread - POSIX threads library                           REQUIRED        -               b'2.31'         OK         -
 libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
 sane                 SANE - Scanning library                                      REQUIRED        -               -               OK         -
 sane-devel           SANE - Scanning library development files                    REQUIRED        -               -               OK         -
 libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.8             OK         -
 libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.1.1           OK         -
 python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.8.10          OK         -
 python3-notify2      Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               OK         -
 python3-pyqt5-dbus   PyQt 5 DBus - DBus Support for PyQt5                         OPTIONAL        5.0             5.14.1          OK         -
 python3-pyqt5        PyQt 5- Qt interface for Python (for Qt version 4.x)         REQUIRED        5.0             5.14.1          OK         -
 python3-dbus         Python DBus - Python bindings for DBus                       REQUIRED        0.80.0          1.2.16          OK         -
 python3-xml          Python XML libraries                                         REQUIRED        -               2.2.9           OK         -
 python3-devel        Python devel - Python development files                      REQUIRED        2.2             3.8.10          OK         -
 python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               9.4.0           OK         -
 python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             3.6.12          OK         -

--------------
| COMPILEDEP |
--------------

 libtool              libtool - Library building support services                  REQUIRED        -               2.4.6           OK         -
 gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               9.4.0           OK         -
 make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.2.1           OK         -

---------------------
| Python Extentions |
---------------------

 cupsext              CUPS-Extension                                               REQUIRED        -               3.20.5          OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.20.5          OK         -

----------------------
| Scan Configuration |
----------------------

 hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.20.5          OK         'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension                                          REQUIRED        -               3.20.5          OK         -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/usb/DeskJet_2700_series?serial=CN31DFWMWV' is a Hewlett-Packard DeskJet_2700_series all-in-one


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                                     Model                              
  ---------------------------------------------  -----------------------------------
  hp:/usb/DeskJet_2700_series?serial=CN31DFWMWV  HP DeskJet 2700 series             

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
DeskJet_2700
------------
Type: Printer
Device URI: hp:/usb/DeskJet_2700_series?serial=CN31DFWMWV
PPD: /etc/cups/ppd/DeskJet_2700.ppd
warning: Failed to read /etc/cups/ppd/DeskJet_2700.ppd ppd file
PPD Description: 
Printer status: la stampante DeskJet_2700 è inattiva.  è stata abilitata da dom 2 apr 2023, 21:38:21
Communication status: Good


--------------
| PERMISSION |
--------------

USB             DeskJet_2700                   Required        -        -        OK       Node:'/dev/bus/usb/001/002' Perm:'  root  lp rw- rw- rw- rw- r--'
 

Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/DeskJet_2700.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/DeskJet_2700.ppd
warning: Could not complete Queue(s) configuration check


Checking for HP Properitery Plugin's....
No plug-in printers are configured.
 
Diagnose completed...



More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html

il plug-in dalla schermata non l'ho installato perché, cliccando sul pulsante "next" non succede niente, anche aspettando 5 minuti, e dopo un po' si apre la finestra "hp-diagnose_plugin non risponde"
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

ci ho riprovato (ad installare i plug-in dalla schermata hpManager) ma stavolta oltre a non succedere niente quando clicco su "next", si è aperta quest'altra schermata:
Schermata da 2023-04-02 21-33-30.png
Aggiungo che sto provando ad aprire "software & Aggiornamenti" per vedere se magari posso abilitare qualche repository (azzardo solo l'ipotesi!) e niente, non si apre. A volte lo fa, anche la ricerca degli aggiornamenti. Clicco clicco e non succede niente... :ot: forse poi possiamo parlare anche di questo in un'altra discussione :lol: ?!

Non so che dire....sto provando ad aprire HPDeviceManager dall'icona sulla barra delle attività ma non risponde neanche lei, non succede ASSOLUTAMENTE NULLA.
forse è ora di andare a nanna, persino per il computer...spero di ritrovarvi domattina!
grazie ancora e buonanotte!
Roberto Pontecorvi
Rampante Reduce
Rampante Reduce
Messaggi: 6613
Iscrizione: mercoledì 20 maggio 2009, 22:48
Distribuzione: 18.4 mate - 22.4 mate
Sesso: Maschile
Località: Versilia

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da Roberto Pontecorvi »

Intanto fai l'aggiornamento del sistema:
27 pacchetti possono essere aggiornati: eseguire "apt list --upgradable" per vederli.
da terminale dai i seguenti comandi:

Codice: Seleziona tutto

sudo apt update
sudo apt upgrade
uno alla volta
frap
Prode Principiante
Messaggi: 101
Iscrizione: mercoledì 13 agosto 2008, 16:59
Desktop: Ubuntu
Distribuzione: Ubuntu 20.04.6 LTS
Sesso: Femminile

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da frap »

Intanto fai l'aggiornamento del sistema:
fatto!
Avatar utente
Rafbor
Prode Principiante
Messaggi: 142
Iscrizione: domenica 13 febbraio 2022, 18:22
Desktop: Xubuntu
Distribuzione: 22.04.3 LTS
Località: Francia

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da Rafbor »

Su 20.04, per gli scanner usb, è necessario rimuovere il pacchetto ippusbxd, che va in conflitto con hplip:

Codice: Seleziona tutto

sudo apt purge ippusbxd
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: Bing [Bot] e 17 ospiti