问题背景:
在使用WPS Office进行打印时,发现打印机选择列表中包含了大量非本地已添加的打印机,影响打印。如图1所示,只有标红的PDF-Print-Driver-for-Kylin是本地已添加的打印机,其他打印机均不是。
解决方案:
经过分析,确定非本地打印机列表的出现与avahi-daemon服务有关。如果不想非本地打印机列表出现,则需要关闭avahi-daemon服务。
1、在桌面空白处右键,选择打开终端选项,打开终端。
2、执行如下命令,关闭avahi-daemon服务:
sudo systemctl stop avahi-daemon.socket回车,输入开机密码。
sudo systemctl stop avahi-daemon.service回车运行。

3、再执行如下命令,设置avahi-daemon服务开机不自启:
sudo systemctl disable avahi-daemon.socket
sudo systemctl disable avahi-daemon.service

4、重启系统,然后再次打开WPS Office进行打印,验证该问题是否已解决。