[problem help] hp 1020 plus打印机无法打印, hp-plugin 运行报错
Tofloor
poster avatar
ddf120
deepin
2024-11-18 20:39
Author

如题:hp 1020 plus打印机无法打印, hp-plugin 运行报错,看来官网一些解决方法,问题是机器,无法运行相关命令,求助各位大神。

参考案例:https://bbs.deepin.org/zh/post/218888

# hp-plugin 
Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 39, in 
    from base.g import *
  File "/opt/hp/hplip/bin/base/g.py", line 240, in 
    sys_conf = SysConfig()
               ^^^^^^^^^^^
  File "/opt/hp/hplip/bin/base/g.py", line 185, in __init__
    ConfigBase.__init__(self, '/opt/apps/com.hp.hplip/files/hplip.conf')
  File "/opt/hp/hplip/bin/base/g.py", line 90, in __init__
    self.read()
  File "/opt/hp/hplip/bin/base/g.py", line 131, in read
    self.conf.readfp(fp)
    ^^^^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
root@ifdown-PC:/home/ifdown/Downloads# hp-plugin 
Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 39, in 
    from base.g import *
  File "/opt/hp/hplip/bin/base/g.py", line 240, in 
    sys_conf = SysConfig()
               ^^^^^^^^^^^
  File "/opt/hp/hplip/bin/base/g.py", line 185, in __init__
    ConfigBase.__init__(self, '/opt/apps/com.hp.hplip/files/hplip.conf')
  File "/opt/hp/hplip/bin/base/g.py", line 90, in __init__
    self.read()
  File "/opt/hp/hplip/bin/base/g.py", line 131, in read
    self.conf.readfp(fp)
    ^^^^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

Reply Favorite View the author
All Replies
HualetWang
deepin
2024-11-18 21:55
#1

系统是不是折腾坏掉了,重新安装一下这几个包,再添加打印机试试:

sudo apt install --reinstall hplip hplip-data hplip-plugin

Reply View the author
liuyongzhang
deepin
2024-11-19 08:06
#2

1:终端运行

sudo apt remove hplip* && sudo apt reinstall hplip

2:然后再重新添加打印机

驱动千万别选择3.22.12

驱动一定要选择3.22.10

Reply View the author
remyxo
deepin
2024-11-19 08:36
#3

同楼上。

如果还不行,试试再安装printer-driver-hpcups,再选择cups 3.22.10这个驱动。

Reply View the author
ddf120
deepin
2024-11-20 20:07
#4
HualetWang

系统是不是折腾坏掉了,重新安装一下这几个包,再添加打印机试试:

sudo apt install --reinstall hplip hplip-data hplip-plugin

谢谢,还是不行

Reply View the author
ddf120
deepin
2024-11-20 20:08
#5
liuyongzhang

1:终端运行

sudo apt remove hplip* && sudo apt reinstall hplip

2:然后再重新添加打印机

驱动千万别选择3.22.12

驱动一定要选择3.22.10

用的3.22.10驱动安装的,不知道问什么打印机就是不能用

Reply View the author
liuyongzhang
deepin
2024-11-20 23:07
#6
ddf120

用的3.22.10驱动安装的,不知道问什么打印机就是不能用

终端运行

sudo apt-get install libssl*

3.22.10驱动有2个的话选下边的那个

Reply View the author
ddf120
deepin
2024-11-23 19:33
#7

谢谢各位友人的支持,重装系统后,安装也是不太稳定,有时候打印正常,有时候不正常,设备太老,驱动兼容不太好。

Reply View the author