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

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

我有一个通过 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...

答案1

也许它对某些人有帮助。

我在 Ubuntu 14.04 上遇到了同样的问题。以下步骤帮我解决了这个问题:

  • 删除通过添加的打印机System Settings->Printers
  • localhost:631 在浏览器中打开
  • 转到“管理”选项卡,单击“添加打印机”按钮并按照说明进行操作

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

答案2

我通过修改打印机设备 URI 以包含用户名和密码来解决这个问题,格式如下:

smb://username:[email protected]/printer

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

相关内容