HPLIP 更新未完成 - 如何安全地停止安装?

HPLIP 更新未完成 - 如何安全地停止安装?

我正在使用 Ubuntu 18.04 和打印机 HP Color Laserjet pro mfp m281fdw。可以打印,但不能扫描。

为了修复缺失的扫描功能,我想我会更新我的 HPLIP 并安装最新的 hplip-3.20.9.run。

我使用的文件来自https://developers.hp.com/hp-linux-imaging-and-printing并按照自动安装的说明进行操作。

不幸的是,安装没有完成。几个小时后它才开始......

“......”

SECURITY PACKAGES
-----------------
AppArmor is installed. 
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK


RUNNING HPLIP LIBS REMOVE COMMANDS
----------------------------------
sudo apt-get remove libhpmud0 libsane-hpaio

……”

只是不断旋转。没有错误信息。...

更新 我停止了未结束的安装过程。并且

hp-check -r
dpkg -l | egrep HP

所以我发现我确实有不同 hplip 版本的分数……

我做到了

sudo apt purge hplip hplip-data

在重新安装新版本之前删除 hplip。(我希望这样没问题。)此命令的结果如下:

sudo apt purge hplip hplip-data
[sudo] Password for burkhard: 
Reading package list ... Done
Building dependency tree.       
Reading status information.... Done
The following packages were installed automatically and are no longer needed:
  libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
  libdrm-radeon1:i386 libdrm2:i386 libelf1:i386 libfwup1 libglvnd0:i386
  libllvm9 libpciaccess0:i386 libsane-hpaio libsensors4:i386 libx11-xcb1:i386
  libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386
  libxcb-sync1:i386 libxdamage1:i386 libxshmfence1:i386
  linux-hwe-5.4-headers-5.4.0-42 linux-hwe-5.4-headers-5.4.0-45
  linux-hwe-5.4-headers-5.4.0-47 linux-hwe-5.4-headers-5.4.0-48
  linux-hwe-5.4-headers-5.4.0-51 python3-pexpect python3-ptyprocess
  python3-renderpm python3-reportlab python3-reportlab-accel
  tuxedo-keyboard-dkms
Use 'sudo apt autoremove'  to remove them.
The following packages will be removed:
  hplip* hplip-data* printer-driver-postscript-hp*
0 updated, 0 newly installed, 3 to be removed and 7 not updated.
3 not fully installed or removed.
After this operation 12.9 MB of disk space will be freed.
Do you want to continue? Y/n] Y
(Reading database ... 408916 files and directories are currently installed)
Removing printer-driver-postscript-hp (3.17.10+repack0-5) ...
Removing hplip (3.17.10+repack0-5) ...
Removing von hplip-data (3.17.10+repack0-5) ...
dpkg: Warnung: Während Entfernens von hplip-data ist Verzeichnis »/usr/share/hplip/data/images/other« nicht leer, wird daher nicht gelöscht
dpkg: Warnung: Während Entfernens von hplip-data ist Verzeichnis »/usr/share/hplip/base« nicht leer, wird daher nicht gelöscht
jitsi-meet-prosody (1.0.4466-1) wird eingerichtet ...
The given hostname does not exist in the config
The given hostname does not exist in the config
dpkg: Fehler beim Bearbeiten des Paketes jitsi-meet-prosody (--configure):
 »installiertes jitsi-meet-prosody-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von jitsi-meet:
 jitsi-meet hängt ab von jitsi-meet-prosody (= 1.0.4466-1); aber:
  Paket jitsi-meet-prosody ist noch nicht konfiguriert.

dpkg: Error while editing the package jitsi-meet (--configure):
 dependency problems - is unconfigured
dpkg: Dependency problems prevent configuration of jitsi-meet-turnserver:
 jitsi-meet-turnserver depends on jitsi-meet-prosody; but:
  package jitsi-meet-prosody is not configured yet.

dpkg: Error while editing the package jitsi-meet-turnserver (--configure):
 dependency problems - is unconfigured
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
Processing triggers for cups (2.2.7-1ubuntu2.8) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors occurred while editing:
 jitsi-meet-prosody
 jitsi-meet
 jitsi-meet-turnserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

我记得未完成的 jitsi 安装导致了其他安装出现安装问题。

我想在运行 hplip-3.20.9.run 之前,我应该清理配置中未完成的 jitsi 剩余部分。我该如何清理它们?

相关内容