执行 sudo-apt 升级时出现 cryptsetup 错误

执行 sudo-apt 升级时出现 cryptsetup 错误
Setting up ubiquity-ubuntu-artwork (2.21.63.4) ...
dpkg: dependency problems prevent configuration of ubiquity:
 ubiquity depends on cryptsetup; however:
  Package cryptsetup is not configured yet.

dpkg: error processing package ubiquity (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of ubiquity-frontend-gtk:
 ubiquity-frontend-gtk depends on ubiquity (= 2.21.63.4); however:
  Package ubiquity is not configured yet.

dpkg: error processing package ubiquity-frontend-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Setting up unattended-upgrades (0.90ubuntu0.7) ...
Installing new version of config file /etc/init.d/unattended-upgrades ...
Synchronizing state of unattended-upgrades.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable unattended-upgrades
Setting up unity-control-center-faces (15.04.0+16.04.20170214-0ubuntu1) ...
Setting up vino (3.8.1-0ubuntu9.2) ...
Setting up xfonts-utils (1:7.7+3ubuntu0.16.04.2) ...
Setting up xserver-common (2:1.18.4-0ubuntu0.4) ...
Setting up xserver-xorg-input-all-hwe-16.04 (1:7.7+16ubuntu3~16.04.1) ...
Setting up xserver-xorg-video-all-hwe-16.04 (1:7.7+16ubuntu3~16.04.1) ...
Setting up xul-ext-ubufox (3.4-0ubuntu0.16.04.1) ...
Setting up appmenu-qt5 (0.3.0+16.04.20170216-0ubuntu1) ...
Setting up kpartx (0.5.0+git1.656f8865-5ubuntu2.5) ...
Setting up kpartx-boot (0.5.0+git1.656f8865-5ubuntu2.5) ...
update-initramfs is disabled since running on read-only media
Setting up liblouis-data (2.6.4-2ubuntu0.1) ...
Setting up liblouis9:amd64 (2.6.4-2ubuntu0.1) ...
Setting up oxideqt-codecs:amd64 (1.21.5-0ubuntu0.16.04.1) ...
Setting up python3-louis (2.6.4-2ubuntu0.1) ...
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Setting up evince (3.18.2-1ubuntu4.1) ...
Setting up libmetacity-private3a:amd64 (1:3.18.7-0ubuntu0.3) ...
Setting up metacity (1:3.18.7-0ubuntu0.3) ...
Setting up nautilus (1:3.18.4.is.3.14.3-0ubuntu6) ...
Setting up shotwell (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1.1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Setting up apport-gtk (2.20.1-0ubuntu2.10) ...
Setting up libreoffice-common (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Installing new version of config file /etc/bash_completion.d/libreoffice.sh ...
Setting up libreoffice-style-galaxy (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-style-breeze (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.2) ...
Setting up libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.2) ...
Setting up libnss3-1d:amd64 (2:3.28.4-0ubuntu0.16.04.2) ...
Setting up libreoffice-core (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-base-core (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-calc (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-gtk (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-gnome (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-writer (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-draw (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-impress (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-ogltrans (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-pdfimport (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up python3-uno (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-math (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up libreoffice-avmedia-backend-gstreamer (1:5.1.6~rc2-0ubuntu1~xenial2) ...
Setting up liboxideqtcore0:amd64 (1.21.5-0ubuntu0.16.04.1) ...
Setting up liboxideqtquick0:amd64 (1.21.5-0ubuntu0.16.04.1) ...
Setting up liboxideqt-qmlplugin:amd64 (1.21.5-0ubuntu0.16.04.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for resolvconf (1.78ubuntu4) ...
Errors were encountered while processing:
 cryptsetup
 ubiquity
 ubiquity-frontend-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)

我刚接触 Linux,所以我很迷茫!

答案1

在再次运行升级之前,您可以尝试sudo dpkg --configure cryptsetup从命令行使用配置 cryptsetup。如果这没有帮助,您可以尝试sudo dpkg --configure --pending在再次运行升级之前配置所有仍需要配置的软件包。

话虽如此,如果您是新手,在解决了这个问题后,您也可以使用带有 GUI 的应用程序。我喜欢“synaptic”,但您可能需要先安装它。

答案2

您的问题已发生改变:在一条评论中,您写下的内容sudo dpkg --configure --pending没有输出任何内容。因此,您粘贴到问题中的错误消息不再以那种特定方式出现。您原来的问题已经消失。您现在似乎遇到了另一个问题。

您可以尝试sudo apt-get check检查依赖性问题。sudo apt-get -f install将尝试自动修复依赖性问题。

相关内容