Hardware Upgrade Forum

Hardware Upgrade Forum (https://www.hwupgrade.it/forum/index.php)
-   Linux, Unix, OS alternativi (https://www.hwupgrade.it/forum/forumdisplay.php?f=34)
-   -   Errore di stampa CUPS su HP-P1005 (https://www.hwupgrade.it/forum/showthread.php?t=2913346)


Sterlok 23-05-2020 05:25

Errore di stampa CUPS su HP-P1005
 
Ciao a tutti

Premetto che ci vuole un pò di pazienza, spero capirete..... comuqnue

Il problema nasce quando ho deciso di mettere in rete LAN interna, una vecchiotta stampante solo USB, la HP P1005, macchina da guerra! Davvero indistruttibile..... Mi sono amato di raspberrey PI3 con l'accoppiata Ubuntu-server, sistema solamente da riga di comando.

Partiamo con installare i drier sul sitema Ubuntu...

Codice:

sudo -s

apt get update

apt install hplip

apt install cups

Dopodichè entrato nel menu di CUPS, datole i premessi di utente "ubuntu",
inizio la configurazione della stampante USB, metto il driver PPD, scaricato dal sito dei driver linux per HPP1005.... infine... mando in stampa la pagina di prova, e non c'è verso che funzioni... vi lascio all'errore presente e alle vostre riflessioni, ciao e grazie a tutti....


Nicodemo Timoteo Taddeo 23-05-2020 07:27

Filter failed è un errore generico, in

var/log/cups/error_log

dovresti trovare altre informazioni.

Sterlok 23-05-2020 08:51

grazie dell'aiuto...

Andimo per gradi, adesso la stampante ho provato a collegarla ad un PC Windows 10 e non viene più rilevata.... forse ho fatto qualche danno...
cosa potrei fare?
In gestione dispositivi non 'è nenache più presente... :(

Provo a postarti il log....asp


Codice:

I [23/May/2020:07:57:01 +0000] Saving subscriptions.conf...
D [23/May/2020:07:57:02 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
D [23/May/2020:07:57:02 +0000] Creating KeepAlive/PID file "/var/cache/cups/org.cups.cupsd".
I [23/May/2020:07:57:02 +0000] Saving job.cache...
D [23/May/2020:07:57:04 +0000] cupsdStopSelect()
I [23/May/2020:07:57:04 +0000] Listening to 0.0.0.0:631 (IPv4)
I [23/May/2020:07:57:04 +0000] Listening to [v1.::]:631 (IPv6)
I [23/May/2020:07:57:04 +0000] Listening to /run/cups/cups.sock (Domain)
I [23/May/2020:07:57:04 +0000] Remote access is enabled.
D [23/May/2020:07:57:04 +0000] Added auto ServerAlias ubuntu
I [23/May/2020:07:57:04 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
D [23/May/2020:07:57:04 +0000] Using keychain "/etc/cups/ssl" for server name "ubuntu".
I [23/May/2020:07:57:04 +0000] Using default TempDir of /var/spool/cups/tmp...
I [23/May/2020:07:57:04 +0000] Configured for up to 100 clients.
I [23/May/2020:07:57:04 +0000] Allowing up to 100 client connections per host.
I [23/May/2020:07:57:04 +0000] Using policy "default" as the default.
I [23/May/2020:07:57:04 +0000] Full reload is required.
I [23/May/2020:07:57:04 +0000] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 78 types, 118 filters...
D [23/May/2020:07:57:04 +0000] Loading printer HP_LaserJet_P1005...
D [23/May/2020:07:57:04 +0000] load_ppd: Loading /var/cache/cups/HP_LaserJet_P1005.data...
D [23/May/2020:07:57:04 +0000] cupsdRegisterPrinter(p=0xaaab1c0d9380(HP_LaserJet_P1005))
I [23/May/2020:07:57:04 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [23/May/2020:07:57:04 +0000] Full reload complete.
D [23/May/2020:07:57:04 +0000] cupsdCleanFiles(path="/var/spool/cups/tmp", pattern="(null)")
I [23/May/2020:07:57:04 +0000] Cleaning out old files in "/var/spool/cups/tmp".
D [23/May/2020:07:57:04 +0000] cupsdCleanFiles(path="/var/cache/cups", pattern="*.ipp")
I [23/May/2020:07:57:04 +0000] Cleaning out old files in "/var/cache/cups".
D [23/May/2020:07:57:04 +0000] service_checkin: pid=1677
D [23/May/2020:07:57:04 +0000] service_checkin: 1 listeners.
D [23/May/2020:07:57:04 +0000] service_add_listener: Listener #1 at fd 3, "/run/cups/cups.sock".
D [23/May/2020:07:57:04 +0000] service_add_listener: Matched existing listener #1 to /run/cups/cups.sock.
D [23/May/2020:07:57:04 +0000] Creating KeepAlive/PID file "/var/cache/cups/org.cups.cupsd".
D [23/May/2020:07:57:04 +0000] Calling FindDeviceById(cups-HP_LaserJet_P1005)
D [23/May/2020:07:57:04 +0000] FindDeviceById failed: org.freedesktop.ColorManager.NotFound:device id \'cups-HP_LaserJet_P1005\' does not exist
D [23/May/2020:07:57:04 +0000] Using profile ID "HP_LaserJet_P1005-Gray..".
D [23/May/2020:07:57:04 +0000] Calling CreateProfile(HP_LaserJet_P1005-Gray..,temp)
D [23/May/2020:07:57:04 +0000] Created profile "/org/freedesktop/ColorManager/profiles/HP_LaserJet_P1005_Gray__".
D [23/May/2020:07:57:04 +0000] Using profile ID "HP_LaserJet_P1005-RGB..".
D [23/May/2020:07:57:04 +0000] Calling CreateProfile(HP_LaserJet_P1005-RGB..,temp)
D [23/May/2020:07:57:04 +0000] Created profile "/org/freedesktop/ColorManager/profiles/HP_LaserJet_P1005_RGB__".
I [23/May/2020:07:57:04 +0000] Registering ICC color profiles for "HP_LaserJet_P1005".
D [23/May/2020:07:57:04 +0000] Calling CreateDevice(cups-HP_LaserJet_P1005,temp)
D [23/May/2020:07:57:04 +0000] Created device "/org/freedesktop/ColorManager/devices/cups_HP_LaserJet_P1005".
D [23/May/2020:07:57:04 +0000] Calling /org/freedesktop/ColorManager/devices/cups_HP_LaserJet_P1005:AddProfile(/org/freedesktop/ColorManager/profiles/HP_LaserJet_P1005_Gray__) [soft]
D [23/May/2020:07:57:04 +0000] Calling /org/freedesktop/ColorManager/devices/cups_HP_LaserJet_P1005:AddProfile(/org/freedesktop/ColorManager/profiles/HP_LaserJet_P1005_RGB__) [soft]
I [23/May/2020:07:57:04 +0000] Listening to 0.0.0.0:631 on fd 7...
I [23/May/2020:07:57:04 +0000] Listening to [v1.::]:631 on fd 8...
I [23/May/2020:07:57:04 +0000] Listening to /run/cups/cups.sock on fd 3...
I [23/May/2020:07:57:04 +0000] Resuming new connection processing...
D [23/May/2020:07:57:04 +0000] Avahi server connection now available, registering printers for Bonjour broadcasting.
I [23/May/2020:07:57:04 +0000] Defaulting to "DNSSDHostName ubuntu.local".
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [23/May/2020:07:57:04 +0000] cupsdAddCert: Adding certificate for PID 0
D [23/May/2020:07:57:04 +0000] Discarding unused server-started event...
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [23/May/2020:07:57:04 +0000] [Client 1] Server address is "/run/cups/cups.sock".
D [23/May/2020:07:57:04 +0000] [Client 1] Accepted from localhost (Domain)
D [23/May/2020:07:57:04 +0000] [Client 1] Waiting for request.
D [23/May/2020:07:57:04 +0000] Report: clients=1
D [23/May/2020:07:57:04 +0000] Report: jobs=0
D [23/May/2020:07:57:04 +0000] Report: jobs-active=0
D [23/May/2020:07:57:04 +0000] Report: printers=1
D [23/May/2020:07:57:04 +0000] Report: stringpool-string-count=730
D [23/May/2020:07:57:04 +0000] Report: stringpool-alloc-bytes=9136
D [23/May/2020:07:57:04 +0000] Report: stringpool-total-bytes=13928
D [23/May/2020:07:57:04 +0000] [Client 1] POST / HTTP/1.1
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=200, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] No authentication data provided.
D [23/May/2020:07:57:04 +0000] [Client 1] 2.0 Create-Printer-Subscriptions 1
D [23/May/2020:07:57:04 +0000] Create-Printer-Subscriptions /
D [23/May/2020:07:57:04 +0000] create_subscriptions(con=0xaaab1c10da90(1), uri="/")
D [23/May/2020:07:57:04 +0000] pullmethod="ippget"
D [23/May/2020:07:57:04 +0000] notify-lease-duration=86400
D [23/May/2020:07:57:04 +0000] notify-time-interval=60
D [23/May/2020:07:57:04 +0000] cupsdAddSubscription(mask=7ff, dest=(nil)(), job=(nil)(0), uri="(null)")
D [23/May/2020:07:57:04 +0000] Added subscription #23 for server.
D [23/May/2020:07:57:04 +0000] cupsdMarkDirty(----S)
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [23/May/2020:07:57:04 +0000] [Client 1] Returning IPP successful-ok for Create-Printer-Subscriptions (/) from localhost.
D [23/May/2020:07:57:04 +0000] [Client 1] Content-Length: 104
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/May/2020:07:57:04 +0000] [Client 1] con->http=0xaaab1c115820
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=104, response=0xaaab1c1123a0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/May/2020:07:57:04 +0000] [Client 1] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/May/2020:07:57:04 +0000] [Client 1] bytes=0, http_state=0, data_remaining=104
D [23/May/2020:07:57:04 +0000] [Client 1] Flushing write buffer.
D [23/May/2020:07:57:04 +0000] [Client 1] New state is HTTP_STATE_WAITING
D [23/May/2020:07:57:04 +0000] [Client 1] Waiting for request.
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [23/May/2020:07:57:04 +0000] [Client 2] Server address is "/run/cups/cups.sock".
D [23/May/2020:07:57:04 +0000] [Client 2] Accepted from localhost (Domain)
D [23/May/2020:07:57:04 +0000] [Client 2] Waiting for request.
D [23/May/2020:07:57:04 +0000] [Client 2] POST / HTTP/1.1
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] [Client 2] Read: status=200, state=6
D [23/May/2020:07:57:04 +0000] [Client 2] No authentication data provided.
D [23/May/2020:07:57:04 +0000] [Client 2] 2.0 CUPS-Get-Default 2
D [23/May/2020:07:57:04 +0000] CUPS-Get-Default
D [23/May/2020:07:57:04 +0000] CUPS-Get-Default client-error-not-found: No default printer.
D [23/May/2020:07:57:04 +0000] [Client 2] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost.
D [23/May/2020:07:57:04 +0000] [Client 2] Content-Length: 110
D [23/May/2020:07:57:04 +0000] [Client 2] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/May/2020:07:57:04 +0000] [Client 2] con->http=0xaaab1c11c140
D [23/May/2020:07:57:04 +0000] [Client 2] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=110, response=0xaaab1c111e20(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/May/2020:07:57:04 +0000] [Client 2] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/May/2020:07:57:04 +0000] [Client 2] bytes=0, http_state=0, data_remaining=110
D [23/May/2020:07:57:04 +0000] [Client 2] Flushing write buffer.
D [23/May/2020:07:57:04 +0000] [Client 2] New state is HTTP_STATE_WAITING
D [23/May/2020:07:57:04 +0000] [Client 2] Waiting for request.
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] [Client 2] POST / HTTP/1.1
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [23/May/2020:07:57:04 +0000] [Client 2] Read: status=200, state=6
D [23/May/2020:07:57:04 +0000] [Client 2] No authentication data provided.
D [23/May/2020:07:57:04 +0000] [Client 2] 2.0 CUPS-Get-Printers 3
D [23/May/2020:07:57:04 +0000] CUPS-Get-Printers
D [23/May/2020:07:57:04 +0000] [Client 2] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost.
D [23/May/2020:07:57:04 +0000] [Client 2] Content-Length: 1241
D [23/May/2020:07:57:04 +0000] [Client 2] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/May/2020:07:57:04 +0000] [Client 2] con->http=0xaaab1c11c140
D [23/May/2020:07:57:04 +0000] [Client 2] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1241, response=0xaaab1c120080(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/May/2020:07:57:04 +0000] [Client 2] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/May/2020:07:57:04 +0000] [Client 2] bytes=0, http_state=0, data_remaining=1241
D [23/May/2020:07:57:04 +0000] [Client 2] Flushing write buffer.
D [23/May/2020:07:57:04 +0000] [Client 2] New state is HTTP_STATE_WAITING
D [23/May/2020:07:57:04 +0000] [Client 2] Waiting for request.
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] POST /printers/HP_LaserJet_P1005 HTTP/1.1
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=200, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] No authentication data provided.
D [23/May/2020:07:57:04 +0000] [Client 1] 2.0 Get-Printer-Attributes 4
D [23/May/2020:07:57:04 +0000] Get-Printer-Attributes ipp://localhost/printers/HP_LaserJet_P1005
D [23/May/2020:07:57:04 +0000] [Client 1] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/HP_LaserJet_P1005) from localhost.
D [23/May/2020:07:57:04 +0000] [Client 1] Content-Length: 135
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/May/2020:07:57:04 +0000] [Client 1] con->http=0xaaab1c115820
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=135, response=0xaaab1c11ff70(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/May/2020:07:57:04 +0000] [Client 1] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/May/2020:07:57:04 +0000] [Client 1] bytes=0, http_state=0, data_remaining=135
D [23/May/2020:07:57:04 +0000] [Client 1] Flushing write buffer.
D [23/May/2020:07:57:04 +0000] [Client 1] New state is HTTP_STATE_WAITING
D [23/May/2020:07:57:04 +0000] [Client 1] Waiting for request.
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] POST / HTTP/1.1
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=200, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] No authentication data provided.
D [23/May/2020:07:57:04 +0000] [Client 1] 2.0 CUPS-Get-Default 5
D [23/May/2020:07:57:04 +0000] CUPS-Get-Default
D [23/May/2020:07:57:04 +0000] CUPS-Get-Default client-error-not-found: No default printer.
D [23/May/2020:07:57:04 +0000] [Client 1] Returning IPP client-error-not-found for CUPS-Get-Default (no URI) from localhost.
D [23/May/2020:07:57:04 +0000] [Client 1] Content-Length: 110
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/May/2020:07:57:04 +0000] [Client 1] con->http=0xaaab1c115820
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=110, response=0xaaab1c120020(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/May/2020:07:57:04 +0000] [Client 1] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/May/2020:07:57:04 +0000] [Client 1] bytes=0, http_state=0, data_remaining=110
D [23/May/2020:07:57:04 +0000] [Client 1] Flushing write buffer.
D [23/May/2020:07:57:04 +0000] [Client 1] New state is HTTP_STATE_WAITING
D [23/May/2020:07:57:04 +0000] [Client 1] Waiting for request.
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] POST / HTTP/1.1
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=200, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] No authentication data provided.
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] Read: status=100, state=6
D [23/May/2020:07:57:04 +0000] [Client 1] 2.0 Create-Printer-Subscriptions 6
D [23/May/2020:07:57:04 +0000] Create-Printer-Subscriptions /
D [23/May/2020:07:57:04 +0000] create_subscriptions(con=0xaaab1c10da90(1), uri="/")
D [23/May/2020:07:57:04 +0000] recipient="dbus://"
D [23/May/2020:07:57:04 +0000] notify-lease-duration=86400
D [23/May/2020:07:57:04 +0000] notify-time-interval=0
D [23/May/2020:07:57:04 +0000] cupsdAddSubscription(mask=1fffff, dest=(nil)(), job=(nil)(0), uri="dbus://")
D [23/May/2020:07:57:04 +0000] Added subscription #24 for server.
D [23/May/2020:07:57:04 +0000] cupsdMarkDirty(----S)
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [23/May/2020:07:57:04 +0000] [Client 1] Returning IPP successful-ok for Create-Printer-Subscriptions (/) from localhost.
D [23/May/2020:07:57:04 +0000] [Client 1] Content-Length: 104
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [23/May/2020:07:57:04 +0000] [Client 1] con->http=0xaaab1c115820
D [23/May/2020:07:57:04 +0000] [Client 1] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=104, response=0xaaab1c120110(IPP_STATE_DATA), pipe_pid=0, file=-1
D [23/May/2020:07:57:04 +0000] [Client 1] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [23/May/2020:07:57:04 +0000] [Client 1] bytes=0, http_state=0, data_remaining=104
D [23/May/2020:07:57:04 +0000] [Client 1] Flushing write buffer.
D [23/May/2020:07:57:04 +0000] [Client 1] New state is HTTP_STATE_WAITING
D [23/May/2020:07:57:04 +0000] [Client 1] Waiting for request.
D [23/May/2020:07:57:04 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
I [23/May/2020:07:57:05 +0000] Expiring subscriptions...
I [23/May/2020:07:57:38 +0000] Saving subscriptions.conf...
D [23/May/2020:07:57:45 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
I [23/May/2020:07:57:45 +0000] Expiring subscriptions...


Nicodemo Timoteo Taddeo 23-05-2020 10:57

Sfortunatamente non riesco a vedere nulla di utile nel log, puoi dare questi due comandi e vedere se la stampate accesa e collegata via USB viene rilevata?

lsub

lpinfo -v

Ed essendo un HP dovresti provare anche a vedere cosa dice

hp-info -i

Sterlok 23-05-2020 12:53

Eccoti le risposte ai comandi che mi hai chesto:

lsusb:

Codice:

Bus 001 Device 005: ID 03f0:3d17 HP, Inc LaserJet P1005
Bus 001 Device 004: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@ubuntu:/home/ubuntu# lpinfo -v


lpinfo -v
Codice:

root@ubuntu:/home/ubuntu# lpinfo -v
network beh
file cups-brf:/
network socket
serial serial:/dev/ttyS0?baud=115200
network http
direct usb://HP/LaserJet%20P1005?serial=LC01RYS
network lpd
network https
network ipp
direct hp:/usb/HP_LaserJet_P1005?serial=LC01RYS
network ipps
direct hpfax


hp-info -i
Codice:

warning: hp-info should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.20.3)
Device Information Utility ver. 5.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.


hp:/usb/HP_LaserJet_P1005?serial=LC01RYS

Device Parameters (dynamic data):
  Parameter                    Value(s)                                       
  ----------------------------  ----------------------------------------------------------
  agent1-ack                    False                                         
  agent1-desc                  Black toner cartridge                         
  agent1-dvc                    0                                             
  agent1-health                0                                             
  agent1-health-desc            Good/OK                                       
  agent1-hp-ink                False                                         
  agent1-id                    0                                             
  agent1-kind                  4                                             
  agent1-known                  False                                         
  agent1-level                  100                                           
  agent1-level-trigger          0                                             
  agent1-sku                    35A                                           
  agent1-type                  1                                             
  agent1-virgin                False                                         
  back-end                      hp                                             
  cups-printers                ['HP_LaserJet_P1005']                         
  cups-uri                      hp:/usb/HP_LaserJet_P1005?serial=LC01RYS       
  dev-file                                                                     
  device-state                  1                                             
  device-uri                    hp:/usb/HP_LaserJet_P1005?serial=LC01RYS       
  deviceid                      MFG:Hewlett-Packard;MDL:HP LaserJet           
                                P1005;CMD:ACL;CLS:PRINTER;DES:HP LaserJet P1005;
  duplexer                      0                                             
  error-state                  0                                             
  host                                                                         
  in-tray1                      1                                             
  in-tray2                      1                                             
  is-hp                        True                                           
  media-path                    1                                             
  panel                        0                                             
  panel-line1                                                                 
  panel-line2                                                                 
  photo-tray                    0                                             
  port                          1                                             
  r                            0                                             
  revision                      254                                           
  rg                            000                                           
  rr                            000000                                         
  rs                            000000000                                     
  serial                        LC01RYS                                       
  status-code                  1000                                           
  status-desc                  Idle                                           
  supply-door                  1                                             
  top-door                      1                                             

Model Parameters (static data):
  Parameter                    Value(s)                                       
  ----------------------------  ----------------------------------------------------------
  align-type                    0                                             
  clean-type                    0                                             
  color-cal-type                0                                             
  copy-type                    0                                             
  embedded-server-type          0                                             
  family-class                  ['LJ-Class5']                                 
  fax-type                      0                                             
  fw-download                  True                                           
  icon                          HP_LaserJet_1012.png                           
  io-mfp-mode                  6                                             
  io-mode                      1                                             
  io-support                    2                                             
  job-storage                  0                                             
  linefeed-cal-type            0                                             
  model                        HP_LaserJet_P1005                             
  model-ui                      HP LaserJet p1005                             
  model1                        HP LaserJet P1005 Printer                     
  monitor-type                  0                                             
  panel-check-type              0                                             
  pcard-type                    0                                             
  plugin                        1                                             
  plugin-reason                1                                             
  power-settings                0                                             
  pq-diag-type                  0                                             
  r-type                        0                                             
  r0-agent1-kind                4                                             
  r0-agent1-sku                35A                                           
  r0-agent1-type                1                                             
  scan-src                      0                                             
  scan-type                    0                                             
  status-battery-check          0                                             
  status-dynamic-counters      0                                             
  status-type                  8                                             
  support-released              True                                           
  support-subtype              2202411                                       
  support-type                  2                                             
  support-ver                  2.8.2                                         
  tech-class                    ['LJP1XXX']                                   
  tech-subclass                ['Normal']                                     
  tech-type                    3                                             
  usb-pid                      16663                                         
  usb-vid                      1008                                           
  wifi-config                  0                                             

Done.


Nicodemo Timoteo Taddeo 23-05-2020 15:05

OK, per modo di dire :(, la stampante viene regolarmente vista dal sistema operativo, ha pure il suo bel deviceid.

Se la stampante funziona, cioè non è rotta, dovrebbe essere per colpa sempre dei driver, qualche dipendenza non soddisfatta o assenza di qualche plugin, prova a dare nel terminale un:

hp-doctor

E vedi cosa ti risponde.

http://manpages.ubuntu.com/manpages/...-doctor.1.html

Sterlok 23-05-2020 15:11

Ho fatto come hai detto ed ho lanciato "hp-doctor"

questo è il risultato...

Codice:

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

error: hp-doctor should not be run as root/superuser

sembra strano ma le ho dato il "sudo"...

Nicodemo Timoteo Taddeo 23-05-2020 15:17

Quote:

Originariamente inviato da Sterlok (Messaggio 46797193)
Ho fatto come hai detto ed ho lanciato "hp-doctor"

questo è il risultato...

Codice:

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

error: hp-doctor should not be run as root/superuser

sembra strano ma le ho dato il "sudo"...

Sulla server usi ancora l'account root? Prova a creare un account utente "normale" e eseguire il comando senza sudo. Solo

:~$ hp-doctor

Sterlok 23-05-2020 15:39

Ora seza sudo, sta girando bene, e sta installando un botto di roba, tutto in automatico, credo si tratti dei plug-in mancanti, poi aggiorno il 3d, grazie Nicodemo ;)

Ecco lo status di hp-doctor, dopo avere installato i plug-in, e rilanciato il comando:

Codice:

ubuntu@ubuntu:~$ hp-doctor

HP Linux Imaging and Printing System (ver. 3.20.3)
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.3)
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....
error: Failed to locate hp-upgrade utility


Checking for Dependencies....
warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------
                                                                                                                                                                      Kernel: 5.4.0-1008-raspi #8-Ubuntu SMP Wed Apr 8 11:13:06 UTC 2020 GNU/Linux
 Host: ubuntu
 Proc: 5.4.0-1008-raspi #8-Ubuntu SMP Wed Apr 8 11:13:06 UTC 2020 GNU/Linux
 Distribution: ubuntu 20.04
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not 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.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
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=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.20.3



Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 05/23/20 14:44:51
version = 3.20.3


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

-------------------------
| External Dependencies |
-------------------------
                                                                                                                                                                      error: cups          CUPS - Common Unix Printing System                          REQUIRED        1.1            -              INCOMPAT  'CUPS may not be installed or not running'                                                                                                                                                        gs                  GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.50            OK        -
 error: xsane        xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9            -              MISSING    'xsane needs to be installed'                                                                                                                                                                    scanimage            scanimage - Shell scanning program                          OPTIONAL        1.0            1.0.29          OK        -                          error: dbus          DBus - Message bus system                                    REQUIRED        -              1.12.16        MISSING    'DBUS may not be installed or not running'                                                                                                                                                          policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -              0.105          OK        -                          network              network -wget                                                OPTIONAL        -              1.20.3          OK        -
 error: avahi-utils  avahi-utils                                                  OPTIONAL        -              -              MISSING    'avahi-utils needs to be installed'

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

 error: libjpeg      libjpeg - JPEG library                                      REQUIRED        -              -              MISSING    'libjpeg needs to be installed'                                                                                                                                                                  error: cups-devel    CUPS devel- Common Unix Printing System development files    REQUIRED        -              -              MISSING    'cups-devel needs to be installed'                                                                                                                                                                error: cups-image    CUPS image - CUPS image development files                    REQUIRED        -              -              MISSING    'cups-image needs to be installed'
 libpthread          libpthread - POSIX threads library                          REQUIRED        -              b'2.31'        OK        -
 error: libusb        libusb - USB library                                        REQUIRED        -              1.0            MISSING    'libusb needs to be installed'
 sane                SANE - Scanning library                                      REQUIRED        -              -              OK        -
 error: sane-devel    SANE - Scanning library development files                    REQUIRED        -              -              MISSING    'sane-devel needs to be installed'
 error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9          -              MISSING    'libnetsnmp-devel needs to be installed'                                                                                                                                                      error: libcrypto    libcrypto - OpenSSL cryptographic library                    REQUIRED        -              1.1.1          MISSING    'libcrypto needs to be installed'                                                                                                                                                                  python3X            Python 2.2 or greater - Python programming language          REQUIRED        2.2            3.8.2          OK        -
 error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -              -              MISSING    'python3-notify2 needs to be installed'
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4                        OPTIONAL        4.0            -              MISSING    'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)        REQUIRED        4.0            -              MISSING    'python3-pyqt4 needs to be installed'
 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        -                        error: python3-devel Python devel - Python development files                      REQUIRED        2.2            3.8.2          MISSING    'python3-devel needs to be installed'
 python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -              7.0.0          OK        -
 python3-reportlab    Reportlab - PDF library for Python                          OPTIONAL        2.0            3.5.34          OK        -

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

 error: libtool      libtool - Library building support services                  REQUIRED        -              -              MISSING    'libtool needs to be installed'                                                                                                                                                                gcc                  gcc - GNU Project C and C++ Compiler                        REQUIRED        -              9.3.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.3          OK        -
 hpmudext            IO-Extension                                                REQUIRED        -              3.20.3          OK        -

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

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

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
                                                                                                                                                                      No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------
                                                                                                                                                                      No devices found.

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

HP_LaserJet_P1005
-----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1005?serial=LC01RYS
PPD: /etc/cups/ppd/HP_LaserJet_P1005.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_P1005.ppd ppd file
PPD Description:                                                                                                                                                      Printer status: printer HP_LaserJet_P1005 is idle.  enabled since Thu May 21 11:26:10 2020
Required plug-in status: Installed
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1005?serial=LC01RYS
error: Device not found
error: Communication status: Failed


--------------
| PERMISSION |
--------------
                                                                                                                                                                Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing or 'cups' service is not running.
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
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.
error: 'libcupsimage2-dev' package is missing or 'cups' service is not running.
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libusb-0.1-4' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'python3-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'xsane' package is missing/incompatible
error: 'avahi-utils' package is missing/incompatible
error: 'python3-notify2' package is missing/incompatible
error: 'python3-dbus.mainloop.qt' package is missing/incompatible


ENTER SUDO PASSWORD
-------------------                                                                                                                                                    Please enter the sudoer (ubuntu)'s password:

Checking Permissions....


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


Checking for HP Properitery Plugin's....
Plugin's already installed

Checking for Printer Status....
error: 'HP_LaserJet_P1005' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor

Diagnose completed...

La stampante è accesa ed ho rilanciato il comando, ma se non stampa neanche da windows figuriamoci con linux, no?

Nicodemo Timoteo Taddeo 23-05-2020 16:18

A parte gli errori sui permessi, anche dopo aver dato la password del sudo continua a non riuscire ad accedere a /etc/cups/ppd/HP_LaserJet_P1005.ppd, la cosa più importante, purtroppo, è quello che viene dopo:

Codice:

Checking for Printer Status....
error: 'HP_LaserJet_P1005' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor

La stampante gli risulta irraggiungibile, come fosse spenta o scollegata... Temo si tratti a questo punto di guasto hardware e la sensazione è rafforzata dalle diffcoltà anche con Windows.

Te lo volevo dire prima ma poi ho dimenticato a scriverlo, lo faccio ora. Se hai un altro cavo stampante sostituiscilo, e se nel dispositivo ci son più porte USB cambia anche quella, hai visto mai...

Sterlok 23-05-2020 16:35

Siamo al capolinea... prima di postare ho collegato la stampante a due macchine, una windows 7 una windows 10 entrambe a x64, cambiato cavo USB, e provato ad re-installare i driver, ed anche li mi ha segnalato di collegare la stampante al PC, sempre su windows.... la stampante viene riconosciuta, si capisce dal fumetto in basso a destra che poi sparisce, ma da quando mi ha dato "filter error", forse smanettando, ho fatto qualche guasto serio dell'HW o del firm della stampante, credo sia successo cos'ì.

La presi alla CDC circa 10 - 11 anni fà, era una figata dato che potevo stampare con costi bassissimi ad alti regimi, le ho cambiato anche il gommino per la presa di carica dei fogli, ora capire che guasto ha non credo sia importante...:doh:

Anche se fuori topic, ora dovrei prenderne una "nuova" con i toner compatibili dato che in azienda siamo pieni.... ciao grazie dell'aiuto alla prossima... :)

Nicodemo Timoteo Taddeo 23-05-2020 17:37

Giusto per concludere il thread :), guarda che a stare a sentire hp-doctor hai il servizio cups spento. Se colleghi un'altra stampante non funzionerebbe lo stesso.

Per accertarti se ha ragione o torto dai uno

service --status-all


Se accanto a cups non appare il [ + ] ma solo [ ], devi avviare il servizio. Ma di questo se ne può parlare dopo :)

Sterlok 23-05-2020 17:42

Heheh, grazie della speranza :D
Comunque credo che il servizio CUPS sia attivo, lo raggiungo anche
con il browser...

Codice:

[ + ]  apparmor
 [ + ]  apport
 [ + ]  atd
 [ + ]  avahi-daemon
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  cups
 [ + ]  cups-browsed
 [ + ]  dbus
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ - ]  iscsid
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ - ]  lvm2-lvmpolld
 [ + ]  multipath-tools
 [ + ]  network-manager
 [ + ]  nmbd
 [ - ]  open-iscsi
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ - ]  pppd-dns
 [ + ]  procps
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  samba-ad-dc
 [ - ]  saned
 [ - ]  screen-cleanup
 [ + ]  smbd
 [ + ]  ssh
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd



Tutti gli orari sono GMT +1. Ora sono le: 23:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Hardware Upgrade S.r.l.