HP laserjet p1102w无法禁用智能安装

我正在尝试通过USB在Ubuntu 16.04 LTS上安装我的HP laserjet专业p1102w打印机。 我正专注于让它在本地工作,因为我认为无线可能更不稳定或需要更多时间来尝试修复。

之前它曾经使用过Windows,但最近我转向了Linux。

我在系统设置/打印机上找到了我的打印机。 我实际上发现了两个,可能是因为它在某些时候也被无线使用过。 我不记得在什么阶段,但我决定删除它们。 现在他们不在那里。

我在hplipopensource上使用此页面尝试了hplip

使用hp-setup ,当我通过usb发现设备时,我得到一个想要禁用智能安装的弹出窗口。 我接受,但我收到此错误消息:

无法禁用智能安装。 请参阅http://hplipopensource.com/node/367

我转到链接并尝试方法nr 2.(因为我的打印机没有方法1所需的前面板)。

当我运行hp-doctor时,我收到错误:

HPLIP无法检测网络中的设备。 这可能是由于现有的防火墙设置阻止了所需的端口,如(5353 / udp)。 当您处于受信任的网络环境中时,您可以在防火墙中打开mdns和slp等网络服务的端口。 有关详细步骤,请参阅http://hplipopensource.com/node/375

我按照链接,我不明白我应该去哪里。 我现在暂时跳过这一步并尝试hp-doctor

我更新了存储库并安装了所有缺失/不兼容的软件包。

之后,它说:

error: Smart Install is enabled in "HP LaserJet Professional P 1102w" device(s). Do you want to download and disable smart install?(y=yes*, n=no): 

在我同意之后,我收到了一份崩溃报告,说明doctor.py意外停止了这个:

 Traceback (most recent call last): File "/usr/bin/hp-doctor", line 328, in  queues.main_function(core.passwordObj, MODE,ui_toolkit, False, DEVICE_URI) File "/usr/share/hplip/base/queues.py", line 349, in main_function SI_sts, error_str = smart_install.disable(mode, '', None, None, passwordObj) File "/usr/share/hplip/base/smart_install.py", line 253, in disable sts, smart_install_run, smart_install_asc, error_str = download(mode, passwordObj) File "/usr/share/hplip/base/smart_install.py", line 192, in download digsig_sts, smart_install_run, smart_install_asc, error_str = validate(mode, smart_install_run, smart_install_asc) File "/usr/share/hplip/base/smart_install.py", line 154, in validate calc_checksum = utils.get_checksum(open(smart_install_run, 'r').read()) File "/usr/lib/python3.5/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 9529: invalid start byte 

我正在跳过尝试方法nr 3,但我没有得到任何关于bInterfaceClass的信息:

 $ lsusb Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 03f0:102a Hewlett-Packard Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 003: ID 049f:000e Compaq Computer Corp. Internet Keyboard Bus 004 Device 002: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub f $ lsusb -s 001:002 Bus 001 Device 002: ID 03f0:102a Hewlett-Packard $ lsusb -s 001:002 | grep bInterfaceClass $ 

即使我没有得到任何我试过的信息:

 $ sudo -i # su -c "gpg --keyserver pgp.mit.edu --recv-keys 0xA59047B9" gpg: keyring `/root/.gnupg/secring.gpg' created gpg: keyring `/root/.gnupg/pubring.gpg' created gpg: requesting key A59047B9 from hkp server pgp.mit.edu gpgkeys: key A59047B9 can't be retrieved gpg: no valid OpenPGP data found. gpg: Total number processed: 0 gpg: keyserver communications error: keyserver helper general error gpg: keyserver communications error: unknown pubkey algorithm gpg: keyserver receive failed: unknown pubkey algorithm 

我不明白数字签名的validation是什么。 下一步也不起作用:

 # su -c "gpg --verify SmartInstallDisable-Tool.run.asc SmartInstallDisable-Tool.run" gpg: can't open `SmartInstallDisable-Tool.run.asc' gpg: verify signatures failed: file open error 

最后一步也不起作用:

 # sh SmartInstallDisable-Tool.run sh: 0: Can't open SmartInstallDisable-Tool.run 

我也试过这样: 如何安装HP LaserJet P1102w?

但在设置和添加打印机时,打印机不会显示在列表中(不在本地或作为网络连接)。

连接打印机后请执行以下步骤

  1. 使用这些说明停用智能安装function停用智能安装

    • 下载SmartInstallDisable-Tool.run 。
    • 按照说明执行SmartInstallDisable-Tool,你可以跳过步骤“C”只做步骤“D”

      d。 在终端中运行命令“sh SmartInstallDisable-Tool.run”以禁用设备中的智能安装function。

      您将在控制台中看到如下错误:

        sh: SmartInstallDisable-Tool.run Creating directory SmartInstallDisable-Tool Verifying archive integrity... All good. Uncompressing Smart Install Disable Utility Self Extracting Archive........... [SMART INSTALL DISABLE UTILITY] Libusb package is not installed. Please install the libusb-1.0/libusb-0.1 package from the package manager and re-run this script 

      要修复它,您只需安装此软件包即可

        sudo apt-get install libusb-1.0-0-dev 

      像这个页面解释如何正确安装libusb

    • 现在您可以在终端中运行sh SmartInstallDisable-Tool.run而不会出现任何错误。
  2. 您将看到打印机将开始安装,但系统进行的默认安装不起作用,请按以下步骤操作
  3. 如果尚未安装,请安装hplip-gui
  4. 现在运行此命令启动hplip-gui

     sudo hp-setup 
  5. 在图形用户界面中选择USB; 你的打印机会出现; 选择它并单击下一步,然后按照终端中的任何提示完成安装

注意:在您的打印机设置中,您会看到两台hp laserjet p1102w打印机,请勿使用系统自动安装的打印机,使用hp安装工具为您安装的打印机,默认情况下,工作打印机名称为: HP_LaserJet_Professional_P_1102w