Cannot setup scanner with hplip

Asked by Edward Barnaby on 2021-03-21

I am unable to set up the scanner with my new Deskjet 2710. I set out below details and I hope that you can solve the problem please.

1. Linux Mint 19.3
2. HP Deskjet 2710
3. Relevant error message re scanner from HP Check printed below:

HP_DeskJet_2700_series_DD033A_
------------------------------
Type: Unknown
Device URI: ipps://HP3024A9DD033A.local:631/ipp/print
PPD: /etc/cups/ppd/HP_DeskJet_2700_series_DD033A_.ppd
warning: Failed to read /etc/cups/ppd/HP_DeskJet_2700_series_DD033A_.ppd ppd file
PPD Description:
Printer status: printer HP_DeskJet_2700_series_DD033A_ is idle. enabled since Sun 21 Mar 2021 13:10:59 GMT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

4 & 5. I installed the new printer with hplip 3.21.2. The printer installed perfectly and I ran Hpsetup.
At stage 4, it accepted my wifi key code, then froze. I can supply screenshot images if it will help.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2021-03-25
Last query:
2021-03-25
Last reply:
2021-03-25
brian_p (claremont102) said : #1

You have a wireless connection? That's good. Give the outputs of

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  driverless

Edward Barnaby (44+edward) said : #2

Many thanks for your reply. I attach a terminal printout of the outputs
requested and hope these will help.

Edward

brian_p (claremont102) said : #3

Edward,

I communicate via the HPLIP web page, not using email. Your attachments
did not get here that I can see.. Perhaps use copy and paste.

Edward Barnaby (44+edward) said : #4

OK. Sorry, the first email said I could reply to it. Here are the attachments.

edward@edward-HP-ProBook-450-G2:~$
edward@edward-HP-ProBook-450-G2:~$ avahi-browse -rt _ipp._tcp
+ wlo1 IPv6 HP DeskJet 2700 series [DD033A] Internet Printer local
+ wlo1 IPv4 HP DeskJet 2700 series [DD033A] Internet Printer local
= wlo1 IPv6 HP DeskJet 2700 series [DD033A] Internet Printer local
   hostname = [HP3024A9DD033A.local]
   address = [192.168.1.173]
   port = [631]
   txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=83614b70-9b93-f991-e8ca-fe4ea24a4066" "Fax=F" "TLS=1.2" "note=" "adminurl=http://HP3024A9DD033A.local./#hId-pgAirPrint" "mac=30:24:a9:dd:03:3a" "priority=20" "usb_MDL=DeskJet 2700 series" "usb_MFG=HP" "product=(HP DeskJet 2700 series)" "ty=HP DeskJet 2700 series" "mopria-certified=2.0" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.4" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]
= wlo1 IPv4 HP DeskJet 2700 series [DD033A] Internet Printer local
   hostname = [HP3024A9DD033A.local]
   address = [192.168.1.173]
   port = [631]
   txt = ["Scan=T" "Duplex=F" "Color=T" "UUID=83614b70-9b93-f991-e8ca-fe4ea24a4066" "Fax=F" "TLS=1.2" "note=" "adminurl=http://HP3024A9DD033A.local./#hId-pgAirPrint" "mac=30:24:a9:dd:03:3a" "priority=20" "usb_MDL=DeskJet 2700 series" "usb_MFG=HP" "product=(HP DeskJet 2700 series)" "ty=HP DeskJet 2700 series" "mopria-certified=2.0" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,FN3,IS1,V1.4" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]
edward@edward-HP-ProBook-450-G2:~$

edward@edward-HP-ProBook-450-G2:~$ avahi-browse -rt _uscan._tcp
+ wlo1 IPv6 HP DeskJet 2700 series [DD033A] _uscan._tcp local
+ wlo1 IPv4 HP DeskJet 2700 series [DD033A] _uscan._tcp local
= wlo1 IPv4 HP DeskJet 2700 series [DD033A] _uscan._tcp local
   hostname = [HP3024A9DD033A.local]
   address = [192.168.1.173]
   port = [8080]
   txt = ["duplex=F" "is=platen" "cs=binary,color,grayscale" "rs=eSCL" "representation=images/printer.png" "UUID=83614b70-9b93-f991-e8ca-fe4ea24a4066" "note=" "adminurl=http://HP3024A9DD033A.local." "ty=HP DeskJet 2700 series" "pdl=application/octet-stream,application/pdf,image/jpeg" "mopria-certified-scan=1.2" "vers=2.63" "txtvers=1"]
= wlo1 IPv6 HP DeskJet 2700 series [DD033A] _uscan._tcp local
   hostname = [HP3024A9DD033A.local]
   address = [192.168.1.173]
   port = [8080]
   txt = ["duplex=F" "is=platen" "cs=binary,color,grayscale" "rs=eSCL" "representation=images/printer.png" "UUID=83614b70-9b93-f991-e8ca-fe4ea24a4066" "note=" "adminurl=http://HP3024A9DD033A.local." "ty=HP DeskJet 2700 series" "pdl=application/octet-stream,application/pdf,image/jpeg" "mopria-certified-scan=1.2" "vers=2.63" "txtvers=1"]
edward@edward-HP-ProBook-450-G2:~$

edward@edward-HP-ProBook-450-G2:~$ driverless
ipp://HP3024A9DD033A.local:631/ipp/print
edward@edward-HP-ProBook-450-G2:~$

brian_p (claremont102) said : #5

> Here are the attachments.

Thanks. Very useful.

This is a non-HPLIP solution but it is (or should be) a reliable one. Your
device is supported by sane-airscan, which is provided in Mint 20.1. See

  https://github.com/alexpevzner/sane-airscan

Download it from

  https://download.opensuse.org/repositories/home:/pzz/xUbuntu_19.04/amd64/

Edward Barnaby (44+edward) said : #6

Thanks for your reply. I downloaded sane-airscan but I cannot install as it requires libc6 2.29 or higher. My repositories insist that 2.27 which I have is the latest version. I'm not sure how to install later versions.

brian_p (claremont102) said : #7

That sounds like a bug in that package. Any luck with what is at

  https://download.opensuse.org/repositories/home:/pzz/xUbuntu_16.04/amd64/ ?

Edward Barnaby (44+edward) said : #8

No luck installing sane-airscan. gdebi keeps asking for missing dependencies which I cannot find. I think this must be the time to upgrade to Mint 20 and hope it will work from there.

brian_p (claremont102) said : #9

The first link I gave is incorrect. It should be

https://download.opensuse.org/repositories/home:/pzz/xUbuntu_18.04/amd64/

brian_p (claremont102) said : #10

If you do upgrade to Mint 20.1, sane-airscan can be installed with

  apt install sane-airscan

Edward Barnaby (44+edward) said : #11

Thank you for the new link. Sane-airscan installed without problem, but Xsane will still not connect. I was able to access Hp-doctor.
This reported that everything was fine except that it gave several warnings that it could not read etc/cups/ppd/Deskjet-2700-series.ppd. Also gave warning of 'insufficient permission to access ppd file'. I don't know what this means.

brian_p (claremont102) said : #12

Please give

  scanimage -L

and

  airscan-discover

Edward Barnaby (44+edward) said : #13

Here are the results:

edward@edward-HP-ProBook-450-G2:~$ scanimage -L
device `hpaio:/net/DeskJet_2700_series?hostname=HP3024A9DD033A.local' is a Hewlett-Packard DeskJet_2700_series all-in-one
device `hpaio:/net/deskjet_2700_series?ip=192.168.1.173&queue=false' is a Hewlett-Packard deskjet_2700_series all-in-one
device `brother4:net1;dev0' is a Brother Brother MFC-J5320DW
device `airscan:e0:HP DeskJet 2700 series [DD033A]' is a eSCL HP DeskJet 2700 series [DD033A] ip=192.168.1.173

edward@edward-HP-ProBook-450-G2:~$ airscan-discover
[devices]
  HP DeskJet 2700 series [DD033A] = http://192.168.1.173:8080/eSCL/, eSCL
  HP DeskJet 2700 series [DD033A] = https://192.168.1.173:443/eSCL/, eSCL
  HP DeskJet 2700 series [DD033A] = http://192.168.1.173:53048, WSD
  HP DeskJet 2700 series [DD033A] = http://[FE80::3224:A9FF:FEDD:33A%253]:53048, WSD

brian_p (claremont102) said : #14

Can you scan with any of

  xsane "airscan:e0:HP DeskJet 2700 series [DD033A]"
  simple-scan "airscan:e0:HP DeskJet 2700 series [DD033A]"
  scanimage -d "airscan:e0:HP DeskJet 2700 series [DD033A]" > image.pnm ?

Edward Barnaby (44+edward) said : #15

I tried these options. Xsane and Simple scan still gave the same error message. They recognise the device but cannot connect. The third option did not run. It seemed to dislike the ? at the end.

Best Manfred Hampl (m-hampl) said : #16

1. This reported that everything was fine except that it gave several warnings that it could not read etc/cups/ppd/Deskjet-2700-series.ppd. Also gave warning of 'insufficient permission to access ppd file'. I don't know what this means.

You have to be member of the lp (lineprinter) group to access the ppd files

usermod -a -G lp edward

Then logoff and logon that this takes effect,

2. Xsane and Simple scan still gave the same error message.

Please always provide the full text of the error message

3. It seemed to dislike the ? at the end.

The question mark was from "Can you scan with any of ... ?" and does not belong to the command!

Edward Barnaby (44+edward) said : #17

Tried usermod---. Below is the result:

edward@edward-HP-ProBook-450-G2:~$ usermod -a -G lp edward
usermod: Permission denied.
usermod: cannot lock /etc/passwd; try again later.

Strangely, following this attempt, I tried Xsane and it worked perfectly. To test it, I restarted the laptop and tried again and the errors came back, as set out below.

HP Device propietary plug-in is missing. Click Next to continue plug-in installation. In case of plug-in download failure, run hp-plugin command from the terminal manually.

Error message: Failed to open device hpaio:/net/Deskjet-2700-series?hostname=HP3024A9DD033A.local:Error during device I/O.

HP Linux Imaging and Printing System (ver. 3.21.2)
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.21.2)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Checking for network connection...
Downloading plug-in from:
Receiving digital keys: /usr/bin/gpg --homedir /home/edward/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9

(Final GUI Message: unable to receive key.)

Edward Barnaby (44+edward) said : #18

I think I have the answer. Xsane is now giving me three choices with HP device. One is with airscan and this is the one that is working. I think I can assume that it will work with that now. Fingers crossed.
Thankyou for all your help

Edward Barnaby (44+edward) said : #19

Thanks Manfred Hampl, that solved my question.

Manfred Hampl (m-hampl) said : #20

For completeness' sake:

1. Sorry, my fault, should have been
sudo usermod -a -G lp edward

2. There is the possibility to manually download and install the HP plugins

wget https://developers.hp.com/sites/default/files/hplip-3.21.2-plugin.run
sh ./hplip-3.21.2-plugin.run

brian_p (claremont102) said : #21

> It seemed to dislike the ? at the end.

I asked a question. That is why "?" is there. It is not part of the command.