Добрый день! Не выходит установить плагин для принтера.
При запуске hp-plugin и принятия лицензии проприетарного драйвера (нажатия 'y' и Enter), ничего не происходит. А по идеи должен запросить пароль для sudo.
Если без GUI, после остановки(Ctrl+C) вываливается вот это:
$ hp-plugin -i
Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
\
|
/
-^CTraceback (most recent call last):
File "./plugin_install.py", line 184, in <module>
if not installPlugin():
File "./plugin_install.py", line 56, in installPlugin
status, output = utils.run(cmd, passwordObj)
File "/usr/share/hplip/base/utils.py", line 1277, in run
i = child.expect(EXPECT_LIST)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1418, in expect
timeout, searchwindowsize)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1433, in expect_list
timeout, searchwindowsize)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1502, in expect_loop
c = self.read_nonblocking(self.maxread, timeout)
File "/usr/share/hplip/base/pexpect/__init__.py", line 901, in read_nonblocking
r, w, e = self.__select([self.child_fd], [], [], timeout)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1687, in __select
return select.select(iwtd, owtd, ewtd, timeout)
KeyboardInterrupt
error: Python gobject/dbus may be not installed
------------------------
| DOWNLOADING FIRMWARE |
------------------------
Downloading firmware to device hp:/usb/HP_LaserJet_P1005?serial=BC1AGBP...
error: Firmware file '/usr/share/hplip/data/firmware/hp_laserjet_p1005.fw.gz' not found.
Done.
На 15.04 работало со старой версией hplip(не помню предыдущую).
HPLIP 3.15.11 ставил через apt-get install. Пробывал запускать с
http://hplipopensource.com hplip-3.15.11.run, тоже виснет, только после запроса пароля sudo. Баг описан, только на английском, а я с ним не дружу
https://bugs.launchpad.net/hplip/+bug/1517494. Попробовал как здесь
https://bugs.launchpad.net/hplip/+bug/1486731/comments/10, не даёт запускать от рута. Попробовал закоментить проверку рута в начале скрипта, всё равно дальше выкидывает(видать где-то ещё проверка есть). Запускал hp-check, лог:
$ hp-check
Saving output in log file: /home/msx/hp-check.log
HP Linux Imaging and Printing System (ver. 3.15.11)
Dependency/Version Check Utility ver. 15.1
Copyright (c) 2001-15 Hewlett-Packard 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
warning: ubuntu-15.10 version is not supported. Using ubuntu-15.04 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 4.2.0-19-generic #23-Ubuntu SMP Wed Nov 11 11:39:30 UTC 2015 GNU/Linux
Host: msx-uvm
Proc: 4.2.0-19-generic #23-Ubuntu SMP Wed Nov 11 11:39:30 UTC 2015 GNU/Linux
Distribution: ubuntu 15.10
Bitness: 64 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.15.11
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 15.10 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.15.11
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.15.11
html=/usr/share/doc/hplip-3.15.11
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
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=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.15.11
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory
Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
latest_available_version = 3.15.11
notify_upgrade = false
last_upgraded_time = 1449498377
pending_upgrade_time = 0
[installation]
date_time = 12/16/15 22:30:47
version = 3.15.11
[settings]
systray_visible = 0
systray_messages = 0
[last_used]
device_uri = hp:/usb/HP_LaserJet_P1005?serial=BC1AGBP
printer_name = HP-LaserJet-P1005
working_dir = /home/msx/HPLaserJetP1005/hplip-3.15.11-plugin.run
[commands]
scan = /usr/bin/simple-scan %SANE_URI%
[refresh]
rate = 30
enable = false
type = 1
[polling]
enable = false
interval = 5
device_list =
[fax]
voice_phone =
email_address =
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
--------------------------
| External Dependencies |
--------------------------
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.998 OK -
dbus DBus - Message bus system REQUIRED - 1.10.0 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.25 OK -
network network -wget OPTIONAL - 1.16.1 OK -
avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.0 OK 'CUPS Scheduler is running'
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.16 OK -
-------------------------
| General Dependencies |
-------------------------
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.10 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 2.7.10 OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.0 OK -
libjpeg libjpeg - JPEG library REQUIRED - - OK -
sane-devel SANE - Scanning library development files REQUIRED - 1.0.25 OK -
sane SANE - Scanning library REQUIRED - 1.0.25 OK -
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.1.0 OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.21' OK -
python3-xml Python XML libraries REQUIRED - 2.1.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.2.0 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.11.4 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
---------------
| COMPILEDEP |
---------------
libtool libtool - Library building support services REQUIRED - 2.4.2 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 5.2.1 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.0 OK -
----------------------
| Python Extentions |
----------------------
cupsext CUPS-Extension REQUIRED - 3.15.11 OK -
hpmudext IO-Extension REQUIRED - 3.15.11 OK -
-----------------------
| Scan Configuration |
-----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.15.11 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.15.11 OK -
-----------------------
| Other Dependencies |
-----------------------
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
No Scanner found.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
Device URI Model
-------------------------------- -----------------
hp:/usb/HP_LaserJet_P1005?serial HP LaserJet P1005
=BC1AGBP
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-LaserJet-P1005
-----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_P1005?serial=BC1AGBP
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: принтер HP-LaserJet-P1005 свободен. Включен с момента Ср. 16 дек. 2015 1ready to print
error: Required plug-in status: Not installed
Communication status: Good
--------------
| PERMISSION |
--------------
USB HP-LaserJet-P1005 Required - - OK Node:'/dev/bus/usb/001/006' Perm:' root lp rw- rw- rw- rw- r--'
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
None
Missing Optional Dependencies
-----------------------------
None
Plug-in Status
--------------
error: Plug-ins need to be installed
Total Errors: 1
Total Warnings: 0
Run 'hp-doctor' command to prompt and fix the issues.
Done.
hp-doctor вызывает hp-plugin, повторяется история с лицензией.
Post scriptum:$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Принтер HP LaserJet P1005
Рабочее окружение Unity