我是否必须手动修复中断的 dist-upgrade?

我是否必须手动修复中断的 dist-upgrade?

在运行期间apt-get dist-upgrade,当它设置包时,我意外地通过 Ctrl + C 取消了它。

这些软件包即将更新:

aptdaemon aptdaemon-data google-chrome-unstable libsmbclient libwbclient0 python3-aptdaemon python3-aptdaemon.gtk3widgets samba-libs

这是直至取消的运行输出:

Preparing to unpack .../0-google-chrome-unstable_66.0.3359.26-1_amd64.deb ...
Unpacking google-chrome-unstable (66.0.3359.26-1) over (66.0.3359.22-1) ...
Preparing to unpack .../1-libsmbclient_2%3a4.6.7+dfsg-1ubuntu3.2_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.6.7+dfsg-1ubuntu3.2) over (2:4.6.7+dfsg-1ubuntu3.1) ...
Preparing to unpack .../2-samba-libs_2%3a4.6.7+dfsg-1ubuntu3.2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.6.7+dfsg-1ubuntu3.2) over (2:4.6.7+dfsg-1ubuntu3.1) ...
Preparing to unpack .../3-libwbclient0_2%3a4.6.7+dfsg-1ubuntu3.2_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.6.7+dfsg-1ubuntu3.2) over (2:4.6.7+dfsg-1ubuntu3.1) ...
Preparing to unpack .../4-aptdaemon-data_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking aptdaemon-data (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Preparing to unpack .../5-python3-aptdaemon.gtk3widgets_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Preparing to unpack .../6-aptdaemon_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking aptdaemon (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Preparing to unpack .../7-python3-aptdaemon_1.1.1+bzr982-0ubuntu17.1_all.deb ...
Unpacking python3-aptdaemon (1.1.1+bzr982-0ubuntu17.1) over (1.1.1+bzr982-0ubuntu17) ...
Setting up aptdaemon-data (1.1.1+bzr982-0ubuntu17.1) ...
Setting up libwbclient0:amd64 (2:4.6.7+dfsg-1ubuntu3.2) ...
Setting up samba-libs:amd64 (2:4.6.7+dfsg-1ubuntu3.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Setting up libsmbclient:amd64 (2:4.6.7+dfsg-1ubuntu3.2) ...
Setting up google-chrome-unstable (66.0.3359.26-1) ...
Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for dbus (1.10.22-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Setting up aptdaemon (1.1.1+bzr982-0ubuntu17.1) ...
Setting up python3-aptdaemon (1.1.1+bzr982-0ubuntu17.1) ...
Setting up python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu17.1) ...
W: Operation was interrupted before it could finish

我现在想知道我的系统上是否有任何损坏的情况。我尝试运行:

sudo dpkg --configure -a

但尚未有任何报道。

如果我运行:

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

注意变化。我想知道:我的系统是否有问题?我怎么知道?如果有问题,我该如何修复?

答案1

您可以通过发出以下命令强制重新安装软件包(再次下载并重新安装):

sudo apt install --reinstall aptdaemon aptdaemon-data google-chrome-unstable libsmbclient libwbclient0 python3-aptdaemon python3-aptdaemon.gtk3widgets samba-libs

请注意标准命令--reinstall旁边的附加参数。apt install

此附加参数未记录在 中man apt,但它在 上man apt-get

--reinstall
Re-install packages that are already installed and at the newest version.

相关内容