[Risolto] Scanner HP DeskJet 2721e non rilevato

Riconoscimento, installazione e configurazione delle periferiche.
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 »

I plugin li puoi scaricare da qui -> https://www.openprinting.org/download/p ... P/plugins/ --Li metti nella tua home e da terminale dai il comando:

Codice: Seleziona tutto

hp-plugin
scegli di installarli da file. Ricordati che devi scaricare quelli della versione di hplip che hai installato.Prima magari reinstalla anche -> cups.
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 »

ok, grazie. purtroppo sono in partenza per lavoro e sarò di ritorno a fine aprile. scanner operativo rimandato :-(
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 »

scusa, ancora una cosa...prima di reinstallare i plug in come elimino quelli precedenti? posso spostare files e cartelle direttamente nel cestino?
-> cups....me lo studio ;-)
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 »

Il comando -> hp-plugin oltre ad installare i nuovi drive rimuove i vecchi. Comunque i vecchi plugin sono stati eliminati quando hai dato il comando:
sudo apt --purge remove hplip*
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...di ritorno dal mio viaggio mi rimetto al dossier "scanner".

Grazie Roberto Pontecorvi per la tua ultima risposta.

Driver hplip 3.22.10 scaricati, salvati sulla Home e pronti ad essere installati.
Per precauzione ho verificato la rimozione dei vecchi drivers, e da terminale mi conferma la rimozione. Devo dare il comando autoremove per il resto o posso lasciare così?:

Codice: Seleziona tutto

I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  gir1.2-goa-1.0 libfwupdplugin1 libimagequant0 libllvm11 libxmlb1
  linux-headers-5.15.0-69-generic linux-hwe-5.15-headers-5.15.0-69
  linux-image-5.15.0-69-generic linux-modules-5.15.0-69-generic
  linux-modules-extra-5.15.0-69-generic python3-olefile python3-pil
  python3-renderpm python3-reportlab python3-reportlab-accel shim
Usare "sudo apt autoremove" per rimuoverli.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

Per reinstallare CUPS, ho dato il comando sudo apt install cups. Stessa domanda, devo dare il comando autoremove e reinstallare, oppure dare il comando sudo apt --purge remove cups* e poi reinstallare?

Codice: Seleziona tutto

sudo apt install cups
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
cups è già alla versione più recente (2.3.1-9ubuntu1.2).
È stato impostato cups per l'installazione manuale.
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  gir1.2-goa-1.0 libfwupdplugin1 libimagequant0 libllvm11 libxmlb1
  linux-headers-5.15.0-69-generic linux-hwe-5.15-headers-5.15.0-69
  linux-image-5.15.0-69-generic linux-modules-5.15.0-69-generic
  linux-modules-extra-5.15.0-69-generic python3-olefile python3-pil
  python3-renderpm python3-reportlab python3-reportlab-accel shim
Usare "sudo apt autoremove" per rimuoverli.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
Spero di non andare troppo OFF TOPIC, ma da quando ho cominciato l'installazione della stampante non riesco piu ad eseguire il backup. Non so se le 2 cose siano collegate, ma dall'errore che mi viene restituito ho notato che Phyton è coinvolto, e non vorrei aver fatto qualche maldestra manipolazione durante i miei tentativi con HPLIP. qui di seguito la risposta di errore di Backup:
BACKUP non riuscito con un errore sconosciuto.

Codice: Seleziona tutto

Traceback (innermost last):
  File "/usr/bin/duplicity", line 106, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 92, in with_tempdir
    fn()
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1525, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 1175, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 225, in get_backend
    obj = get_backend_object(url_string)
  File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 211, in get_backend_object
    return factory(pu)
  File "/usr/lib/python3/dist-packages/duplicity/backends/pydrivebackend.py", line 38, in __init__
    from apiclient.discovery import build
  File "/usr/lib/python3/dist-packages/apiclient/__init__.py", line 8, in <module>
    from googleapiclient import discovery
  File "/usr/lib/python3/dist-packages/googleapiclient/discovery.py", line 56, in <module>
    from googleapiclient import _auth
  File "/usr/lib/python3/dist-packages/googleapiclient/_auth.py", line 33, in <module>
    import oauth2client.client
  File "/usr/lib/python3/dist-packages/oauth2client/client.py", line 45, in <module>
    from oauth2client import crypt
  File "/usr/lib/python3/dist-packages/oauth2client/crypt.py", line 45, in <module>
    from oauth2client import _openssl_crypt
  File "/usr/lib/python3/dist-packages/oauth2client/_openssl_crypt.py", line 16, in <module>
    from OpenSSL import crypto
  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'
Grazie ancora e buona serata
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 »

Più che - pyton - mi sembra che sia - duplicity- che è il file di avvio del programma di backup. Ho controllato nel mio e l'errore delle tue righe sul mio purtroppo sono linee di commento, controlla sul tu a cosa si riferiscono. Il comando per visualizzare il contenuto del file è :

Codice: Seleziona tutto

pluma /usr/bin/duplictiy
fai attenzione io sul mio SO uso "pluma" come editor di testo, tu devi mettere il nome del editor di testo che usi. Per le domande:
- il comando autoremove - elimina i pacchetti che non ti servono più;
- se vuoi reinstallare cup prima devi eliminare cups con il comando:

Codice: Seleziona tutto

sudo apt --purge remove cups*
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

sembra che gli astri non vogliano che io usi lo scanner: dopo aver rimosso e reinstallato cups, ho dato il comando hp-plugin, installazione dai files precedentemente scaricati, ma l'installazione è fallita:

Codice: Seleziona tutto

frapponzio@fraptop:~$ hp-plugin
..........
note: Using PyQt5
Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.


ho cercato su internet e ho trovato almeno due post (in inglese e francese) che riportano :
The problem is HPLIP installer. It incorrectly uninstalls Ubuntu-packaged version by deleting files, which are maintained by package manager.
le souci Hplip vient du fait qu'il y a une erreur dans le script, je ne sais ou, mais il ne va pas chercher le plugin, donc la soluce est de le charger a la main et de l'installer a la main puis de relance hp-setup et ça roule.
Traduco: "c'è un errore nello script hplip, che non cerca i plugin, quindi bisogna caricarli e installarli manualmente, rilanciare hp-setup e dovrebbe funzionare".

Mi piacerebbe sapere come fare ma, come al solito, temo di combinare guai! qualcuno può guidarmi in questa nuova battaglia?! :)
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 »

Posta il risultato de lcomando:

Codice: Seleziona tutto

hp-doctor
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 »

Codice: Seleziona tutto

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.22.10)
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.22.10)
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.

 

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


Checking for HPLIP updates....

HP Linux Imaging and Printing System (ver. 3.22.10)
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-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 GNU/Linux
 Host: fraptop
 Proc: 5.15.0-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 GNU/Linux
 Distribution: 12 20.04
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.22.10
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.22.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.22.10
html=/usr/share/doc/hplip-3.22.10
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.22.10
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:
[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[fax]
email_address = 
voice_phone = 

[installation]
date_time = 05/26/23 10:25:24
version = 3.22.10

[last_used]
device_uri = 
printer_name = 
working_dir = /home/frapponzio/hplip-3.22.10-plugin.run

[polling]
device_list = 
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1680759950
notify_upgrade = true
pending_upgrade_time = 0


 <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         -
 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         -
 error: cups-devel    CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.3.1           MISSING    'cups-devel needs to be installed'
 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         -
 libavahi-dev         libavahi-dev                                                 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.22.10         OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.22.10         OK         -

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

 hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.22.10         OK         'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension                                          REQUIRED        -               3.22.10         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?seri  HP DeskJet 2700 series
  al=CN31DFWMWV                                           

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

 
lpstat
------
Type: Unknown
Device URI: Nessuna destinazione aggiunta.


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

USB             None                           Required        -        -        OK       Node:'/dev/bus/usb/001/016' Perm:'  root  lp rw- rw- rw- rw- r--'
Missing Required Dependencies
-----------------------------
error: 'libcups2-dev' package is missing or 'cups' service is not running.
error: 'cups-bsd' package is missing or 'cups' service is not running.
error: 'cups-client' package is missing or 'cups' service is not running.


ENTER SUDO PASSWORD
-------------------
Please enter the sudoer (frapponzio)'s password: 
-uerror: Password incorrect. 2 attempt(s) left.
Please enter the sudoer (frapponzio)'s password: 
Do you want to update repository and Install missing/incompatible packages. (a=install all*, c=custom_install, s=skip):a
Updating repository
-------------------
cmd =sudo dpkg --configure -a
cmd =sudo apt-get install --yes --force-yes -f
cmd =sudo apt-get update
Installing Missing/Incompatible packages
----------------------------------------
cmd =sudo apt-get install --assume-yes libcups2-dev
cmd =sudo apt-get install --assume-yes cups-bsd
cmd =sudo apt-get install --assume-yes cups-client
-
da piu di 10 minuti il terminale è bloccato qui....
E, per la cronaca, la stampante non è piu riconosciuta, non appare nell'elenco delle stampanti, non me la fa aggiungere, e quindi non posso nemmeno piu stampare....non so se sia dovuto alle manipolazioni dell'altro giorno o se al fatto che ho cambiato le cartucce (originali hp) :cry:
Avatar utente
OMBRA_Linux
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2696
Iscrizione: mercoledì 18 febbraio 2015, 14:24
Desktop: HP / Lenovo / Samsung
Distribuzione: Android / Linux / Windows10-11
Sesso: Maschile
Località: Napoli

Re: Scanner HP DeskJet 2721e non rilevato

Messaggio da OMBRA_Linux »

Apri ( Software Center o Gestore Pacchetti ) digita HP e controlla che hai installato i pacchetti:

Codice: Seleziona tutto

hplip
hplip-gui
Nota: Se per caso hai un Modem/Router Tim Hub, devi attivare il tasto WPS per associare il Dispositivo.
Se per vivere devi strisciare, alzati e muori.
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

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.22.10)
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.22.10)
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.

 

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


Checking for HPLIP updates....

HP Linux Imaging and Printing System (ver. 3.22.10)
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-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 GNU/Linux
 Host: fraptop
 Proc: 5.15.0-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 GNU/Linux
 Distribution: 12 20.04
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.22.10
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.22.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.22.10
html=/usr/share/doc/hplip-3.22.10
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.22.10
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:
[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[fax]
email_address = 
voice_phone = 

[installation]
date_time = 05/29/23 21:03:46
version = 3.22.10

[last_used]
device_uri = 
printer_name = 
working_dir = /home/frapponzio/hplip-3.22.10-plugin.run

[polling]
device_list = 
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1680759950
notify_upgrade = true
pending_upgrade_time = 0


 <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         -
 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         -
 libavahi-dev         libavahi-dev                                                 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.22.10         OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.22.10         OK         -

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

 hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.22.10         OK         'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension                                          REQUIRED        -               3.22.10         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?seri  HP DeskJet 2700 series
  al=CN31DFWMWV                                           

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

 
lpstat
------
Type: Unknown
Device URI: Nessuna destinazione aggiunta.


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

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

Checking for Configured Queues....
No Queue added

warning: No Queue(s) configured.


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
:nono:
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 »

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


lpstat
------
Type: Unknown
Device URI: Nessuna destinazione aggiunta.



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

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


Checking for Configured Queues....
No Queue added

warning: No Queue(s) configured.



Checking for HP Properitery Plugin's....
No plug-in printers are configured.
version hplip
HP Linux Imaging and Printing System (ver. 3.22.10)
Self Diagnse Utility and Healing Utility ver. 1.0
provare ad aggiornare??
Current contents of '~/.hplip/hplip.conf' file:

[last_used]
device_uri = ???
printer_name =
working_dir = /home/frapponzio/hplip-3.22.10-plugin.run
ho una perplessità in questa configurazione...
rinominare e rifare un nuovo file hplip.conf
Buona giornata utenti del forum. :ciao: ivantu
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
stamattina un angelo informatico ha ripristinato l'uso della stampante e fatto funzionare lo scanner :D .
Riporto qui sotto le ultime righe dell'unico terminale rimasto aperto, e che hanno permesso il miracolo, per chi volesse approfondire la questione. Io confesso di aver assistito ammirativa a tutta l'operazione senza davvero averci capito granché. Potrebbe essere necessario ridare il comando sh hplip-3.22.10-plugin.run se lo scanner dovesse dare di nuovo problemi.

Codice: Seleziona tutto

find: ‘plugin_tmp’: File o directory non esistente
frapponzio@fraptop:~$ hp-plugin /?

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

Downloading plug-in from: file:///home/frapponzio/hplip-3.22.10-plugin.run
1100%Receiving digital keys: /usr/bin/gpg --homedir /home/frapponzio/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
Creating directory plugin_tmp
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.22.10 Plugin Self Extracting Archive  100%  

HP Linux Imaging and Printing System (ver. 3.22.10)
Plugin Installer ver. 3.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.

Plug-in version: 3.22.10
Installed HPLIP version: 3.22.10
Number of files to install: 64

note: Using PyQt5
Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed.

Done.
frapponzio@fraptop:~$ ll
totale 11368
drwxr-xr-x 23 frapponzio frapponzio     4096 mag 14 20:30 ./
drwxr-xr-x  3 root       root           4096 mar 16  2021 ../
-rw-------  1 frapponzio frapponzio     7271 mag 29 12:12 .bash_history
-rw-r--r--  1 frapponzio frapponzio      220 mar 16  2021 .bash_logout
-rw-r--r--  1 frapponzio frapponzio     3771 mar 16  2021 .bashrc
drwx------ 28 frapponzio frapponzio     4096 giu 12 11:39 .cache/
drwx------ 23 frapponzio frapponzio     4096 giu 12 12:10 .config/
drwx------  2 frapponzio frapponzio     4096 mar 18 13:22 .cups/
drwxr-xr-x 20 frapponzio frapponzio     4096 apr 24 20:29 Documenti/
drwx------  3 frapponzio frapponzio     4096 giu 12 11:36 .gnupg/
drwxr-xr-x  3 frapponzio frapponzio     4096 giu 12 12:11 .hplip/
-rw-rw-r--  1 frapponzio frapponzio 11494258 mag 14 20:29 hplip-3.22.10-plugin.run
-rw-rw-r--  1 frapponzio frapponzio      195 mag 14 20:30 hplip-3.22.10-plugin.run.asc
drwxr-xr-x  5 frapponzio frapponzio     4096 giu 12 08:45 Immagini/
drwx------  4 frapponzio frapponzio     4096 giu 12 11:39 .local/
drwxr-xr-x  5 frapponzio frapponzio     4096 mag 29 13:08 Modelli/
drwx------  5 frapponzio frapponzio     4096 mar 16  2021 .mozilla/
drwxrwxr-x  2 frapponzio frapponzio     4096 mar 18  2022 .mplayer/
drwxr-xr-x  2 frapponzio frapponzio     4096 mar 16  2021 Musica/
-rw-r--r--  1 frapponzio frapponzio      366 mar 16  2021 .pam_environment
-rw-r--r--  1 frapponzio frapponzio      807 mar 16  2021 .profile
drwxr-xr-x  2 frapponzio frapponzio     4096 mar 16  2021 Pubblici/
drwxrwxr-x  7 frapponzio frapponzio     4096 giu 30  2021 ripristino/
drwx------  3 frapponzio frapponzio     4096 mar 26 21:24 .sane/
drwxr-xr-x  4 frapponzio frapponzio    12288 giu  8 10:28 Scaricati/
drwxr-xr-x 10 frapponzio frapponzio     4096 mag  8 11:51 Scrivania/
-rw-rw-r--  1 frapponzio frapponzio      117 nov 27  2021 show-desktop.desktop
drwx------  7 frapponzio frapponzio     4096 giu 20  2021 snap/
drwx------  2 frapponzio frapponzio     4096 mar 16  2021 .ssh/
-rw-r--r--  1 frapponzio frapponzio        0 mar 16  2021 .sudo_as_admin_successful
drwx------  6 frapponzio frapponzio     4096 mar 23  2021 .thunderbird/
drwxr-xr-x  2 frapponzio frapponzio     4096 mag 16  2021 Video/
-rw-r--r--  1 frapponzio frapponzio      160 giu 12 11:52 .wget-hsts
-rw-rw-r--  1 frapponzio frapponzio      131 mag 27  2021 .xinputrc
frapponzio@fraptop:~$ sudo sh 
.cache/       .hplip/       .mplayer/     Scaricati/    Video/
.config/      Immagini/     Musica/       Scrivania/    
.cups/        .local/       Pubblici/     snap/         
Documenti/    Modelli/      ripristino/   .ssh/         
.gnupg/       .mozilla/     .sane/        .thunderbird/ 
frapponzio@fraptop:~$ sh hplip-3.22.10-plugin.run
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.22.10 Plugin Self Extracting Archive  100%  

HP Linux Imaging and Printing System (ver. 3.22.10)
Plugin Installer ver. 3.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.

Plug-in version: 3.22.10
Installed HPLIP version: 3.22.10
Number of files to install: 64

note: Using PyQt5
 
Done.
frapponzio@fraptop:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.22.10)
Scan Utility ver. 2.2

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: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/DeskJet_2700_series?serial=CN31DFWMWV
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm
Destination(s): file
Output file: 
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/frapponzio/hpscan001.png'.

Warming up...
 

Scanning...
Reading data: [******************************************] 100%  8.5 MB     
Read 8.5 MB from scanner.
Closing device.

Outputting to destination 'file':

Done.
frapponzio@fraptop:~$ ls
Documenti                     Immagini  ripristino            snap
hplip-3.22.10-plugin.run      Modelli   Scaricati             Video
hplip-3.22.10-plugin.run.asc  Musica    Scrivania
hpscan001.png                 Pubblici  show-desktop.desktop
frapponzio@fraptop:~$ ^Cdo hp-plugin 
frapponzio@fraptop:~$ sudo apt-get install python-dbus 
Comunque, grazie a tutti per l'aiuto!
alla prossima :ciao:
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 15 ospiti