manjaro21惠普1106打印机配置2021-06-24

最近安装惠普p1106打印机,看着都安装的好好的(自带驱动),但就是打印不了,网上也没有相应教程,我现在技术好很多,也懒得写了,就说个思路大家慢慢研究吧!

1.内置的hp打印机驱动有一个hp-check功能,注意检查依赖关系,把没有安装的4个依赖装上。

2.依赖里面有一个python3-notify2,不要照搬照抄,既然是python3的组件,其实也就是python的组件,装一个python-notify2不就好了,要变通

3.除了依赖还有一个hplip-plugin打印组件也必须要安装,不装就不可以打印哦!

下面是源码,重点部分我已经加粗了!!!:

[franksunk@franksun-tobefilledbyoem ~]$ hp-check

/usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?

  if 'getfacl' not in g and '' is not g and 'file' not in g:

Saving output in log file: /home/franksunk/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.4)

Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP

This software comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to distribute it

under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:

1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP

supplied tarball (.tar.gz or .run) to determine if the proper dependencies are

installed to successfully compile HPLIP.

2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied

package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper

dependencies installed to successfully run.

3. Both compile- and run-time check mode (-b or --both) (Default): This mode will

check both of the above cases (both compile- and run-time dependencies).

Check types:

a. EXTERNALDEP - External Dependencies

b. GENERALDEP - General Dependencies (required both at compile and run time)

c. COMPILEDEP - Compile time Dependencies

d. [All are run-time checks]

PYEXT SCANCONF QUEUES PERMISSION

Status Types:

    OK

    MISSING      - Missing Dependency or Permission or Plug-in

    INCOMPAT      - Incompatible dependency-version or Plugin-version

warning: 26-21.0.7 version is not supported. Using 26-20.2 versions dependencies to verify and install...

---------------

| SYSTEM INFO |

---------------

Kernel: 5.10.42-1-MANJARO #1 SMP PREEMPT Thu Jun 3 14:37:11 UTC 2021 GNU/Linux

Host: franksun-tobefilledbyoem

Proc: 5.10.42-1-MANJARO #1 SMP PREEMPT Thu Jun 3 14:37:11 UTC 2021 GNU/Linux

Distribution: 26 21.0.7

Bitness: 64 bit

-----------------------

| HPLIP CONFIGURATION |

-----------------------

HPLIP-Version: HPLIP 3.21.4

HPLIP-Home: /usr/share/hplip

warning: HPLIP-Installation: Auto installation is not supported for 26 distro  21.0.7 version

Current contents of '/etc/hp/hplip.conf' file:

# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]

version=3.21.4

[dirs]

home=/usr/share/hplip

run=/var/run

ppd=/usr/share/ppd/HP

ppdbase=/usr/share/ppd

doc=/usr/share/doc/hplip-3.21.4

html=/usr/share/doc/hplip-3.21.4

icon=/usr/share/applications

cupsbackend=/usr/lib/cups/backend

cupsfilter=/usr/lib/cups/filter

drv=/usr/share/cups/drv/hp

bin=/usr/bin

apparmor=/etc/apparmor.d

# Following values are determined at configure time and cannot be changed.

[configure]

network-build=yes

libusb01-build=no

pp-build=yes

gui-build=yes

scanner-build=yes

fax-build=yes

dbus-build=yes

cups11-build=no

doc-build=yes

shadow-build=no

hpijs-install=no

foomatic-drv-install=no

foomatic-ppd-install=no

foomatic-rip-hplip-install=no

hpcups-install=yes

cups-drv-install=yes

cups-ppd-install=no

internal-tag=3.21.4

restricted-build=no

ui-toolkit=qt5

qt3=no

qt4=no

qt5=yes

policy-kit=no

lite-build=no

udev_sysfs_rules=no

hpcups-only-build=no

hpijs-only-build=no

apparmor_build=no

class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:

Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:

[installation]

date_time = 06/23/21 22:12:13

version = 3.21.4

               

-------------------------

| External Dependencies |

-------------------------

cups                CUPS - Common Unix Printing System                          REQUIRED        1.1            2.3.3          OK        'CUPS Scheduler is running'

gs                  GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.54.0          OK        -

error: xsane        xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9            -              MISSING    'xsane needs to be installed'

scanimage            scanimage - Shell scanning program                          OPTIONAL        1.0            1.0.32          OK        -

dbus                DBus - Message bus system                                    REQUIRED        -              1.12.20        OK        -

policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -              0.119          OK        -

network              network -wget                                                OPTIONAL        -              1.21.1          OK        -

avahi-utils          avahi-utils                                                  OPTIONAL        -              0.8            OK        -

------------------------

| General Dependencies |

------------------------

libjpeg              libjpeg - JPEG library                                      REQUIRED        -              -              OK        -

cups-devel          CUPS devel- Common Unix Printing System development files    REQUIRED        -              2.3.3          OK        -

cups-image          CUPS image - CUPS image development files                    REQUIRED        -              2.3.3          OK        -

libpthread          libpthread - POSIX threads library                          REQUIRED        -              b'2.33'        OK        -

libusb              libusb - USB library                                        REQUIRED        -              1.0            OK        -

sane                SANE - Scanning library                                      REQUIRED        -              1.0.32          OK        -

sane-devel          SANE - Scanning library development files                    REQUIRED        -              1.0.32          OK        -

libavahi-dev        libavahi-dev                                                REQUIRED        -              -              OK        -

libnetsnmp-devel    libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9          5.9.1          OK        -

libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -              1.1.1          OK        -

python3X            Python 2.2 or greater - Python programming language          REQUIRED        2.2            3.9.5          OK        -

error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -              -              MISSING    'python3-notify2 needs to be installed'   #少依赖python3-notify2(1)

error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4                        OPTIONAL        4.0            -              MISSING    'python3-pyqt4-dbus needs to be installed'

error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)        REQUIRED        4.0            -              MISSING    'python3-pyqt4 needs to be installed'

python3-dbus        Python DBus - Python bindings for DBus                      REQUIRED        0.80.0          1.2.16          OK        -

python3-xml          Python XML libraries                                        REQUIRED        -              2.4.1          OK        -

python3-devel        Python devel - Python development files                      REQUIRED        2.2            3.9.5          OK        -

python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -              8.2.0          OK        -

python3-reportlab    Reportlab - PDF library for Python                          OPTIONAL        2.0            3.5.67          OK        -

--------------

| COMPILEDEP |

--------------

libtool              libtool - Library building support services                  REQUIRED        -              2.4.6          OK        -

gcc                  gcc - GNU Project C and C++ Compiler                        REQUIRED        -              11.1.0          OK        -

make                make - GNU make utility to maintain groups of programs      REQUIRED        3.0            4.3            OK        -

---------------------

| Python Extentions |

---------------------

cupsext              CUPS-Extension                                              REQUIRED        -              3.21.4          OK        -

hpmudext            IO-Extension                                                REQUIRED        -              3.21.4          OK        -

----------------------

| Scan Configuration |

----------------------

hpaio                HPLIP-SANE-Backend                                          REQUIRED        -              3.21.4          OK        'hpaio found in /etc/sane.d/dll.conf'

scanext              Scan-SANE-Extension                                          REQUIRED        -              3.21.4          OK        -

------------------------------

| DISCOVERED SCANNER DEVICES |

------------------------------

No Scanner found.

--------------------------

| DISCOVERED USB DEVICES |

--------------------------

No devices found.

---------------------------------

| INSTALLED CUPS PRINTER QUEUES |

---------------------------------

warning: No queues found.

--------------

| PERMISSION |

--------------

-----------

| SUMMARY |

-----------

Missing Required Dependencies

-----------------------------

error: 'python-pyqt4' package is missing/incompatible #少依赖python-pyqt4(2)

error: 'pygtk' package is missing/incompatible #少依赖pygtk(3)

Missing Optional Dependencies

-----------------------------

error: 'xsane' package is missing/incompatible #少依赖xsane(4)

Total Errors: 4

Total Warnings: 0

Done.

[franksunk@franksun-tobefilledbyoem ~]$ yay -S python-pyqt4  #装依赖python-pyqt4(1)

正在解析依赖关系...

正在查找软件包冲突...

软件包 (5) pyqt4-common-4.12.3-5  python-sip-pyqt4-4.19.25-1  qt4-4.8.7-35

          sip-6.1.0-1  python-pyqt4-4.12.3-5

全部安装大小:  105.65 MiB

:: 进行安装吗? [Y/n] Y

(5/5) 正在检查密钥环里的密钥                        [###########################] 100%

(5/5) 正在检查软件包完整性                          [###########################] 100%

(5/5) 正在加载软件包文件                            [###########################] 100%

(5/5) 正在检查文件冲突                              [###########################] 100%

(5/5) 正在检查可用存储空间                          [###########################] 100%

:: 正在处理软件包的变化...

(1/5) 正在安装 sip                                  [###########################] 100%

(2/5) 正在安装 python-sip-pyqt4                    [###########################] 100%

(3/5) 正在安装 qt4                                  [###########################] 100%

qt4 的可选依赖

    postgresql-libs: PostgreSQL driver

    mariadb-libs: MariaDB driver

    unixodbc: ODBC driver

    libfbclient: Firebird/iBase driver

    libxinerama: Xinerama support [已安装]

    libxcursor: Xcursor support [已安装]

    libxfixes: Xfixes support [已安装]

    icu: Unicode support [已安装]

    sni-qt: StatusNotifierItem (AppIndicators) support

(4/5) 正在安装 pyqt4-common                        [###########################] 100%

(5/5) 正在安装 python-pyqt4                        [###########################] 100%

python-pyqt4 的可选依赖

    phonon-qt4: enable audio and video in PyQt applications

:: 正在运行事务后钩子函数...

(1/3) Arming ConditionNeedsUpdate...

(2/3) Updating icon theme caches...

(3/3) Updating the desktop file MIME type cache...

[franksunk@franksun-tobefilledbyoem ~]$ yay -S pygtk #装依赖pygtk(2)

正在解析依赖关系...

正在查找软件包冲突...

软件包 (6) gtk2-2.24.33-2  libglade-2.6.4-8  python2-2.7.18-3  python2-cairo-1.18.2-4

          python2-gobject2-2.28.7-6.1  pygtk-2.24.0-14

下载大小:    7.21 MiB

全部安装大小:  122.35 MiB

:: 进行安装吗? [Y/n] Y

:: 正在获取软件包......

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/extra/x86_64/gtk2-2.24.33-2-x86_64.pkg.tar.zst

File size: 5.87693 兆字节 (6162404 bytes)

正在打开输出文件 /var/cache/pacman/pkg/gtk2-2.24.33-2-x86_64.pkg.tar.zst.part

正在开始下载

连接 0 完成下载

连接 1 完成下载

连接 3 完成下载

连接 5 完成下载

连接 6 完成下载

连接 4 完成下载

[100%] [........................................................] [  4.9MB/s] [00:00]

已下载 5.87693 兆字节,用时 1 秒。(5031.45 KB/s)

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/extra/x86_64/python2-cairo-1.18.2-4-x86_64.pkg.tar.zst

File size: 60.5703 千字节 (62024 bytes)

正在打开输出文件 /var/cache/pacman/pkg/python2-cairo-1.18.2-4-x86_64.pkg.tar.zst.part

正在开始下载

[100%] [........................................................] [ 263.4KB/s] [00:00]

已下载 60.5703 千字节,用时 0 秒。(263.42 KB/s)

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/community/x86_64/libglade-2.6.4-8-x86_64.pkg.tar.zst

File size: 72.3857 千字节 (74123 bytes)

正在打开输出文件 /var/cache/pacman/pkg/libglade-2.6.4-8-x86_64.pkg.tar.zst.part

正在开始下载

[100%] [........................................................] [ 319.1KB/s] [00:00]

已下载 72.3857 千字节,用时 0 秒。(319.08 KB/s)

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/community/x86_64/python2-gobject2-2.28.7-6.1-x86_64.pkg.tar.zst

File size: 311.786 千字节 (319269 bytes)

正在打开输出文件 /var/cache/pacman/pkg/python2-gobject2-2.28.7-6.1-x86_64.pkg.tar.zst.part

正在开始下载

[100%] [........................................................] [  1.2MB/s] [00:00]

已下载 311.786 千字节,用时 0 秒。(1178.87 KB/s)

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/community/x86_64/pygtk-2.24.0-14-x86_64.pkg.tar.zst

File size: 924.613 千字节 (946804 bytes)

正在打开输出文件 /var/cache/pacman/pkg/pygtk-2.24.0-14-x86_64.pkg.tar.zst.part

正在开始下载

连接 0 完成下载

连接 1 完成下载

连接 2 完成下载

连接 3 完成下载

连接 5 完成下载

连接 6 完成下载

[100%] [........................................................] [  2.7MB/s] [00:00]

已下载 924.613 千字节,用时 0 秒。(2809.72 KB/s)

(6/6) 正在检查密钥环里的密钥                        [###########################] 100%

(6/6) 正在检查软件包完整性                          [###########################] 100%

(6/6) 正在加载软件包文件                            [###########################] 100%

(6/6) 正在检查文件冲突                              [###########################] 100%

(6/6) 正在检查可用存储空间                          [###########################] 100%

:: 正在处理软件包的变化...

(1/6) 正在安装 gtk2                                [###########################] 100%

gtk2 的可选依赖

    gnome-themes-standard: Default widget theme [已安装]

    adwaita-icon-theme: Default icon theme [已安装]

    python: gtk-builder-convert [已安装]

(2/6) 正在安装 libglade                            [###########################] 100%

libglade 的可选依赖

    python2: libglade-convert script [等待中]

(3/6) 正在安装 python2                              [###########################] 100%

python2 的可选依赖

    tk: for IDLE

    python2-setuptools

    python2-pip

(4/6) 正在安装 python2-cairo                        [###########################] 100%

(5/6) 正在安装 python2-gobject2                    [###########################] 100%

(6/6) 正在安装 pygtk                                [###########################] 100%

pygtk 的可选依赖

    python2-numpy

:: 正在运行事务后钩子函数...

(1/2) Arming ConditionNeedsUpdate...

(2/2) Probing GTK2 input method modules...

[franksunk@franksun-tobefilledbyoem ~]$ yay -S xsane #装依赖xsane(3)

正在解析依赖关系...

正在查找软件包冲突...

软件包 (1) xsane-0.999-5

下载大小:  1.62 MiB

全部安装大小:  4.83 MiB

:: 进行安装吗? [Y/n] Y

:: 正在获取软件包......

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/extra/x86_64/xsane-0.999-5-x86_64.pkg.tar.zst

File size: 1.62155 兆字节 (1700323 bytes)

正在打开输出文件 /var/cache/pacman/pkg/xsane-0.999-5-x86_64.pkg.tar.zst.part

正在开始下载

连接 0 完成下载

连接 2 完成下载

连接 3 完成下载

连接 4 完成下载

连接 5 完成下载

连接 6 完成下载

连接 7 完成下载

连接 0 完成下载

连接 2 完成下载

连接 3 完成下载

连接 1 完成下载

已下载 1.62155 兆字节,用时 5 秒。(330.22 KB/s)

(1/1) 正在检查密钥环里的密钥                        [###########################] 100%

(1/1) 正在检查软件包完整性                          [###########################] 100%

(1/1) 正在加载软件包文件                            [###########################] 100%

(1/1) 正在检查文件冲突                              [###########################] 100%

(1/1) 正在检查可用存储空间                          [###########################] 100%

:: 正在处理软件包的变化...

(1/1) 正在安装 xsane                                [###########################] 100%

NOTE:

  If you experience any problems after installing xsane

  it may help to remove the setup and preferences files

  of xsane:

    $ rm -rf ~/.sane/xsane

Xsane only supports creation of pdf files in 8bit colour depth!

xsane 的可选依赖

    xsane-gimp: for gimp plugin support

:: 正在运行事务后钩子函数...

(1/2) Arming ConditionNeedsUpdate...

(2/2) Updating the desktop file MIME type cache...

[franksunk@franksun-tobefilledbyoem ~]$ yay -S python-notify2 #装依赖python-notify2 (4)

[sudo] franksunk 的密码:

正在解析依赖关系...

正在查找软件包冲突...

软件包 (1) python-notify2-0.3.1-5

下载大小:  0.02 MiB

全部安装大小:  0.06 MiB

:: 进行安装吗? [Y/n] Y

:: 正在获取软件包......

正在初始化下载:https://mirrors.huaweicloud.com/manjaro/stable/extra/x86_64/python-notify2-0.3.1-5-any.pkg.tar.zst

File size: 15.4121 千字节 (15782 bytes)

正在打开输出文件 /var/cache/pacman/pkg/python-notify2-0.3.1-5-any.pkg.tar.zst.part

正在开始下载

[100%] [...................................................................................] [  76.9KB/s] [00:00]

已下载 15.4121 千字节,用时 0 秒。(76.88 KB/s)

(1/1) 正在检查密钥环里的密钥                                        [######################################] 100%

(1/1) 正在检查软件包完整性                                          [######################################] 100%

(1/1) 正在加载软件包文件                                            [######################################] 100%

(1/1) 正在检查文件冲突                                              [######################################] 100%

(1/1) 正在检查可用存储空间                                          [######################################] 100%

:: 正在处理软件包的变化...

(1/1) 正在安装 python-notify2                                      [######################################] 100%

:: 正在运行事务后钩子函数...

(1/1) Arming ConditionNeedsUpdate...

[franksunk@franksun-tobefilledbyoem ~]$ hp-check

/usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?

  if 'getfacl' not in g and '' is not g and 'file' not in g:

Saving output in log file: /home/franksunk/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.4)

Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP

This software comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to distribute it

under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:

1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz

or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.

2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc)

or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run.

3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases

(both compile- and run-time dependencies).

Check types:

a. EXTERNALDEP - External Dependencies

b. GENERALDEP - General Dependencies (required both at compile and run time)

c. COMPILEDEP - Compile time Dependencies

d. [All are run-time checks]

PYEXT SCANCONF QUEUES PERMISSION

Status Types:

    OK

    MISSING      - Missing Dependency or Permission or Plug-in

    INCOMPAT      - Incompatible dependency-version or Plugin-version

warning: 26-21.0.7 version is not supported. Using 26-20.2 versions dependencies to verify and install...

---------------

| SYSTEM INFO |

---------------

Kernel: 5.10.42-1-MANJARO #1 SMP PREEMPT Thu Jun 3 14:37:11 UTC 2021 GNU/Linux

Host: franksun-tobefilledbyoem

Proc: 5.10.42-1-MANJARO #1 SMP PREEMPT Thu Jun 3 14:37:11 UTC 2021 GNU/Linux

Distribution: 26 21.0.7

Bitness: 64 bit

-----------------------

| HPLIP CONFIGURATION |

-----------------------

HPLIP-Version: HPLIP 3.21.4

HPLIP-Home: /usr/share/hplip

warning: HPLIP-Installation: Auto installation is not supported for 26 distro  21.0.7 version

Current contents of '/etc/hp/hplip.conf' file:

# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]

version=3.21.4

[dirs]

home=/usr/share/hplip

run=/var/run

ppd=/usr/share/ppd/HP

ppdbase=/usr/share/ppd

doc=/usr/share/doc/hplip-3.21.4

html=/usr/share/doc/hplip-3.21.4

icon=/usr/share/applications

cupsbackend=/usr/lib/cups/backend

cupsfilter=/usr/lib/cups/filter

drv=/usr/share/cups/drv/hp

bin=/usr/bin

apparmor=/etc/apparmor.d

# Following values are determined at configure time and cannot be changed.

[configure]

network-build=yes

libusb01-build=no

pp-build=yes

gui-build=yes

scanner-build=yes

fax-build=yes

dbus-build=yes

cups11-build=no

doc-build=yes

shadow-build=no

hpijs-install=no

foomatic-drv-install=no

foomatic-ppd-install=no

foomatic-rip-hplip-install=no

hpcups-install=yes

cups-drv-install=yes

cups-ppd-install=no

internal-tag=3.21.4

restricted-build=no

ui-toolkit=qt5

qt3=no

qt4=no

qt5=yes

policy-kit=no

lite-build=no

udev_sysfs_rules=no

hpcups-only-build=no

hpijs-only-build=no

apparmor_build=no

class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:

Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:

[installation]

date_time = 06/23/21 23:29:47

version = 3.21.4

               

-------------------------

| External Dependencies |

-------------------------

cups                CUPS - Common Unix Printing System                          REQUIRED        1.1            2.3.3          OK        'CUPS Scheduler is running'

gs                  GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.54.0          OK        -

xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9            0.999          OK        -

scanimage            scanimage - Shell scanning program                          OPTIONAL        1.0            1.0.32          OK        -

dbus                DBus - Message bus system                                    REQUIRED        -              1.12.20        OK        -

policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -              0.119          OK        -

network              network -wget                                                OPTIONAL        -              1.21.1          OK        -

avahi-utils          avahi-utils                                                  OPTIONAL        -              0.8            OK        -

------------------------

| General Dependencies |

------------------------

libjpeg              libjpeg - JPEG library                                      REQUIRED        -              -              OK        -

cups-devel          CUPS devel- Common Unix Printing System development files    REQUIRED        -              2.3.3          OK        -

cups-image          CUPS image - CUPS image development files                    REQUIRED        -              2.3.3          OK        -

libpthread          libpthread - POSIX threads library                          REQUIRED        -              b'2.33'        OK        -

libusb              libusb - USB library                                        REQUIRED        -              1.0            OK        -

sane                SANE - Scanning library                                      REQUIRED        -              1.0.32          OK        -

sane-devel          SANE - Scanning library development files                    REQUIRED        -              1.0.32          OK        -

libavahi-dev        libavahi-dev                                                REQUIRED        -              -              OK        -

libnetsnmp-devel    libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9          5.9.1          OK        -

libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -              1.1.1          OK        -

python3X            Python 2.2 or greater - Python programming language          REQUIRED        2.2            3.9.5          OK        -

python3-notify2      Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -              -              OK        -

Traceback (most recent call last):

  File "/usr/bin/hp-check", line 862, in

    num_errors, num_warns = dep.validate(time_flag, is_quiet_mode)

  File "/usr/bin/hp-check", line 367, in validate

    self.__update_deps_info(supported_distro_vrs, dep,

  File "/usr/bin/hp-check", line 210, in __update_deps_info

    installed_ver = self.core.version_func[deps_info[6]]()

  File "/usr/share/hplip/installer/dcheck.py", line 303, in get_pyQt4_version

    from PyQt4 import QtCore

ImportError: cannot import name 'QtCore' from 'PyQt4' (unknown location)

[franksunk@franksun-tobefilledbyoem ~]$ yay -S hplip-plugin #装组件hplip-plugin (5)

[sudo] franksunk 的密码:

正在解析依赖关系...

正在查找软件包冲突...

软件包 (1) hplip-plugin-1:3.21.4-1

下载大小:  1.32 MiB

全部安装大小:  4.36 MiB

:: 进行安装吗? [Y/n] Y

:: 正在获取软件包......

正在初始化下载:https://mirrors.huaweicloud.com/archlinuxcn/x86_64/hplip-plugin-1:3.21.4-1-x86_64.pkg.tar.zst

File size: 1.31884 兆字节 (1382905 bytes)

正在打开输出文件 /var/cache/pacman/pkg/hplip-plugin-1:3.21.4-1-x86_64.pkg.tar.zst.part

正在开始下载

[100%] [...................................................................................] [  4.0MB/s] [00:00]

已下载 1.31884 兆字节,用时 0 秒。(4055.67 KB/s)

(1/1) 正在检查密钥环里的密钥                                        [######################################] 100%

(1/1) 正在检查软件包完整性                                          [######################################] 100%

(1/1) 正在加载软件包文件                                            [######################################] 100%

(1/1) 正在检查文件冲突                                              [######################################] 100%

(1/1) 正在检查可用存储空间                                          [######################################] 100%

:: 正在处理软件包的变化...

(1/1) 正在安装 hplip-plugin                                        [######################################] 100%

:: 正在运行事务后钩子函数...

(1/1) Arming ConditionNeedsUpdate...

[franksunk@franksun-tobefilledbyoem ~]$ hp-check

error: python3-notify2 Python libnotify - Python bindings for the

libnotify Desktop notifications OPTIONAL        -               -       

MISSING    'python3-notify2 needs to be installed'   #少依赖python3-notify2

error: 'python-pyqt4' package is missing/incompatible #少依赖python-pyqt4

error: 'pygtk' package is missing/incompatible #少依赖pygtk

error: 'xsane' package is missing/incompatible #少依赖xsane


[franksunk@franksun-tobefilledbyoem ~]$ yay -S python-pyqt4  #装依赖python-pyqt4

[franksunk@franksun-tobefilledbyoem ~]$ yay -S xsane #装依赖xsane

[franksunk@franksun-tobefilledbyoem ~]$ yay -S pygtk #装依赖pygtk

[franksunk@franksun-tobefilledbyoem ~]$ yay -S python-notify2 #装依赖python3-notify2

[franksunk@franksun-tobefilledbyoem ~]$ yay -S hplip-plugin #装组件hplip-plugin

你可能感兴趣的:(manjaro21惠普1106打印机配置2021-06-24)