hp-plugin fails to download driver

Bug #2007680 reported by JPi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

hp-plugin fails to download the plugin. It reports "Network connection not detected."
but that's not the actual issue.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

$ sudo hp-plugin -g -i

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

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

HP Linux Imaging and Printing System (ver. 3.22.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-plugin[161253]: debug: Locking: /var/hp-plugin.lock
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.22.2 |
-----------------------------------------

  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) ?

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

Checking for network connection...
hp-plugin[161253]: debug: /usr/bin/wget --cache=off --tries=3 --timeout=60 --output-document=- http://www.hp.com --spider -S
hp-plugin[161253]: debug: Spider mode enabled. Check if remote file exists.
--2023-02-17 12:44:26-- http://www.hp.com/
Resolving www.hp.com (www.hp.com)... 23.0.174.80, 23.0.174.113, 2a02:26f0:3000::1700:ae82, ...
Connecting to www.hp.com (www.hp.com)|23.0.174.80|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 503 Service Unavailable
  Server: AkamaiGHost
  Mime-Version: 1.0
  Content-Type: text/html
  Content-Length: 176
  Expires: Fri, 17 Feb 2023 11:44:26 GMT
  Date: Fri, 17 Feb 2023 11:44:26 GMT
  Connection: keep-alive
  Set-Cookie: aka_client_code=CH-
  Akamai-GRN: 0.4cae0017.1676634266.4275fc6
Remote file does not exist -- broken link!!!

hp-plugin[161253]: debug: wget returned: 8
hp-plugin[161253]: debug: /usr/bin/curl --output - --connect-timeout 5 --max-time 10 http://www.hp.com --head
hp-plugin[161253]: debug: Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 354, in <module>
    ok = utils.check_network_connection()
  File "/usr/share/hplip/base/utils.py", line 2294, in check_network_connection
    status = download_via_curl(url, head=True)
  File "/usr/share/hplip/base/utils.py", line 2272, in download_via_curl
    status, output = run(cmd)
  File "/usr/share/hplip/base/utils.py", line 1295, in run
    child = pexpect.spawnu(cmd, timeout=timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
    super(spawnu, self).__init__(*args, **kwargs)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
    self._spawn(command, args)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
    os.execv(self.command, self.args)
PermissionError: [Errno 13] Permission denied
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 354, in <module>
    ok = utils.check_network_connection()
  File "/usr/share/hplip/base/utils.py", line 2294, in check_network_connection
    status = download_via_curl(url, head=True)
  File "/usr/share/hplip/base/utils.py", line 2272, in download_via_curl
    status, output = run(cmd)
  File "/usr/share/hplip/base/utils.py", line 1295, in run
    child = pexpect.spawnu(cmd, timeout=timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
    super(spawnu, self).__init__(*args, **kwargs)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
    self._spawn(command, args)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
    os.execv(self.command, self.args)
PermissionError: [Errno 13] Permission denied

hp-plugin[161253]: debug: curl returned: 1
hp-plugin[161253]: debug: /usr/bin/ping -c1 -W1 -w10 www.hp.com
hp-plugin[161253]: debug: Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 354, in <module>
    ok = utils.check_network_connection()
  File "/usr/share/hplip/base/utils.py", line 2296, in check_network_connection
    status = check_network_via_ping(ping_server)
  File "/usr/share/hplip/base/utils.py", line 2285, in check_network_via_ping
    status, output = run(cmd)
  File "/usr/share/hplip/base/utils.py", line 1295, in run
    child = pexpect.spawnu(cmd, timeout=timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
    super(spawnu, self).__init__(*args, **kwargs)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
    self._spawn(command, args)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
    os.execv(self.command, self.args)
PermissionError: [Errno 13] Permission denied
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 354, in <module>
    ok = utils.check_network_connection()
  File "/usr/share/hplip/base/utils.py", line 2296, in check_network_connection
    status = check_network_via_ping(ping_server)
  File "/usr/share/hplip/base/utils.py", line 2285, in check_network_via_ping
    status, output = run(cmd)
  File "/usr/share/hplip/base/utils.py", line 1295, in run
    child = pexpect.spawnu(cmd, timeout=timeout)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
    super(spawnu, self).__init__(*args, **kwargs)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
    self._spawn(command, args)
  File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
    os.execv(self.command, self.args)
PermissionError: [Errno 13] Permission denied

hp-plugin[161253]: debug: ping returned: 1
error: Network connection not detected.
hp-plugin[161253]: debug: Unlocking: /var/hp-plugin.lock

$ hp-doctor

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

-Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 276, in <module>
    dep.core.init()
  File "/usr/share/hplip/installer/core_install.py", line 523, in init
    self.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined

$ hp-check
Saving output in log file: /home/juanpi/Projects/OST/tooling/Forschungsschwerpunkte/hp-check.log

HP Linux Imaging and Printing System (ver. 3.22.2)
Dependency/Version Check Utility ver. 15.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: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

-Traceback (most recent call last):
  File "/usr/bin/hp-check", line 861, in <module>
    dep.core.init()
  File "/usr/share/hplip/installer/core_install.py", line 523, in init
    self.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined

Revision history for this message
brian_p (claremont102) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.