HP Deskjet 1512 is unrecognised on Ubuntu 18.04.4 LTS with Hplip 3.17.10+repack0-5. installed.

Asked by Jerry Leonard Johnson

HP Deskjet 1512 is unrecognised on Ubuntu 18.04.4 LTS with Hplip 3.17.10+repack0-5. Developers.Hp.com says Hplip 3.13.8 needed. Download default is 3.20.3. Do I need Hplip 3.13.8 and how do I get it? Computer is Acer Aspire 5733Z-4851, with Intel Pentium P6100 CPU, 4GB DDR3 Memory, 500 GB HDD, Dual booted with Windows 7.

When selecting print in Ubuntu, Options window opens, the only printer available is "print to file" That works successfully. When printer was first noticed to have failed, error message was "System Printing Service Doesn't Seem to Be Available". After a few tries, that error message stopped appearing.

The Deskjet 1512 works when used from Windows. This printer worked from Ubuntu for first couple months since Ubuntu was installed. I shut off updates for a couple weeks thinking they were making my mouse freeze. When I turned updates on again, I notice within a couple days, that the printer was not working. This was maybe 1-2 weeks ago. Checking the Linux forum, there were other users experiencing printer issues and discussing HPlip version numbers and printer drivers. Their problems seemed to be related to font size, but coincidentally happened about the same time and after an update.

I suspect the older printer needs Hplip 3.13.8 as the "Supported Printers" list showed.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

> I suspect the older printer needs Hplip 3.13.8 as the
> "Supported Printers" list showed.

3.13.8 is the *minimum* version required. Give the output
of 'lpinfo -v'.

Brian.

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#2

Is there an option to select the 3.13.8 version on the "Supported Printers" page? Seems logical, but I didn't see it.

jjconstr

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#3

Output of 'lpinfo -v' is
'Bad file descriptor'

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#4

Hplip 3.17.10+repack0-5 exists on my system. If Hplip 3.13.8 is just the minimum, then Hplip 3.17.10 should work. But my printer

does not work from Ubunto OS and it does work from Windows 7 in the dual boot configuration.

Revision history for this message
brian_p (claremont102) said :
#5

> 'Bad file descriptor'

The cups daemon isn't running.

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#6

A trouble shooter I came across said"cups not running. To correct- go to main menu, System->administration->services. Look for cups

services. Had trouble following said path, found .cups and .hplip folders both empty under home folder.

Output below may help. I don't understand the second line, apt1.6.12 (amd64). but the hplip version # seems ok if in range required for my printer.

jjconstr@Aspire-5733Z:~$ sudo apt --version hplip
apt 1.6.12 (amd64)
jjconstr@Aspire-5733Z:~$ apt show hplip
Package: hplip
Version: 3.17.10+repack0-5
Priority: optional
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Debian Printing Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1,601 kB
Depends: adduser, cups, hplip-data (= 3.17.10+repack0-5), libhpmud0 (= 3.17.10+repack0-5), libsane-hpaio (= 3.17.10+repack0-5), lsb-base, printer-driver-hpcups (= 3.17.10+repack0-5), python3-dbus, python3-gi, python3-pexpect, python3-pil, python3-reportlab, wget, python3 (<< 3.7), xz-utils, python3 (>= 3.6~), libc6 (>= 2.14), libcups2 (>= 1.6.0), libdbus-1-3 (>= 1.9.14), libsane1 (>= 1.0.24)
Recommends: avahi-daemon, policykit-1, printer-driver-postscript-hp, sane-utils
Suggests: hplip-doc, hplip-gui, python3-notify2, system-config-printer

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#7

Is this fix just a matter of starting the cups daemon?

Revision history for this message
brian_p (claremont102) said :
#8

> Is this fix just a matter of starting the cups daemon?

lpinfo needs the cups.service to give an output. Do

  systemctl start cups

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#9

Hi Brian,

Get this

systemctl start cups only goes to next prompt , no output , nothing

lpinfo -v still says bad file descriptor

If I install Hplip version 4.20.3, will that fix the cups problem too?

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#10

Just so you know, I dont know my way around the terminal. Im typing only what you have between the single quote marks. If there is some standard thing needs to be added to the commands, I dont know it.
Thanks.
jjconstr

Revision history for this message
brian_p (claremont102) said :
#11

Hello Jerry,

> systemctl start cups only goes to next prompt , no output , nothing

That's ok.

> lpinfo -v still says bad file descriptor

That's not ok. Check that cups is active and running with

  systemctl status cups

> If I install Hplip version 4.20.3, will that fix the cups problem too?

No.

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#12

Heres the output:

jjconstr@Aspire-5733Z:~$ systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: ena
   Active: failed (Result: start-limit-hit) since Sun 2020-04-26 02:35:53 PDT; 4
     Docs: man:cupsd(8)
  Process: 8389 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 8389 (code=killed, signal=TERM)

Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Service hold-off time ove
Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Scheduled restart job, re
Apr 26 02:35:53 Aspire-5733Z systemd[1]: Stopped CUPS Scheduler.
Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Start request repeated to
Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Failed with result 'start
Apr 26 02:35:53 Aspire-5733Z systemd[1]: Failed to start CUPS Scheduler.
lines 1-13/13 (END)

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#13

I realised ends of text lines are cut off.

● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Sun 2020-04-26 02:35:53 PDT; 44min ago
     Docs: man:cupsd(8)
  Process: 8389 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 8389 (code=killed, signal=TERM)

Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Service hold-off time over, scheduling restart.
Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
Apr 26 02:35:53 Aspire-5733Z systemd[1]: Stopped CUPS Scheduler.
Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Start request repeated too quickly.
Apr 26 02:35:53 Aspire-5733Z systemd[1]: cups.service: Failed with result 'start-limit-hit'.
Apr 26 02:35:53 Aspire-5733Z systemd[1]: Failed to start CUPS Scheduler.
~

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#14

Synaptics Package Manager is new to me also. I see many printer and cups packages marked as suggested upgrades or something. I

cant find that message again. But many are shaded green in their boxes and many of those are for other priinters. Guess one has to

be selective in marking for reinstallation. This one is one that looks applicable. 'printer-driver-hp-cups'

Then, this is your job.

Revision history for this message
brian_p (claremont102) said :
#15

> Active: failed (Result: start-limit-hit)...

About the best I can offer here is to restart the computer and check status again.

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#16

Ok, will try that. thanks for your time.

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

There are some hits in a web search for "cups.service Active: failed (Result: start-limit-hit)", e.g. https://ubuntu-mate.community/t/cups-service-stopped-um-18-04/17381

A frequent suggestion is to execute these commands:

sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
systemctl restart cups

If you do this, which output do you then get for

systemctl status cups

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#18

OUTPUT
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Sun 2020-04-26 10:43:48 PDT; 9min ago
     Docs: man:cupsd(8)
  Process: 940 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 940 (code=killed, signal=TERM)

Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Service hold-off time over, scheduling restart.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: Stopped CUPS Scheduler.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Start request repeated too quickly.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Failed with result 'start-limit-hit'.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: Failed to start CUPS Scheduler.

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

Did you run the "sudo cp ..." command and then restarted cups?

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#20

Sorry, I didnt copy the full output. Here it is.

jjconstr@Aspire-5733Z:~$ sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
[sudo] password for jjconstr:
Sorry, try again.
[sudo] password for jjconstr:
jjconstr@Aspire-5733Z:~$ systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: ena
   Active: failed (Result: start-limit-hit) since Sun 2020-04-26 10:43:48 PDT; 9
     Docs: man:cupsd(8)
  Process: 940 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 940 (code=killed, signal=TERM)

Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Service hold-off time ove
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Scheduled restart job, re
Apr 26 10:43:48 Aspire-5733Z systemd[1]: Stopped CUPS Scheduler.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Start request repeated to
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Failed with result 'start
Apr 26 10:43:48 Aspire-5733Z systemd[1]: Failed to start CUPS Scheduler.
lines 1-13/13 (END)...skipping...
● cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Sun 2020-04-26 10:43:48 PDT; 9min ago
     Docs: man:cupsd(8)
  Process: 940 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
 Main PID: 940 (code=killed, signal=TERM)

Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Service hold-off time over, scheduling restart.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: Stopped CUPS Scheduler.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Start request repeated too quickly.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: cups.service: Failed with result 'start-limit-hit'.
Apr 26 10:43:48 Aspire-5733Z systemd[1]: Failed to start CUPS Scheduler.
~

Revision history for this message
Anam Alam (anam03) said :
#21

Hi ,

You can download 3.18.3 or above from https://sourceforge.net/projects/hplip/files/hplip/

And let me know if you still face the problem.

Revision history for this message
Manfred Hampl (m-hampl) said :
#22

Did you restart cups after the copy command?

systemctl restart cups

and only after that check with

systemctl status cups

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#23

Manfred,
It worked. I printed a page. great . Thanks. Solved Can you mark it solved for me?
jjconstr

jjconstr

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, April 26, 2020 11:43 PM, Manfred Hampl <email address hidden> wrote:

> Your question #690174 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690174
>
> Manfred Hampl requested more information:
> Did you restart cups after the copy command?
>
> systemctl restart cups
>
> and only after that check with
>
> systemctl status cups
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690174
>
> You received this question notification because you asked the question.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#24

Only the creator of a question can set it to "solved".
Visit https://answers.launchpad.net/hplip/+question/690174 and press the related button.

Revision history for this message
Jerry Leonard Johnson (jjconstru1) said :
#25

Thanks Manfred Hampl, that solved my question.