问题
我在运行Ubuntu,当我打开打印机对话框时,收到错误消息"Printing service not available,
我试过
$ sudo service cups start
start: Job is already running: cups
ps -ef|grep cups | grep -v grep
root 1210 1 0 08:15 ? 00:00:03 /usr/sbin/cups-browsed
ls -t -l
total 96
-rw-r----- 1 root lpadmin 0 Jan 3 08:45 access_log
-rw-r----- 1 root lpadmin 0 Jan 3 08:45 page_log
-rw-r----- 1 root lpadmin 7920 Jan 2 13:22 access_log.1
-rw-r----- 1 root lpadmin 3389 Jan 2 13:17 page_log.1
-rw-r----- 1 root lpadmin 125 Dec 31 09:20 access_log.2.gz
-rw-r----- 1 root lpadmin 0 Dec 31 08:29 error_log
...
在dmesg
中,我发现的另一个线索,多次重复
[17169.471390] audit: type=1400 audit(1421413284.183:1700): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=26540 comm="apparmor_parser"
[17169.471398] audit: type=1400 audit(1421413284.183:1701): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=26540 comm="apparmor_parser"
[17169.492953] audit: type=1400 audit(1421413284.207:1702): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="third_party" pid=26540 comm="apparmor_parser"
[17169.496523] init: cups main process (26541) terminated with status 1
[17169.496532] init: cups main process ended, respawning
我尝试过
sudo apt-get purge cups
sudo apt-get install cups --install-suggests
但还是没有改变。
答案1
我运行了
sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
sudo service cups restart
然后可以工作了。
答案2
我运行:
sudo apt-get purge cups
sudo apt-get install cups --install-suggests
然后我检查了配置是否正确,尝试访问网络HP打印机时,我仍然遇到错误,不得不重新安装打印机,然后才能正常工作。
相关文章