我如何知道 do-release-upgrade 是否已成功完成?

我如何知道 do-release-upgrade 是否已成功完成?

成功的故事板是什么do-release-upgrade?我应该看什么?有记录吗?

我有一个运行 14.04 的无头家庭服务器,我已经在其上运行了 do-release-upgrade。

最初,它失败得非常惨,不断旋转并出现以下错误:

Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for resolvconf (1.78ubuntu4) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
 linux-firmware
 linux-image-4.4.0-66-generic
 linux-image-extra-4.4.0-66-generic
 linux-image-generic
 linux-generic
 initramfs-tools
 console-setup
 apparmor
 mysql-server-5.7
 mysql-server
 ubuntu-minimal
 snap-confine
 snapd
 kbd
 console-setup-linux
Error in function:


*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (1.5 MB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): S

点击取消,它会愉快地尝试继续运行其他软件包(我猜),从其他日志中我可以得知,它会因为 /boot 中磁盘空间不足而出错。

我按 CTRL-C 退出 do-release-upgrade 并尝试使用dpkg --purge一堆旧内核映像。不幸的是,dpkg 处于无效状态并希望我运行configure -a。但这只会尝试重建内核映像并耗尽启动空间。所以我只是手动删除了内核映像,然后运行 ​​purge,然后再次运行 do-release-upgrade。

它经过了一段时间的思考,到了这里:

设置系统

temd (231-9ubuntu3) ...
Installing new version of config file /etc/dbus-1/system.d/org.freedesktop.login1.conf ...
Installing new version of config file /etc/dbus-1/system.d/org.freedesktop.systemd1.conf ...
Installing new version of config file /etc/pam.d/systemd-user ...
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
Synchronizing state of ondemand.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ondemand
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Removing obsolete conffile /etc/systemd/bootchart.conf ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
(Reading database ... 443846 files and directories currently installed.)
Preparing to unpack .../lsb-base_9.20160110ubuntu5_all.deb ...
Unpacking lsb-base (9.20160110ubuntu5) over (9.20160110ubuntu0.2) ...
Setting up lsb-base (9.20160110ubuntu5) ...
(Reading database ... 443846 files and directories currently installed.)
Preparing to unpack .../upstart_1.13.2-0ubuntu34_amd64.deb ...
Unpacking upstart (1.13.2-0ubuntu34) over (1.13.2-0ubuntu21.1) ...
Preparing to unpack .../locales_2.24-3ubuntu2_all.deb ...
Unpacking locales (2.24-3ubuntu2) over (2.23-0ubuntu7) ...
Preparing to unpack .../libc6_2.24-3ubuntu2_i386.deb ...
De-configuring libc6:amd64 (2.23-0ubuntu7) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Unpacking libc6:i386 (2.24-3ubuntu2) over (2.23-0ubuntu7) ...
Preparing to unpack .../libc6_2.24-3ubuntu2_amd64.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Unpacking libc6:amd64 (2.24-3ubuntu2) over (2.23-0ubuntu7) ...
Setting up libc6:amd64 (2.24-3ubuntu2) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.

它已经在这里待了大约 16 个小时了,似乎处于空闲状态。控制台没有冻结 - 我可以在其中输入内容,系​​统似乎一切正常。

有几个进程似乎正在闲逛……

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
24942 root       20   0  108M  7992  1160 S  4.7  0.4 52:29.86 @sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session
27151 root       20   0  419M 68368  2788 S  0.0  3.3  4:31.70 /usr/bin/python3 /tmp/ubuntu-release-upgrader-cj48xujf/yakkety --mode=server --frontend=DistUp
28496 root       20   0  419M 66472   844 S  0.0  3.2  1:34.74 /usr/bin/python3 /tmp/ubuntu-release-upgrader-cj48xujf/yakkety --mode=server --frontend=DistUp

它似乎认为它升级了:

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"

我猜我好奇的是预期的输出是什么?我以前从未成功过 dist-upgrade,我有点胆怯,不知道现在是否应该冒险重启系统并让它工作,或者等到我有几天空闲时间再从头开始重建一切。

答案1

sudo dpkg --configure -a

在系统冻结之后为我工作do-release-upgrade

人dpkg

   --configure package...|-a|--pending
          Configure  a  package  which  has  been  unpacked  but  not  yet
          configured.  If -a or --pending is given instead of package, all
          unpacked but unconfigured packages are configured.

在成功完成 do-release-upgrade 之后,dpkg 命令没有返回任何响应。

相关内容