HP M177fw打印机安装ubuntu15的时候认出来了,但无法打印

CPU/显卡/打印机/USB设备等硬件问题
回复
the5day
帖子: 9
注册时间: 2008-08-08 14:21

HP M177fw打印机安装ubuntu15的时候认出来了,但无法打印

#1

帖子 the5day » 2015-07-17 14:38

打印机:Hewlett-Packard HP Color LaserJet Pro MFP M177fw 彩色一体机

系统:新安装的Ubuntu15.04 64位版
连接:USB(这款打印机可以用网线连接,但我没试)
控制面板里的设备URI:hp:/usb/HP_Color_LaserJet_Pro_MFP_M177fw?serial=CNG6GBN32Y
usb://HP/Color%20LaserJet%20Pro%20MFP%20M177fw?serial=CNG6GBN32Y&interface=1这个也试过,一样没用。
现象:刚安装完系统,系统设置里的打印机显示已经自动认出我的打印机(两个图标,一个打印机一个FAX,因为是一体机),但打印测试页,显示任务发出,打印机任务里有该任务,但状态显示为:已停止。右键重新打印也没用,打印机一点反应没有。

问题:我是个新手,对Linux不太懂,一知半解,请问如何解决我的打印机问题?谢谢!!

poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: HP M177fw打印机安装ubuntu15的时候认出来了,但无法打印

#2

帖子 poloshiao » 2015-07-17 17:52

the5day
帖子: 9
注册时间: 2008-08-08 14:21

Re: HP M177fw打印机安装ubuntu15的时候认出来了,但无法打印

#3

帖子 the5day » 2015-07-20 8:59

poloshiao 写了:先參閱
https://help.ubuntu.com/lts/serverguide/cups.html
特別是
https://help.ubuntu.com/lts/serverguide ... l#cups-web

如果還有問題
請再貼文

已经仔细阅读了您给的两个链接,学习了一些CUPS通用打印的使用和配置,也进入了CUPS的WEB配置页面,但无法找到我问题的解决方案,请给予具体帮助。
CUPS的WEB管理打印机界面如下::

▼ Queue Name ▼ Description Location Make and Model Status
HP-Color-LaserJet-Pro-MFP-M177fw Hewlett-Packard HP Color LaserJet Pro MFP M177fw sunyang-9020 HP Color LaserJet Pro MFP m177fw, hpcups 3.15.2, requires proprietary plugin Idle
HP-Color-LaserJet-Pro-MFP-M177fw-Fax-2 HP Fax 2 sunyang-9020 HP Fax2 hpcups Idle
查看我的配置文件如下
#
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
PageLogFormat

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing Off
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default

# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>

<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default

# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>

<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>
the5day
帖子: 9
注册时间: 2008-08-08 14:21

Re: HP M177fw打印机安装ubuntu15的时候认出来了,但无法打印

#4

帖子 the5day » 2015-07-20 18:09

找到解决方法,借鉴了一些别人的帖子内容,十分感谢。

解决问题的关键是HP的打印机需要安装插件才能正常使用。

系统:Ubuntu 14.04
插件下载地址:http://www.openprinting.org/download/pr ... P/plugins/
需要插件版本:hplip-3.14.3-plugin.run hplip-3.14.3-plugin.run.asc
(Ubuntu14.04的hp-plugin命令只认3.14.3,高了不行,反正命令行提示你用哪个版本,你就下载哪个就对了)
使用的命令:
1> sudo hp-plugin -i -g
2> 选择P选项,手动指定hplipxxxx.run位置(路径不能有中文,你可以在Home下自己随便建个英文文件夹)
3> 选择y选项,确定安装这个插件
添加打印机:
删除系统自动认出添加上的打印机,然后手动添加(系统会认出相应打印机,选中添加即可)

至此打印机不会再没反应,我的是彩色打印机,打印彩色也正常。
回复