话说,对于15.4.1,HP打印机驱动到底应该怎么装呢?
Tofloor
poster avatar
coquille
deepin
2017-09-27 03:09
Author
本帖最后由 coquille 于 2017-9-26 19:40 编辑

https://tutorialforlinux.com/2015/04/06/how-to-get-install-hp-printers-driver-for-deepin-gnulinux-easy-guide/
这个文章已经有点老了?
我试了hp-setup和hp-plugin,结果是这样的:
  1. HP Linux Imaging and Printing System (ver. 3.16.11)
  2. Plugin Download and Install Utility ver. 2.1

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

  7. Checking for network connection...
  8. Downloading plug-in from:
  9. warning: deepin distro is not found in AUTH_TYPES
  10. error: Plugin download failed with error code = 4
  11. error:  file does not match its checksum. File may have been corrupted or altered

  12. Done.
Copy the Code
hplip官方文档是这样子的:http://hplipopensource.com/hplip-web/install/manual/distros/debian.html
非常复杂有木有?关键问题是找不到对标的debian版本啊。。

好啦,找自动安装包:https://sourceforge.net/projects/hplip/files/hplip/3.17.9/
强行安装,结果是这样子的。。
  1. ENTER ROOT/SUPERUSER PASSWORD
  2. -----------------------------
  3. Please enter the root/superuser password:
  4. error: Password incorrect. 2 attempt(s) left.
  5. Please enter the root/superuser password:
  6. error: Password incorrect. 1 attempt(s) left.
  7. Please enter the root/superuser password:
  8. error: Aborted.
Copy the Code
我哪知道root/superuser password 是啥?
继续sudo。。。结果是酱紫滴:
  1. MISSING DEPENDENCIES
  2. --------------------
  3. Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
  4. Package-Name         Component            Required/Optional   
  5. pyqt5-dbus           gui_qt5              REQUIRED            
  6. libnetsnmp-devel     network              REQUIRED            
  7. sane-devel           scan                 REQUIRED            
  8. pyqt4-dbus           gui_qt4              REQUIRED            
  9. cups-devel           base                 REQUIRED            
  10. scanimage            scan                 OPTIONAL            
  11. reportlab            fax                  OPTIONAL            
  12. pyqt5                gui_qt5              REQUIRED            
  13. pyqt4                gui_qt4              REQUIRED            
  14. libusb               base                 REQUIRED            
  15. libtool              base                 REQUIRED            
  16. cups-image           base                 REQUIRED            
  17. xsane                scan                 OPTIONAL            
  18. dbus                 fax                  REQUIRED            
  19. avahi-utils          network              OPTIONAL            
  20. Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? q
  21. yanhui-cv@yanhui-cv-pc:~/Downloads$ sudo apt-get install pyqt5-dbus libnetsnmp-devel sane-devel pyqt4-dbus cups-devel scanimage reportlab pyqt5 pyqt4 libusb libtool cups-image xsane dbus avahi-utils
  22. 正在读取软件包列表... 完成
  23. 正在分析软件包的依赖关系树      
  24. 正在读取状态信息... 完成      
  25. E: 无法定位软件包 pyqt5-dbus
  26. E: 无法定位软件包 libnetsnmp-devel
  27. E: 无法定位软件包 sane-devel
  28. E: 无法定位软件包 pyqt4-dbus
  29. E: 无法定位软件包 cups-devel
  30. E: 无法定位软件包 scanimage
  31. E: 无法定位软件包 reportlab
  32. E: 无法定位软件包 pyqt5
  33. E: 无法定位软件包 pyqt4
  34. E: 无法定位软件包 libusb
  35. E: 无法定位软件包 cups-image
Copy the Code
好吧,,手工解决上述依赖之后,,
  1. RUNNING PRE-INSTALL COMMANDS
  2. ----------------------------
  3. OK


  4. CHECKING FOR NETWORK CONNECTION
  5. -------------------------------
  6. Network connection present.


  7. RUNNING PRE-PACKAGE COMMANDS
  8. ----------------------------
  9. OK


  10. DEPENDENCY AND CONFLICT RESOLUTION
  11. ----------------------------------
  12. error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
  13. error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
  14. error: A required dependency 'pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)' is still missing.


  15. RUNNING POST-PACKAGE COMMANDS
  16. -----------------------------
  17. OK


  18. RE-CHECKING DEPENDENCIES
  19. ------------------------
  20. error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
  21. error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
  22. error: A required dependency 'pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)' is still missing.
  23. error: Installation cannot continue without these dependencies.
  24. error: Please manually install this dependency and re-run this installer.
Copy the Code


https://bbs.deepin.org/user/48640 救我。。。




Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-09-27 04:37
#1
sudo hp-plugin
Reply View the author
Comments
coquille
2017-09-27 18:26
谢谢jingle,这个的问题是下载失败,不管fq不fq,都下载失败,所以昨晚没下文。
avatar
rdlg
deepin
2017-09-27 17:27
#2
hplip这个包在Deepin系统上确实有问题,现在可以这样绕过。

1. 安装包
  1. sudo apt-get install hplip printer-driver-hpcups
Copy the Code

2.  从这里下载和当前hplip版本对应的插件 http://www.openprinting.org/down ... uxfiles/HP/plugins/
3. 安装刚刚下载的插件
  1. sudo hp-plugin hplip-3.16.11-plugin.run
Copy the Code

4. 运行 hp-setup 然后按照提示下一步就行了
Reply View the author
avatar
coquille
deepin
2017-09-27 18:36
#3
https://bbs.deepin.org/post/146033
hplip这个包在Deepin系统上确实有问题,现在可以这样绕过。

1. 安装包

兄弟,非常感谢,根据你给出的下载地址安装plugin成功了。目前可以打印了。只是打印机设置界面还不能运行(pyqt*)的问题。
  1. yanhui-cv@yanhui-cv-pc:~/Downloads/hplip$ hp-setup

  2. HP Linux Imaging and Printing System (ver. 3.16.11)
  3. Printer/Fax Setup Utility ver. 9.0

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

  8. Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
  9. Traceback (most recent call last):
  10.   File "/usr/share/hplip/ui5/setupdialog.py", line 1302, in NextButton_clicked
  11.     self.showAddPrinterPage()
  12.   File "/usr/share/hplip/ui5/setupdialog.py", line 728, in showAddPrinterPage
  13.     self.readwriteFaxInformation()
  14.   File "/usr/share/hplip/ui5/setupdialog.py", line 1097, in readwriteFaxInformation
  15.     d = fax.getFaxDevice(self.fax_uri, disable_dbus=True)
  16.   File "/usr/share/hplip/fax/fax.py", line 534, in getFaxDevice
  17.     return MarvellFaxDevice(device_uri, printer_name, callback, fax_type, disable_dbus)
  18.   File "/usr/share/hplip/fax/marvellfax.py", line 91, in __init__
  19.     sendfax_a_path = os.readlink(sendfax_path+"/hp-sendfax")
  20. FileNotFoundError: [Errno 2] 没有那个文件或目录: '/hp-sendfax'
  21. 已放弃
Copy the Code
Reply View the author
avatar
coquille
deepin
2017-09-27 18:46
#4
https://bbs.deepin.org/post/146033
兄弟,非常感谢,根据你给出的下载地址安装plugin成功了。目前可以打印了。只是打印机设置界面还不能运行 ...

啊,根据 https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1306344
使用
  1. sudo apt-get install hplip-gui
Copy the Code

解决了。非常感谢大家的帮助。
Reply View the author