无法使用打印机
Tofloor
poster avatar
axing86829
deepin
2020-11-04 19:21
Author

单位换了深度系统后,好多打印机无法使用,给办公带来了很大的不便,希望哪位朋友可以帮助解决。谢谢!

Reply Favorite View the author
All Replies
deepinuser17
deepin
2020-11-04 20:13
#1

查看USB接口的许可:


ls -lh /dev/usb/lp*



Reply View the author
asmask
deepin
2020-11-04 20:42
#2
deepinuser17

查看USB接口的许可:


ls -lh /dev/usb/lp*



crw-rw---- 1 root lp 180, 1 11月 4 12:38 /dev/usb/lp1
同样的问题,以上是'lp -lh /dev/usb/lp*'的结果

Reply View the author
jingle
deepin
2020-11-04 21:52
#3
Reply View the author
axing86829
deepin
2020-11-05 00:46
#4

问题已得到解决,十分感谢,谢谢!

Reply View the author
asmask
deepin
2020-11-05 04:25
#5
axing86829

问题已得到解决,十分感谢,谢谢!

请问如何解决的?我重新安装hplip都没有用

Reply View the author
deepinuser17
deepin
2020-11-05 07:43
#6

如果用户不是lp组的成员, 这个用户就没有读写权利, 因而无法使用打印机.

解决方法是把用户加到lp组里.


sudo usermod -a -G lpudo usermod -a -G lp <用户名>


查看用户是否已经是lp组成员 (范例):

id user1


结果:

uid=1001(user1) gid=1001(user1) groups=1001(user1),7(lp),27(sudo),100(users),109(netdev),117(lpadmin),120(scanner),123(sambashare)





Reply View the author
deepinuser17
deepin
2020-11-05 07:45
#7

这个论坛有臭虫, 回帖无法正常修改.


sudo usermod -a -G lpudo usermod -a -G lp <用户名>udo usermod -a -G lpudo usermod -a -G lp <用户名>



Reply View the author
asmask
deepin
2020-11-05 18:33
#8
deepinuser17

这个论坛有臭虫, 回帖无法正常修改.


sudo usermod -a -G lpudo usermod -a -G lp <用户名>udo usermod -a -G lpudo usermod -a -G lp <用户名>



我的用户组包含lp,权限没问题。问题是hplip.plugin-error,无法打印。
试图通过hp-plugin安装,出现如下错误:

Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.18.12 Plugin Self Extracting Archive.........................................................
Error setting home directory: /etc/hp/hplip.conf not found. Is HPLIP installed?
error: Python gobject/dbus may be not installed



Reply View the author
asmask
deepin
2020-11-05 23:14
#9

下载安装hplip-3.18.12.run和hplip-3.18.12-plugin.run,安装成功,任然出现hplip.plugin-error

Reply View the author
deepinuser17
deepin
2020-11-07 08:40
#10
asmask

我的用户组包含lp,权限没问题。问题是hplip.plugin-error,无法打印。
试图通过hp-plugin安装,出现如下错误:

Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.18.12 Plugin Self Extracting Archive.........................................................
Error setting home directory: /etc/hp/hplip.conf not found. Is HPLIP installed?
error: Python gobject/dbus may be not installed



安装出现错误.


查看/etc/hp是否存在. 如果不存在, 创建这个目录:

ls -ld /etc/hp
sudo mkdir /etc/hp


安装hplip软件时, 要用sudo:

sudo apt install hplip hplip-plugin


然后重启机器.

Reply View the author