我无法从终端升级 Ubuntu 发行版

Cla*_*ool 2 upgrade apt dist-upgrade

当我sudo apt-get upgrade在终端中输入命令时,它找到了一些要升级的文件,但没有找到Ubuntu 新版本。有任何想法吗?

Luc*_*cio 5

apt-get upgrade命令不会更新 Ubuntu 发行版。该命令的作用是更新已安装的包

您可以man在您想知道做什么的命令之前使用该命令获取更多信息:

$ man apt-get

  ....
  upgrade
    Used to install the newest versions of all packages currently installed on the 
    system from the sources enumerated in /etc/apt/sources.list. Packages currently 
    installed with new versions available are retrieved and upgraded; under no 
    circumstances are currently installed packages removed, nor are packages that 
    are not already installed retrieved and installed. New versions of currently 
    installed packages that cannot be upgraded without changing the install status 
    of another package will be left at their current version. An update must be 
    performed first so that apt-get knows that new versions of packages are available. 
  ....
Run Code Online (Sandbox Code Playgroud)

要升级到新发行版,请运行sudo do-release-upgrade.