我想将我的 Ubuntu 16.04 服务器升级到 Ubuntu 18.04,我正在运行以下命令来执行此操作;
apt update -y
apt upgrade -y
do-release-upgrade
Run Code Online (Sandbox Code Playgroud)
apt update命令运行良好,输出如下;
# apt update -y
Hit:1 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security InRelease
Hit:2 https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
Run Code Online (Sandbox Code Playgroud)
但是,运行该apt upgrade命令时,它会返回以下错误;
# apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
*The following packages could receive security updates …Run Code Online (Sandbox Code Playgroud) 我使用的是专用服务器,该提供商几乎没有安装 Ubuntu 16.04。例如,这些命令都不存在,所以我需要一一安装它们:
curl, nano, tmux, htop, iptables,ifconfig以及更多这些我不记得的基本内容。
我曾经使用另一个专用服务器提供商,他们的图像会附带这些基本内容。
现在,每次我获得一个新的专用服务器(并且我得到很多)和/或当我重新安装操作系统并且它们也没有快照功能时,一个一个地安装它们很麻烦。
是否有一个命令可以让我获得捆绑包中的基本内容,而不必apt install xx每次都为我上面提到的每个应用程序运行?