ubuntu 18.04 LTS - 打印服务不可用

分享于 

2分钟阅读

ubuntu

  繁體

问题:

打印机不再显示在设置->设备GUI菜单中,而是出现" Sorry! the system printing service doesn't seem to be available."

以下终端命令输出:


john@john-max:~$ sudo service cups restart


john@john-max:~$ systemctl status cups



● cups.service - CUPS Scheduler


 Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)


 Active: failed (Result: start-limit-hit) since Mon 2018-08-13 15:07:46 EDT; 14s ago


 Docs: man:cupsd(8)


 Process: 3314 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)


 Main PID: 3314 (code=killed, signal=TERM)


Aug 13 15:07:46 john-max systemd[1]: cups.service: Service hold-off time over, scheduling restart.


Aug 13 15:07:46 john-max systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.


Aug 13 15:07:46 john-max systemd[1]: Stopped CUPS Scheduler.


Aug 13 15:07:46 john-max systemd[1]: cups.service: Start request repeated too quickly.


Aug 13 15:07:46 john-max systemd[1]: cups.service: Failed with result 'start-limit-hit'.


Aug 13 15:07:46 john-max systemd[1]: Failed to start CUPS Scheduler.



john@john-max:~$ sudo apt-get install cups


Reading package lists... Done


Building dependency tree 


Reading state information... Done


cups is already the newest version (2.2.7-1ubuntu2.1).


0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



在Ubutnu软件和运行


sudo apt-get update && sudo apt-get upgrade




答案1

我遇到了同样的问题,配置文件的位置不正确,

有一个默认配置文件应该安装在/usr/share/cups/cupsd.conf.default中,所以我运行:


sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf


sudo service cups restart





服务  Ubuntu  print  打印  lts