安装HP打印机驱动hplip-3.14.6.run出问题

CPU/显卡/打印机/USB设备等硬件问题
回复
windsbear
帖子: 14
注册时间: 2014-07-16 12:01
系统: ubuntu 10.04

安装HP打印机驱动hplip-3.14.6.run出问题

#1

帖子 windsbear » 2014-07-16 12:14

安装时,需要一些DEPENDENCIES,如下

Running 'sudo apt-get install --assume-yes python-qt4-dbus'
PleRunning 'sudo apt-get install --assume-yes python-qt4-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-qt4'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-gobject'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-imaging'
Please wait, this may take several minutes...
ase wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-qt4'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-gobject'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-imaging'
Please wait, this may take several minutes...

........


但问题如下:

RE-CHECKING DEPENDENCIES
------------------------
warning: An optional dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
warning: Option 'gui_qt4' has been turned off.
warning: An optional dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
warning: Option 'gui_qt4' has been turned off.
warning: An optional dependency 'python-notify (Python libnotify - Python bindings for the libnotify Desktop notifications)' is still missing.
warning: Some features may not function as expected.
warning: An optional dependency 'python-dbus (Python DBus - Python bindings for DBus)' is still missing.
warning: Option 'fax' has been turned off.
warning: An optional dependency 'reportlab (Reportlab - PDF library for Python)' is still missing.
warning: Some features may not function as expected.
warning: An optional dependency 'pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))' is still missing.
warning: Some features may not function as expected.

PRE-BUILD COMMANDS
------------------
OK


BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-udev-acl-rules --disable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --disable-dbus-build --enable-scan-build --disable-fax-build'
Please wait, this may take several minutes...
error: Configure failed with error: python-devel not found



检查了所需的但在安装中出错了的DEPENDENCIES与python-dev,这些都已经安装而且是最新版本。

驱动程序没法自动找到那些DEPENDENCIES与python-dev,问题到底出现在哪? 哪位大侠指点一下!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#2

帖子 poloshiao » 2014-07-16 14:51

安装HP打印机驱动hplip-3.14.6.run
為何需要執行 hplip-3.14.6.run
而不直接安裝 hplip
sudo apt-get install hplip
windsbear
帖子: 14
注册时间: 2014-07-16 12:01
系统: ubuntu 10.04

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#3

帖子 windsbear » 2014-07-16 17:20

poloshiao 写了:
安装HP打印机驱动hplip-3.14.6.run
為何需要執行 hplip-3.14.6.run
而不直接安裝 hplip
sudo apt-get install hplip

~~~~~~~~~~~~~~~

是按照安装流程来做的。


你的建议,倒是可以试一下。

有问题再来问。
windsbear
帖子: 14
注册时间: 2014-07-16 12:01
系统: ubuntu 10.04

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#4

帖子 windsbear » 2014-07-16 17:29

sudo apt-get install hplip
.......

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
hpijs hplip-data libhpmud0 python-pexpect
Suggested packages:
hpijs-ppds hplip-doc kdeprint gtklp xpp hplip-gui
The following NEW packages will be installed:
hpijs hplip hplip-data libhpmud0 python-pexpect
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 165kB/12.6MB of archives.
After this operation, 42.3MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main python-pexpect 2.3-1build1 [165kB]
Fetched 165kB in 1s (117kB/s)
Selecting previously deselected package libhpmud0.
(Reading database ... 662706 files and directories currently installed.)
Unpacking libhpmud0 (from .../libhpmud0_3.10.2-2ubuntu2.5_amd64.deb) ...
Selecting previously deselected package python-pexpect.
Unpacking python-pexpect (from .../python-pexpect_2.3-1build1_all.deb) ...
Selecting previously deselected package hplip-data.
Unpacking hplip-data (from .../hplip-data_3.10.2-2ubuntu2.5_all.deb) ...
Selecting previously deselected package hplip.
Unpacking hplip (from .../hplip_3.10.2-2ubuntu2.5_amd64.deb) ...
Selecting previously deselected package hpijs.
Unpacking hpijs (from .../hpijs_3.10.2-2ubuntu2.5_amd64.deb) ...
Processing triggers for man-db ...
Setting up libhpmud0 (3.10.2-2ubuntu2.5) ...

Setting up python-pexpect (2.3-1build1) ...

Setting up hplip-data (3.10.2-2ubuntu2.5) ...

Setting up hpijs (3.10.2-2ubuntu2.5) ...
PPD for printer Deskjet-F2200-series updated

Processing triggers for python-central ...
Setting up hplip (3.10.2-2ubuntu2.5) ...
Creating/updating hplip user account...
Can't open /etc/hp/hplip.conf: No such file or directory.
Can't open /etc/hp/hplip.conf: No such file or directory.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

还是出问题。
windsbear
帖子: 14
注册时间: 2014-07-16 12:01
系统: ubuntu 10.04

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#5

帖子 windsbear » 2014-07-16 17:31

如何让驱动安装程序自动找到那些已经安装的DEPENDENCIES与python-dev? 哪位大侠指点一下!

如何设定相应的路径?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#6

帖子 poloshiao » 2014-07-16 19:36

Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main python-pexpect 2.3-1build1 [165kB]
你的 ubuntu 是 10.04 ?
https://wiki.ubuntu.com/Releases
Ubuntu 10.04.4 LTS
End of life date
May 9, 2013 (Desktop)
桌面版 自 2013/05/09 已經停止支援 線上更新/安裝 套件

建議
升級到 12.04 或 14.04 以後 再安裝 hplip
如果 希望維持在 10.04 需要修改下載伺服器 請再貼文
如何让驱动安装程序自动找到那些已经安装的DEPENDENCIES与python-dev?
sudo apt-get install hplip
直接從 ubuntu 套件庫 最省事 幾乎大部分 都幫你搞定
直接安裝下載的 安裝程式或套件包 通常需要額外安裝需要的相依套件
所花費的時間 可能比升級到 12.04 / 14.04 還多 問題還不一定能搞定
除非 12.04 / 14.04 已經被證實不相容你的印表機 否則升級是最簡單的方法
windsbear
帖子: 14
注册时间: 2014-07-16 12:01
系统: ubuntu 10.04

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#7

帖子 windsbear » 2014-07-17 22:03

已升级到12.04.

系统自带的hplip不支持我的printer.

所以我还得重新开始, 运行sh hplip-3.14.6.run(支持我的printer), 结果還是出问题,如下:

........
PRE-BUILD COMMANDS
------------------
OK


BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib --prefix=/usr --enable-udev-acl-rules --disable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --disable-dbus-build --enable-scan-build --disable-fax-build'
Please wait, this may take several minutes...
error: Configure failed with error: General/unknown error


不知该如何解决?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#8

帖子 poloshiao » 2014-07-18 7:10

系统自带的hplip不支持我的printer.
請提供 品牌/型號
windsbear
帖子: 14
注册时间: 2014-07-16 12:01
系统: ubuntu 10.04

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#9

帖子 windsbear » 2014-07-18 9:57

品牌/型號: HP deskjet ink advantage 3515 e-ALL-in-one


http://hplipopensource.com/hplip-web/in ... index.html
此处说,ubuntu12.04自带的HPLIP 3.12.2,不支持HP Deskjet Ink Advantage 3515 E-all-in-one,如下:

Installation Wizard
You have selected Ubuntu 12.04 using the HP Deskjet Ink Advantage 3515 E-all-in-one.
Ubuntu 12.04 supplies HPLIP 3.12.2 by default, which does not support your printer.
You must ensure latest HPLIP version (recommemded), or at least HPLIP 3.12.9 in order to use your printer with Ubuntu 12.04.


所以,下载了最新的hplip-3.14.6.run去安装。问题還是没解决。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 安装HP打印机驱动hplip-3.14.6.run出问题

#10

帖子 poloshiao » 2014-07-18 11:31

You must ensure latest HPLIP version (recommemded), or at least HPLIP 3.12.9 in order to use your printer with Ubuntu 12.04.
1. http://packages.ubuntu.com/precise-backports/hplip
Package: hplip (3.13.9-1ubuntu0.1~ubuntu12.04.1)
最左下方 選
amd
i386
下載 deb

2. 比較簡單的方法
軟體中心 / 編輯 / 軟體來源 / 軟體和更新 /更新

precise-backports
打勾

3. sudo apt-get update
sudo apt-get install hplip
就是
3.13.9-1ubuntu0.1~ubuntu12.04.1
大於 3.12.9

4. 其它 ubuntu 上面的 hplip 版本
http://packages.ubuntu.com/search?suite ... chon=names

5. hplip 相依於 cups
所以會同時安裝 cups
https://help.ubuntu.com/12.04/serverguide/cups.html
5-1. 這個方法 可以幫你測試 安裝的驅動 有沒有作用
https://help.ubuntu.com/12.04/servergui ... l#cups-web
品牌/型號: HP deskjet ink advantage 3515 e-ALL-in-one
6. 進一步參閱
https://help.ubuntu.com/community/HpAllInOne
回复