如何将 Ubuntu 从 22.04 升级到 22.10如何将 Ubuntu 从 22.04 升级到 22.10如何将 Ubuntu 从 22.04 升级到 22.10如何将 Ubuntu 从 22.04 升级到 22.10
  • 文章
  • 正则表达式
    • 工具
  • 登录
找到的结果: {phrase} (显示: {results_count} 共: {results_count_total})
显示: {results_count} 共: {results_count_total}

加载更多搜索结果...

搜索范围
模糊匹配
搜索标题
搜索内容
发表 admin at 2025年2月28日
类别
  • 未分类
标签

如何将 Ubuntu 从 22.04 升级到 22.10

Ubuntu 22.10 Kinetic Kudu 正式发布。这是 Ubuntu 的最新版本,于 2022 年 10 月 20 日发布。Ubuntu 22.10 是 Ubuntu 的临时版本,这意味着它与长期支持版本不同。它将支持九个月并进行更新。 Ubuntu 22.04 的用户现在可以升级到 Ubuntu 22.10 以查看所有新功能。

在本教程中,我们将逐步介绍如何将 Ubuntu 系统升级到最新的临时版本 22.10 Kinetic Kudu。您准备好享受 Ubuntu 22.10 Kinetic Kudu 的所有新功能了吗?按照下面的分步说明操作,您将立即升级到新版本的 Ubuntu。

在本教程中您将学习:

  • 如何全面更新和升级您当前的 Ubuntu 系统

  • 如何配置版本升级程序

  • 如何将 Ubuntu 升级到 22.04 Kinetic Kudu

如何将 Ubuntu 从 22.04 升级到 22.10 分步说明

注意
如果您尚未安装 Ubuntu 版本,您可以下载 Ubuntu 22.10 Kinetic Kudu 并在计算机或虚拟机上安装操作系统的全新副本。

  1. 首先,确保您当前的 Ubuntu Linux 系统是最新的。这将有助于确保包之间的差异尽可能小。这也将是 Canonical 最有可能自行测试升级的方式,因此最不可能遇到错误。执行以下命令:

    
    $ sudo apt update 
    $ sudo apt upgrade
    $ sudo apt dist-upgrade
    
  2. 接下来,您应该从系统中删除所有不再需要的软件包:

    
    $ sudo apt autoremove
    
  3. 接下来,使用 apt 安装 update-manager-core 软件包。

    
    $ sudo apt install update-manager-core
    
  4. 接下来,我们需要配置版本升级程序。打开并编辑 /etc/update-manager/release-upgrades 文件,并确保 Prompt 变量设置为 normal。

    
    # Default behavior for the release upgrader.
    
    [DEFAULT]
    # Default prompting and upgrade behavior, valid options:
    #
    #  never  - Never check for, or allow upgrading to, a new release.
    #  normal - Check to see if a new release is available.  If more than one new
    #           release is found, the release upgrader will attempt to upgrade to
    #           the supported release that immediately succeeds the
    #           currently-running release.
    #  lts    - Check to see if a new LTS release is available.  The upgrader
    #           will attempt to upgrade to the first LTS release available after
    #           the currently-running one.  Note that if this option is used and
    #           the currently-running release is not itself an LTS release the
    #           upgrader will assume prompt was meant to be normal.
    Prompt=normal
    

    进行更改后保存文件并关闭它。

  5. 通过执行以下命令开始 Ubuntu 22.10 升级过程:

    
    $ sudo do-release-upgrade
    
  6. 系统会询问您是否确定要升级。阅读终端中的文本后,输入 y 并按 Enter 键开始升级到 Ubuntu 22.10 Kinetic Kudu。

  7. 升级摘要应该出现在您的终端中。再次,您将需要输入 y 并按 Enter 键才能同意升级。

  8. 升级完成后,系统会要求您重新启动系统。再次输入 y 并按 Enter 键。当 Ubuntu 再次启动时,升级过程将完成。

更新过程到此结束。享受新的 Ubuntu 22.10 Kinetic Kudu 系统。

通过 GUI 升级

您的另一种选择是从桌面环境升级,这将使得除了一个简短的命令之外无需与命令行交互。要通过 GUI 升级到 Ubuntu 22.10,请按照以下分步说明进行操作。

  1. 首先,我们需要配置版本升级程序。打开并编辑 /etc/update-manager/release-upgrades 文件,并确保 Prompt 变量设置为 normal。

    
    # Default behavior for the release upgrader.
    
    [DEFAULT]
    # Default prompting and upgrade behavior, valid options:
    #
    #  never  - Never check for, or allow upgrading to, a new release.
    #  normal - Check to see if a new release is available.  If more than one new
    #           release is found, the release upgrader will attempt to upgrade to
    #           the supported release that immediately succeeds the
    #           currently-running release.
    #  lts    - Check to see if a new LTS release is available.  The upgrader
    #           will attempt to upgrade to the first LTS release available after
    #           the currently-running one.  Note that if this option is used and
    #           the currently-running release is not itself an LTS release the
    #           upgrader will assume prompt was meant to be normal.
    Prompt=normal
    

    进行更改后保存文件并关闭它。

  2. 打开终端并执行以下命令来启动 GUI 升级程序。

    
    $ sudo do-release-upgrade -f DistUpgradeViewGtk3
    
  3. 单击“升级”继续安装 Ubuntu 22.10 Kinetic Kudu。

  4. Ubuntu 现在将执行升级,除了等待此过程完成之外,没有什么可做的。

  5. 您将再次收到提示,以确保您已准备好执行升级。只需单击“开始升级”,然后准备等待所有新软件包下载并安装。

  6. 升级过程完成后,系统将提示您从系统中删除过时的软件包。

  7. 最后,升级过程完成后,您将需要重新启动系统。当它重新启动时,您将加载到 Ubuntu 22.10 并可以享受新升级的系统!

结束语

在本教程中,您了解了如何将当前的 Ubuntu 系统升级到 Ubuntu 22.10 Kinetic Kudu Linux。 Ubuntu 22.10 是最新的临时版本,将继续获得九个月的免费系统更新。 Ubuntu 22.10 带来了许多 Linux 社区非常兴奋的新功能,以及对 IoT 和 Raspberry Pi 设备的更好支持。

©2015-2025 艾丽卡 support@alaica.com