hp plugin for mfp m127fw

Asked by jim wright on 2021-04-04

Using Ubuntu 20.04
Using HPLIP 3.20.3
mfp mfp127fw installed as network printer with an IP.
CUPS is installed.

Printer worked on Ubuntu Ubintu 18.04 and Ubuntu 16.04.

Using Ubuntu 20.04 and trying to print a 12 page document the 1st 4 pages print and then the printer stops with the remainder of the queue unprinted. The queue then must be manually cleared to use the printer.

Also noticed whenever the printer is powered up a driverless print queue is installed automatically. It doesn't work either.

hp-setup and hp-plugin do not install the plugin. and thow a non zeero error. Suspect authorized hp download server is not connec6ing. Where is his plugin located in Ubuntu so I can verify it is missing? Where can I download the plugin?

cat@ubuntu:~$ sudo hp-plugin
[sudo] password for cat:

HP Linux Imaging and Printing System (ver. 3.20.3)
Plugin Download and Install Utility ver. 2.1

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

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

HP Linux Imaging and Printing System (ver. 3.20.3)
Plugin Download and Install Utility ver. 2.1

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

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.20.3 |
-----------------------------------------

  Option Description
  ---------- --------------------------------------------------
  d Download plug-in from HP (recommended)
  p Specify a path to the plug-in (advanced)
  q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from:
Downloading plug-in: [\ ] 0% Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 88, in __init__
    self.__readAuthType() # self.__authType
  File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
    distro_name = get_distro_name().lower()
  File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
    return distro.linux_distribution(full_distribution_name=False)[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 88, in __init__
    self.__readAuthType() # self.__authType
  File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
    distro_name = get_distro_name().lower()
  File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
    return distro.linux_distribution(full_distribution_name=False)[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
cat@ubuntu:~$

Question information

Language:
English Edit question
Status:
Open
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2021-04-06
Last reply:
2021-04-04
Manfred Hampl (m-hampl) said : #1

The error
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
is probably caused by a missing apparmor exception.

You can manually download the plugin installer from https://developers.hp.com/hp-linux-imaging-and-printing/plugins
Download the run file with the version number identical to your HPLIP installation (in our case 3.20.3) and install it with
sh hplip-3.20.3-plugin.run

jim wright (j-crgl) said : #2

When I download the hplip-3.20.3-plugin.run I get a script followed by the
binary program but it's text on the screen and not saved to a file. How do
I get only the binary it to a file that can be executed?

> Your question #696385 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/696385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The error
> subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned
> non-zero exit status 1.
> is probably caused by a missing apparmor exception.
>
> You can manually download the plugin installer from
> https://developers.hp.com/hp-linux-imaging-and-printing/plugins
> Download the run file with the version number identical to your HPLIP
> installation (in our case 3.20.3) and install it with
> sh hplip-3.20.3-plugin.run
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/hplip/+question/696385/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/hplip/+question/696385
>
> You received this question notification because you asked the question.
>

Manfred Hampl (m-hampl) said : #3

What are you doing?

You should download the file to the hard disk, not display it on screen (in your web browser use the right mouse button and select "save target as..." or similar, exact wording depends on the browser that you use).

and then as already written earlier, open a terminal window and execute

cd (directory where the file is stored)
sh hplip-3.20.3-plugin.run

jim wright (j-crgl) said : #4

Thsnk you for your help.

I ran the HPLIP Plugins download and it appeared to work.

But HP Device Manager produces an error panel with this message:

HPLIP Status Service
No system tray detected on this system
Unable to start, exiting

How do I fix this?

Jim

> Your question #696385 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/696385
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> What are you doing?
>
> You should download the file to the hard disk, not display it on screen
> (in your web browser use the right mouse button and select "save target
> as..." or similar, exact wording depends on the browser that you use).
>
> and then as already written earlier, open a terminal window and execute
>
> cd (directory where the file is stored)
> sh hplip-3.20.3-plugin.run
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/hplip/+question/696385/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/hplip/+question/696385
>
> You received this question notification because you asked the question.
>

Can you help with this problem?

Provide an answer of your own, or ask jim wright for more information if necessary.

To post a message you must log in.