Ubuntu 18.04.1,HPLIP 3.17.10。
我正在尝试使用 Synaptic 安装 HPLIP。安装未报告任何错误。但是,当我启动 HP 系统托盘时,我收到以下错误消息:
File "/usr/bin/hp-toolbox", line 269, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: 'NoneType' object is not iterable
另外,如果我单击托盘区域中的 HP 图标,它什么也不做 - 虽然我能够启动 HPLIP 工具箱,而且它似乎有效。
当我运行时hp-check
,它告诉我以下包丢失/不兼容,我需要手动安装它们:
libnetsnmp-devel
snmp-mibs-downloader
libsnmp-dev
我不知道在哪里可以找到前两个,也不知道如何手动安装它们。
关于libsnmp-dev
:它没有安装,但通过 Synaptic 版本5.7.3+dfsg-1.8ubuntu3和5.7.3+dfsg-1.8ubuntu3.1可供安装。但是,当我尝试libsnmp-dev
通过 Synaptic 安装时,它告诉我将删除以下软件包 - 但我不想删除它们(尤其是npm
):
libssl1.0-dev
node-gyp
nodejs-dev
npm
如何安装缺少的软件包、使 HPLIP 正常工作、消除错误消息(如上所述)并使 HP 系统托盘正常工作,而无需卸载npm
其他软件包?
输出apt-cache policy libssl1.0-dev node-gyp nodejs-dev npm
:
libssl1.0-dev:
Installed: 1.0.2n-1ubuntu5.2
Candidate: 1.0.2n-1ubuntu5.2
Version table:
*** 1.0.2n-1ubuntu5.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.0.2n-1ubuntu5 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
node-gyp:
Installed: 3.6.2-1ubuntu1
Candidate: 3.6.2-1ubuntu1
Version table:
*** 3.6.2-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status
nodejs-dev:
Installed: 8.10.0~dfsg-2ubuntu0.4
Candidate: 8.10.0~dfsg-2ubuntu0.4
Version table:
*** 8.10.0~dfsg-2ubuntu0.4 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
100 /var/lib/dpkg/status
8.10.0~dfsg-2ubuntu0.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
8.10.0~dfsg-2 500
500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
npm:
Installed: 3.5.2-0ubuntu4
Candidate: 3.5.2-0ubuntu4
Version table:
*** 3.5.2-0ubuntu4 500
500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status
输出sudo apt install libsnmp-dev
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gyp libjs-async libjs-inherits libjs-node-uuid libuv1-dev node-abbrev
node-ansi node-ansi-color-table node-archy node-async node-balanced-match
node-block-stream node-brace-expansion node-builtin-modules
node-combined-stream node-concat-map node-cookie-jar node-delayed-stream
node-forever-agent node-form-data node-fs.realpath node-fstream
node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
node-hosted-git-info node-inflight node-inherits node-ini
node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile
node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
node-osenv node-path-is-absolute node-pseudomap node-qs node-read
node-read-package-json node-request node-retry node-rimraf node-semver
node-sha node-slide node-spdx-correct node-spdx-expression-parse
node-spdx-license-ids node-tar node-tunnel-agent node-underscore
node-validate-npm-package-license node-which node-yallist
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpci-dev libsensors4-dev libssl-dev libssl-doc libudev-dev libwrap0-dev
The following packages will be REMOVED:
libssl1.0-dev node-gyp nodejs-dev npm
The following NEW packages will be installed:
libpci-dev libsensors4-dev libsnmp-dev libssl-dev libssl-doc libudev-dev
libwrap0-dev
0 upgraded, 7 newly installed, 4 to remove and 7 not upgraded.
Need to get 3,843 kB of archives.
After this operation, 1,932 kB of additional disk space will be used.
Do you want to continue? [Y/n]