This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover.
If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue?
Continue [yN]
1 2 3 4 5 6 7 8 9 10 11
Starting additional sshd
To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'
To continue please press [ENTER]
升级工具完成下载软件包列表和完成计算变更内容后,将询问您是否要继续
1 2 3 4 5 6 7 8 9 10 11 12 13
Do you want to start the upgrade?
4 installed packages are no longer supported by Canonical. You can still get support from the community.
3 packages are going to be removed. 90 new packages are going to be installed. 397 packages are going to be upgraded.
You have to download a total of 267 M. This download will take about 1 minute with your connection.
Installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled.
Configuration file '/etc/sysctl.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** sysctl.conf (Y/I/N/O/D/Z) [default=N] ?
Searching for obsolete software Reading package lists... Done Building dependency tree Reading state information... Done Reading state information... Done
Remove obsolete packages?
17 packages are going to be removed.
升级过程完成并假设一切顺利后,系统会要求您重新启动计算机。输入 y 以继续:
1 2 3 4 5 6 7 8
System upgrade is complete.
Restart required
To finish the upgrade, a restart is required. If you select 'y' the system will be restarted.
Continue [yN] y
确认更新
等待服务器重启完成,然后重新连接。登录后,您将收到以下消息:
1
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)
您还可以使用以下命令检查 Ubuntu 版本:
1
lsb_release -a
1 2 3 4 5
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic