[Kernel/Drive] HP LaserJet P1106打印机无法打印
Tofloor
poster avatar
YL-Jack
deepin
2024-10-06 18:52
Author

硬件配置:

yangliang@yangliang-PC:~$ fastfetch 
             ............                 yangliang@yangliang-PC
         .';;;;;.       .,;,.             ----------------------
      .,;;;;;;;.       ';;;;;;;.          OS: Deepin beige 23 x86_64
    .;::::::::'     .,::;;,''''',.        Host: 81YL (Lenovo XiaoXin-15IIL 2020)
   ,'.::::::::    .;;'.          ';       Kernel: Linux 6.6.47-amd64-desktop-hwe
  ;'  'cccccc,   ,' :: '..        .:      Uptime: 1 hour, 41 mins
 ,,    :ccccc.  ;: .c, '' :.       ,;     Packages: 1791 (dpkg), 9 (flatpak), 6 (linglong)
.l.     cllll' ., .lc  :; .l'       l.    Shell: bash 5.2.21
.c       :lllc  ;cl:  .l' .ll.      :'    Display (CMN154F): 1920x1080 @ 60 Hz in 16″ [Built-in]
.l        'looc. .   ,o:  'oo'      c,    DE: DDE
.o.         .:ool::coc'  .ooo'      o.    WM: KWin (X11)
 ::            .....   .;dddo      ;c     Theme: deepin-dark [GTK2]
  l:...            .';lddddo.     ,o      Icons: flow [GTK2]
   lxxxxxdoolllodxxxxxxxxxc      :l       Cursor: bloom
    ,dxxxxxxxxxxxxxxxxxxl.     'o,        Terminal: deepin-terminal 6.0.14
      ,dkkkkkkkkkkkkko;.    .;o;          Terminal Font: Noto Sans Mono (11pt)
        .;okkkkkdl;.    .,cl:.            CPU: Intel(R) Core(TM) i7-1065G7 (8) @ 3.90 GHz
            .,:cccccccc:,.                GPU 1: NVIDIA GeForce MX350
                                          GPU 2: Intel Iris Plus Graphics G7 @ 1.10 GHz [Integrated]
                                          Memory: 2.56 GiB / 15.31 GiB (17%)
                                          Swap: 0 B / 4.00 GiB (0%)
                                          Disk (/): 23.12 GiB / 62.44 GiB (37%) - ext4
                                          Disk (/media/yangliang/Data): 7.63 GiB / 408.64 GiB (2%) - fuseblk
                                          Local IP (wlp0s20f3): 192.168.1.67/24
                                          Battery (L19M4PF1): 24% [Charging]
                                          Locale: zh_CN.UTF-8

重装打印机驱动提示:

yangliang@yangliang-PC:~$ sudo su
请输入密码:
验证成功
root@yangliang-PC:/home/yangliang# aptss purge hplip*
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成       
注意,根据Glob 'hplip*' 选中了 'hplip-ppds'
注意,根据Glob 'hplip*' 选中了 'hplip-dbgsym'
注意,根据Glob 'hplip*' 选中了 'hplip-doc'
注意,根据Glob 'hplip*' 选中了 'hplip-gui'
注意,根据Glob 'hplip*' 选中了 'hplip'
注意,根据Glob 'hplip*' 选中了 'hplip-cups'
注意,根据Glob 'hplip*' 选中了 'hplip-plugin'
注意,根据Glob 'hplip*' 选中了 'hplip-data'
软件包 hplip-cups 未安装,所以不会被卸载
注意,选中 'hpijs-ppds' 而非 'hplip-ppds'
下列软件包是自动安装的并且现在不需要了:
  libsane-hpaio printer-driver-hpcups printer-driver-postscript-hp python3-dbus.mainloop.pyqt5 python3-distro python3-notify2 python3-pexpect python3-ptyprocess
使用'sudo apt autoremove'来卸载它(它们)。
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
下列软件包将被【卸载】:
  hplip* hplip-data* hplip-dbgsym* hplip-doc* hplip-gui* hplip-plugin*
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
升级了 0 个软件包,新安装了 0 个软件包,要卸载 6 个软件包,有 0 个软件包未被升级。
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
解压缩后将会空出 16.5 MB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 322461 个文件和目录。)
正在卸载 hplip-plugin (3.18.12) ...
正在卸载 hplip-dbgsym (3.22.10+dfsg0-5deepin2) ...
正在卸载 hplip-doc (3.22.10+dfsg0-5deepin2) ...
正在卸载 hplip-gui (3.22.10+dfsg0-5deepin2) ...
正在卸载 hplip (3.22.10+dfsg0-5deepin2) ...
正在卸载 hplip-data (3.22.10+dfsg0-5deepin2) ...
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/ui5 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/scan 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/prnt 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/pcard 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/installer 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/fax 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/copier 非空,因而不会删除该目录
dpkg: 警告: 卸载 hplip-data 时,目录 /usr/share/hplip/base/pexpect 非空,因而不会删除该目录
正在处理用于 desktop-file-utils (0.26-deepin) 的触发器 ...
正在处理用于 libc-bin (2.38-6deepin6) 的触发器 ...
正在处理用于 man-db (2.12.0-1) 的触发器 ...
正在处理用于 dbus (1.14.10-3) 的触发器 ...
正在处理用于 bamfdaemon (0.5.6+repack-1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
(正在读取数据库 ... 系统当前共安装有 321745 个文件和目录。)
正在清除 hplip (3.22.10+dfsg0-5deepin2) 的配置文件 ...
正在清除 hplip-gui (3.22.10+dfsg0-5deepin2) 的配置文件 ...
正在处理用于 dbus (1.14.10-3) 的触发器 ...
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
root@yangliang-PC:/home/yangliang# aptss install hplip*

hplip                                    3.22.10+dfsg0-5deepin2     201KiB
hplip-data                               3.22.10+dfsg0-5deepin2     6.3MiB
hplip-dbgsym                             3.22.10+dfsg0-5deepin2      88KiB
hplip-doc                                3.22.10+dfsg0-5deepin2     581KiB
hplip-gui                                3.22.10+dfsg0-5deepin2      24KiB
hplip-plugin                             3.18.12                  1.3MiB
Download size: 8.4MiB
下载大小: 8.4MiB

Do you want to download the packages? [Y/n] 

10/06 18:49:10 [NOTICE] Downloading 6 item(s)

10/06 18:49:10 [NOTICE] CUID#7 - Redirecting to https://community-packages.deepin.com/deepin/beige/pool/main/h/hplip/hplip-data_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:10 [NOTICE] 验证成功完成。文件=/var/cache/apt/apt-fast/hplip_3.22.10+dfsg0-5deepin2_amd64.deb

10/06 18:49:10 [NOTICE] 下载已完成:/var/cache/apt/apt-fast/hplip_3.22.10+dfsg0-5deepin2_amd64.deb

10/06 18:49:10 [NOTICE] 验证成功完成。文件=/var/cache/apt/apt-fast/hplip-gui_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:10 [NOTICE] 下载已完成:/var/cache/apt/apt-fast/hplip-gui_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:10 [NOTICE] 验证成功完成。文件=/var/cache/apt/apt-fast/hplip-dbgsym_3.22.10+dfsg0-5deepin2_amd64.deb

10/06 18:49:11 [NOTICE] 下载已完成:/var/cache/apt/apt-fast/hplip-dbgsym_3.22.10+dfsg0-5deepin2_amd64.deb

10/06 18:49:11 [NOTICE] 验证成功完成。文件=/var/cache/apt/apt-fast/hplip-doc_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:11 [NOTICE] 下载已完成:/var/cache/apt/apt-fast/hplip-doc_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:11 [NOTICE] 验证成功完成。文件=/var/cache/apt/apt-fast/hplip-data_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:11 [NOTICE] 下载已完成:/var/cache/apt/apt-fast/hplip-data_3.22.10+dfsg0-5deepin2_all.deb

10/06 18:49:11 [NOTICE] 验证成功完成。文件=/var/cache/apt/apt-fast/hplip-plugin_3.18.12_amd64.deb

10/06 18:49:11 [NOTICE] 下载已完成:/var/cache/apt/apt-fast/hplip-plugin_3.18.12_amd64.deb

下载结果:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
8609ad|OK  |   3.3MiB/s|/var/cache/apt/apt-fast/hplip_3.22.10+dfsg0-5deepin2_amd64.deb
718b73|OK  |   536KiB/s|/var/cache/apt/apt-fast/hplip-gui_3.22.10+dfsg0-5deepin2_all.deb
d09763|OK  |   0.9MiB/s|/var/cache/apt/apt-fast/hplip-dbgsym_3.22.10+dfsg0-5deepin2_amd64.deb
7fa91a|OK  |   3.0MiB/s|/var/cache/apt/apt-fast/hplip-doc_3.22.10+dfsg0-5deepin2_all.deb
10a8cf|OK  |    12MiB/s|/var/cache/apt/apt-fast/hplip-data_3.22.10+dfsg0-5deepin2_all.deb
414fb2|OK  |   3.0MiB/s|/var/cache/apt/apt-fast/hplip-plugin_3.18.12_amd64.deb

状态标识:
(OK): 下载完成。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成       
注意,根据Glob 'hplip*' 选中了 'hplip-ppds'
注意,根据Glob 'hplip*' 选中了 'hplip-dbgsym'
注意,根据Glob 'hplip*' 选中了 'hplip-doc'
注意,根据Glob 'hplip*' 选中了 'hplip-gui'
注意,根据Glob 'hplip*' 选中了 'hplip'
注意,根据Glob 'hplip*' 选中了 'hplip-cups'
注意,根据Glob 'hplip*' 选中了 'hplip-plugin'
注意,根据Glob 'hplip*' 选中了 'hplip-data'
注意,选中 'hpijs-ppds' 而非 'hplip-ppds'
hpijs-ppds 已经是最新版 (3.22.10+dfsg0-5deepin2)。
建议安装:
  system-config-printer
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
下列【新】软件包将被安装:
  hplip hplip-data hplip-dbgsym hplip-doc hplip-gui hplip-plugin
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
升级了 0 个软件包,新安装了 6 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
需要下载 0 B/8,760 kB 的归档。
解压缩后会消耗 16.5 MB 的额外空间。
您希望继续执行吗? [Y/n] y
正在选中未选择的软件包 hplip-data。
(正在读取数据库 ... 系统当前共安装有 321743 个文件和目录。)
准备解压 .../0-hplip-data_3.22.10+dfsg0-5deepin2_all.deb  ...
正在解压 hplip-data (3.22.10+dfsg0-5deepin2) ...
正在选中未选择的软件包 hplip。
准备解压 .../1-hplip_3.22.10+dfsg0-5deepin2_amd64.deb  ...
正在解压 hplip (3.22.10+dfsg0-5deepin2) ...
被已安装的软件包 com.hp.hplip (3.24.1.1) 中的文件替换了...
正在选中未选择的软件包 hplip-dbgsym。
准备解压 .../2-hplip-dbgsym_3.22.10+dfsg0-5deepin2_amd64.deb  ...
正在解压 hplip-dbgsym (3.22.10+dfsg0-5deepin2) ...
正在选中未选择的软件包 hplip-doc。
准备解压 .../3-hplip-doc_3.22.10+dfsg0-5deepin2_all.deb  ...
正在解压 hplip-doc (3.22.10+dfsg0-5deepin2) ...
正在选中未选择的软件包 hplip-gui。
准备解压 .../4-hplip-gui_3.22.10+dfsg0-5deepin2_all.deb  ...
正在解压 hplip-gui (3.22.10+dfsg0-5deepin2) ...
被已安装的软件包 com.hp.hplip (3.24.1.1) 中的文件替换了...
正在选中未选择的软件包 hplip-plugin。
准备解压 .../5-hplip-plugin_3.18.12_amd64.deb  ...
正在解压 hplip-plugin (3.18.12) ...
正在设置 hplip-doc (3.22.10+dfsg0-5deepin2) ...
正在设置 hplip-data (3.22.10+dfsg0-5deepin2) ...
/usr/share/hplip/base/LedmWifi.py:34: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/base/device.py:49: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/base/g.py:304: SyntaxWarning: invalid escape sequence '\|'
  spinner = "\|/-\|/-"
/usr/share/hplip/base/g.py:354: SyntaxWarning: invalid escape sequence '\d'
  m = re.search('python(\d(\.\d){0,2})', ext_path)            #get the python version where the .so file is found
/usr/share/hplip/base/imagesize.py:186: SyntaxWarning: invalid escape sequence '\#'
  re.compile('\#define\s+\S+\s+\d+')     : ('image/x-xbitmap', xbmsize),
/usr/share/hplip/base/imagesize.py:187: SyntaxWarning: invalid escape sequence '\/'
  re.compile('\/\* XPM \*\/')            : ('image/x-xpixmap', xpmsize),
/usr/share/hplip/base/imagesize.py:189: SyntaxWarning: invalid escape sequence '\*'
  re.compile('^II\*\x00')                : ('image/tiff', tiffsize),
/usr/share/hplip/base/logger.py:439: SyntaxWarning: invalid escape sequence '\<'
  elem_start = re.findall("(\<\W{0,1}\w+) ?", line)[0]
/usr/share/hplip/base/logger.py:440: SyntaxWarning: invalid escape sequence '\]'
  elem_finished = re.findall("([?|\]\]]*\>)", line)[0]
/usr/share/hplip/base/logger.py:442: SyntaxWarning: invalid escape sequence '\S'
  attrs = re.findall("(\S*?\=\".*?\")", line)
/usr/share/hplip/base/models.py:37: SyntaxWarning: invalid escape sequence '\d'
  pat_prod_num = re.compile("""(\d+)""", re.I)
/usr/share/hplip/base/models.py:428: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^r(\d+)-agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:429: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^r(\d+)-agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:430: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^r(\d+)-agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:431: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:432: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-virgin', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:433: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-dvc', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:434: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:435: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:436: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-id', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:437: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-hp-ink', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:438: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-health-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:439: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-health$', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:440: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-known', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:441: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-level', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:442: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-ack', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:443: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:444: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^in-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:445: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^out-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:446: SyntaxWarning: invalid escape sequence '\d'
  re.compile('^model(\d+)', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/password.py:212: SyntaxWarning: invalid escape sequence '\['
  cb = cb.replace("[", "\[")
/usr/share/hplip/base/password.py:213: SyntaxWarning: invalid escape sequence '\]'
  cb = cb.replace("]", "\]")
/usr/share/hplip/base/queues.py:48: SyntaxWarning: invalid escape sequence '\*'
  NICKNAME_PATTERN = re.compile(b'''\*NickName:\s*\"(.*)"''', re.MULTILINE)
/usr/share/hplip/base/status.py:1335: SyntaxWarning: invalid escape sequence '\s'
  pjl_code_pat = re.compile("""^CODE\s*=\s*(\d.*)$""", re.IGNORECASE)
/usr/share/hplip/base/tui.py:220: SyntaxWarning: invalid escape sequence '\|'
  self.spinner = "\|/-\|/-*"
/usr/share/hplip/base/utils.py:150: SyntaxWarning: invalid escape sequence '\w'
  lis = ((re.findall('SystemGroup [\w* ]*',fp.read()))[0].replace('SystemGroup ','')).split(' ')
/usr/share/hplip/base/utils.py:1584: SyntaxWarning: invalid escape sequence '\*'
  USAGE_LOGGING2 = ("", ": none, info\*, error, warn, debug (\*default)", "option", False)
/usr/share/hplip/base/utils.py:1592: SyntaxWarning: invalid escape sequence '\*'
  USAGE_BUS2 = ("", ": cups\*, usb\*, net, bt, fw, par\* (\*defaults) (Note: bt and fw not supported in this release.)", 'option', False)
/usr/share/hplip/base/utils.py:1598: SyntaxWarning: invalid escape sequence '\*'
  USAGE_STD_NOTES2 = ("If -p\* is specified, the default CUPS printer will be used.", "", "note", False)
/usr/share/hplip/base/utils.py:1826: SyntaxWarning: invalid escape sequence '\-'
  log.info(".SH NAME\n%s \- %s" % (crumb, title))
/usr/share/hplip/base/utils.py:1925: SyntaxWarning: invalid escape sequence '\w'
  return re.sub("&#?\w+;", fixup, text)
/usr/share/hplip/base/utils.py:1978: SyntaxWarning: invalid escape sequence '\d'
  pat=re.compile('''(\d{1,})([a-z]{1,})''')
/usr/share/hplip/check.py:630: SyntaxWarning: invalid escape sequence '\s'
  lsusb_pat = re.compile("""^Bus\s([0-9a-fA-F]{3,3})\sDevice\s([0-9a-fA-F]{3,3}):\sID\s([0-9a-fA-F]{4,4}):([0-9a-fA-F]{4,4})(.*)""", re.IGNORECASE)
/usr/share/hplip/fax/ledmfax.py:46: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile(b"""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/fax/soapfax.py:44: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/installer/dcheck.py:35: SyntaxWarning: invalid escape sequence '\d'
  ver1_pat = re.compile("""(\d+\.\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:36: SyntaxWarning: invalid escape sequence '\d'
  ver_pat = re.compile("""(\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:360: SyntaxWarning: invalid escape sequence '\d'
  xsane_ver_pat =re.compile('''xsane-(\d{1,}\.\d{1,}).*''')
/usr/share/hplip/makeuri.py:49: SyntaxWarning: invalid escape sequence '\*'
  ("To specify the port on a multi-port JetDirect:", "-p or --port= (Valid values are 1\*, 2, and 3. \*default)", "option", False),
/usr/share/hplip/prnt/cups.py:170: SyntaxWarning: invalid escape sequence '\s'
  pat_cups_error_log = re.compile("""^loglevel\s?(debug|debug2|warn|info|error|none)""", re.I)
/usr/share/hplip/probe.py:45: SyntaxWarning: invalid escape sequence '\*'
  ("", ": cups, usb\*, net, bt, fw, par (\*default) (Note: bt and fw not supported in this release.)", "option", False),
/usr/share/hplip/probe.py:49: SyntaxWarning: invalid escape sequence '\*'
  ("", ": comma separated list of one or more of: scan, pcard, fax, copy, or none\*. (\*none is the default)", "option", False),
/usr/share/hplip/scan.py:254: SyntaxWarning: invalid escape sequence '\*'
  ("Scan mode:", "-m or --mode=. Where  is 'gray'\*, 'color' or 'lineart'.", "option", False),
/usr/share/hplip/scan.py:271: SyntaxWarning: invalid escape sequence '\*'
  ("", "where  is 'mm'\*, 'cm', 'in', 'px', or 'pt' ('mm' is default).", "option", False),
/usr/share/hplip/setup.py:82: SyntaxWarning: invalid escape sequence '\*'
  ("To specify the port on a multi-port JetDirect:", "--port= (Valid values are 1\*, 2, and 3. \*default)", "option", False),
/usr/share/hplip/setup.py:86: SyntaxWarning: invalid escape sequence '\*'
  ("Type of queue(s) to install:", "-t or --type=. : print*, fax\* (\*default) (-i mode only)", "option", False),
正在设置 hplip (3.22.10+dfsg0-5deepin2) ...
Creating/updating hplip user account...
正在设置 hplip-gui (3.22.10+dfsg0-5deepin2) ...
正在设置 hplip-dbgsym (3.22.10+dfsg0-5deepin2) ...
正在设置 hplip-plugin (3.18.12) ...
正在处理用于 desktop-file-utils (0.26-deepin) 的触发器 ...
正在处理用于 libc-bin (2.38-6deepin6) 的触发器 ...
正在处理用于 man-db (2.12.0-1) 的触发器 ...
正在处理用于 dbus (1.14.10-3) 的触发器 ...
正在处理用于 bamfdaemon (0.5.6+repack-1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
Running external script with list of all .deb file: '[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true'
root@yangliang-PC:/home/yangliang# hp-setup 
/usr/bin/hp-setup:82: SyntaxWarning: invalid escape sequence '\*'
  ("To specify the port on a multi-port JetDirect:", "--port= (Valid values are 1\*, 2, and 3. \*default)", "option", False),
/usr/bin/hp-setup:86: SyntaxWarning: invalid escape sequence '\*'
  ("Type of queue(s) to install:", "-t or --type=. : print*, fax\* (\*default) (-i mode only)", "option", False),
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 47, 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@yangliang-PC:/home/yangliang# exit
exit
yangliang@yangliang-PC:~$ 
Reply Favorite View the author
All Replies
deepin
2024-10-06 20:28
#1

很巧刚刚解决了一个类似的问题。

我的打印机是HP Laserjet P1606

最后的错误信息跟你的是一样的。我去/var/log/cups/里面看了错误信息,发现也许是libcrypto.so.1.1没有。

按照网上的指示:https://bbs.deepin.org.cn/en/post/277536

(我完全照抄了)然后问题就解决了。

就是这些驱动老了依赖旧的库,新系统没有照顾到这些老驱动,然后就不能直接使用了。希望管理员能更新。

deepin越来越好了,我现在已经抛弃ubuntu了。

Reply View the author
小小怪冲啊!
deepin
2024-10-06 20:42
#2

不懂诶

Reply View the author
affoto
deepin
2024-10-07 08:05
#3

这么长的字母就不如win的图片操作了。

对于一个平常用户使用画面还是有较好的辨识度,deepin什么时间可以摆脱字母操作?

Reply View the author
180******43
deepin
2024-10-10 09:49
#4

这些语法错误和python 3.12的语法变化有关系,建议修复一下。

https://bugs.launchpad.net/hplip/+bug/2029480

Reply View the author
YL-Jack
deepin
2024-10-11 22:35
#5
affoto

这么长的字母就不如win的图片操作了。

对于一个平常用户使用画面还是有较好的辨识度,deepin什么时间可以摆脱字母操作?

其实用打印管理器就可以安装打印机驱动

Reply View the author