问题现象:添加打印机时报错“server-error-internal-error”

23c6536fa7a884b88f961115b9c0fee7.jpg

解决方法:

sudo apt install cups cups-filters printer-driver-cups-pdf printer-driver-gutenprint printer-driver-pnm2ppa

这一行命令复制粘贴到终端上回车,提示输入密码,盲敲就行(敲密码时是看不见的,敲完回车就行),执行完重新连接下打印机看看

如果出现


sudo:无法解析主机:localhost.localdomain:未知的名称或服务
xxxxxx……
下列软件包有未满足的依赖关系:
xxxxxx……


单独输入以下试试,

sudo apt install printer-driver-cups-pdf 
sudo apt install printer-driver-gutenprint

如果还不行就复制下面脚本并保存

#!/bin/bash

# 990-2203update1切源并升级

sudo chmod o=rwx /etc/apt/sources.list
sudo echo  "deb https://archive.kylinos.cn/kylin/KYLIN-ALL .test-10.1-wayland-2203-updates main universe restricted multiverse" > /etc/apt/sources.list
sudo echo  "deb https://archive.kylinos.cn/kylin/KYLIN-ALL .test-10.1-kirin990-feature main" >> /etc/apt/sources.list
sudo echo  "deb https://archive2.kylinos.cn/deb/kylin/production/PART-10_1-kirin9a0/custom/partner/10_1-kirin9a0 default all" >> /etc/apt/sources.list

sudo chattr +i /etc/apt/sources.list
sudo apt  update
list=`cat /etc/apt/sources.list`

echo $list

sudo apt -y dist-upgrade
sudo apt install -y -f
sudo apt install ukui-greeter-wayland ukui-session-wayland
sudo chattr -i /etc/apt/sources.list
sudo chmod o=r /etc/apt/sources.list

dpkg -l |grep -v ii
read -n1 -r -p "请按任意键退出" key

exit

赋予执行权限

sudo chmod -x 脚本名.sh

在终端执行脚本

bash  脚本名.sh

加载到2203得源地址后ctrl +c 中断掉,然后重新安装

sudo apt install cups cups-filters printer-driver-cups-pdf printer-driver-gutenprint printer-driver-pnm2ppa