升级到 14.10 但仍然是 14.04.2

Reh*_*lah 5 upgrade 14.04

我想将我的 Ubuntu 14.04.2 升级到 Ubuntu 15.10。我了解到我首先必须升级到 14.10,然后升级到 15.04,最后升级到 15.10。在终端我输入:

sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)

下载了大约 315 MB 的数据,文本在终端窗口中继续滚动。最后这个过程结束了。我重新启动系统并在终端中运行:

lsb_release -a
Run Code Online (Sandbox Code Playgroud)

它给出了输出:

LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:core-4.1-ia32:core-4.1-noarch:security-4.0-ia32:security-4.0-noarch:security-4.1-ia32:security-4.1-noarch
Distributor ID: Ubuntu             
Description:    Ubuntu 14.04.2
Run Code Online (Sandbox Code Playgroud)

等等...我很震惊,它没有升级我现在应该怎么做升级,我出了什么问题?谢谢!

Pan*_*her 9

首先,14.10 已超出生命周期,因此会更加困难。

第二个“dist-upgrade”不会升级 ubuntu。(这是一个相当普遍的误解,也许“dist-upgrade”选项有点误导,也许 dist-sync 或其他一些会更好)。

从手册页:http : //manpages.ubuntu.com/manpages/vivid/man8/apt-get.8.html

升级

       dist-upgrade in addition to performing the function of upgrade,
       also intelligently handles changing dependencies with new versions
       of packages; apt-get has a "smart" conflict resolution system, and
       it will attempt to upgrade the most important packages at the
       expense of less important ones if necessary. So, dist-upgrade
       command may remove some packages. The /etc/apt/sources.list file
       contains a list of locations from which to retrieve desired package
       files. See also apt_preferences(5) for a mechanism for overriding
       the general settings for individual packages.
Run Code Online (Sandbox Code Playgroud)

您通过运行更新管理器进行升级

http://www.ubuntu.com/download/desktop/upgrade

最后,以这种方式升级将花费更长的时间并且更容易出错。全新安装更快、更可靠,并且只要您不使用 /home 格式化分区,就会将您的数据保存在 /home 中。

https://help.ubuntu.com/community/UbuntuReinstallation

由于 Hardy,可以在不丢失 /home 文件夹(包含程序设置、互联网书签、电子邮件和所有文档、音乐、视频和其他用户文件的文件夹)的内容的情况下重新安装 Ubuntu。即使 /home 不在单独的分区上也可以这样做(默认情况下,如果您在最初安装 Ubuntu 时没有手动将其分开)。本教程还可用于升级 Ubuntu(例如,从 12.04 live-CD 升级 11.04 -> 12.04)。

全新安装的另一个不言而喻的优势是,您有机会在升级之前在硬件上测试新版本的 Ubuntu。通过更新管理器升级然后发现您有硬件问题是令人沮丧的,可能会让您无法重新安装和更新旧版本。

最后,在升级之前,升级总是会失败,因此请先备份您的数据。