无法通过samba使用网络打印机,如何调试问题?


9

我有一个通过samba可用的网络打印机,我想从我的Ubuntu 14.04中使用它。不幸的是,仅仅通过打印机添加它是不够的。如果我尝试使用它,它说:Connection failed: NT_STATUS_UNSUCCESSFUL然后Unable to connect to CIFS host, will retry in 60 seconds...

我如何调试这些东西并了解它不起作用的原因?

/var/log/cups/error_log

E [23/Jul/2014:13:58:41 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:42 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:43 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:43 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
E [23/Jul/2014:13:59:44 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:45 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:46 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:46 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
E [23/Jul/2014:14:00:47 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:48 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:49 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:49 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...

Answers:


8

也许对某人会有帮助。

我在Ubuntu 14.04上遇到了相同的问题。以下步骤为我解决了问题:

  • 删除通过添加的打印机 System Settings->Printers
  • localhost:631 在浏览器中打开
  • 转到管理标签,点击添加打印机按钮,然后按照说明进行操作

我不知道为什么,但是只有以这种方式添加打印机后,它才对我和我的同事有效。


1

我通过修改打印机设备URI以包括用户名和密码来解决了这一问题,格式为:

smb://username:password@uri.com/printer

(要更改此设置,请转到系统设置>打印机,然后右键单击打印机图标)

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.