当前位置: 代码迷 >> 综合 >> 报错:Failed to start cups
  详细解决方案

报错:Failed to start cups

热度:37   发布时间:2023-10-16 16:34:51.0

在机器重启时出现报错

[FAILED]Failed to listen on CUPS Scheduler.
See 'systemctl status cups.socket' for details
[FAILED]Failed to start CUPS Schedular.
See 'system status cups.path' for details
[FAILED]Failed to start CUPS Schedular.

在开机启动项的地方选择Ubuntu Advanced Option
然后选择recovery mode
接着选择root Drop to root shell prompt
终端输入

systemctl status cups.path

报错:Failed to start cups
看着上面的情况,终端输入

systemctl start cups.patha
systemctl status cups.path

报错:Failed to start cups
解决办法:

sudo apt-get install --reinstall printer-driver-hpcups
sudo apt-get install hplip-gui

运行上述两行时报错:
error while loading shared libraries:libavahi-common.so.3:cannot open shared object file:No such file or directory
需要运行以下:

sudo apt install --reinstall libavahi-common3
#因为后续安装又出现找不到libavahi-client.so.3
sudo apt install --reinstall libavahi-client3
  相关解决方案