如何将 Ubuntu 18.04 LTS/19.10 升级到 Ubuntu 20.04 beta
Ubuntu
![](/data/attachment/album/202004/08/125043m1qyy7gzvkjazx41.jpg)


[Ubuntu 20.04 LTS 版本](https://itsfoss.com/ubuntu-20-04-release-features/)还有不到一个月就发布了，Ubuntu 在这一个版本中对视觉效果作出了大变动，同时在性能方面也有所提高。


如果你还在使用 Ubuntu 18.04 LTS 版本，你会发现 Ubuntu 20.04 配合深色 Yaru 主题非常惊艳，看过 [Ubuntu 20.04 的展示视频](https://www.youtube.com/watch?v=9u5B0njRgOw)你就知道了。






感觉确实不错。如果你想在 4 月 23 日最终稳定版正式发布前率先使用 Ubuntu 20.04，也可以在官方网站上下载 beta 版本。尽管是测试版本，但它的稳定性并不差，同时你也可以在使用这个版本的过程中帮助 Ubuntu 团队进行测试。


你可以下载<ruby> 每日构建 <rt>  daily build </rt></ruby>版并进行重新安装，如果你正在使用的是 Ubuntu 18.04 或 Ubuntu 19.10，也可以在现有系统的基础上直接升级到 Ubuntu 20.04 beta 版本。


从现有系统中升级是很方便的，因为你不会丢失系统设置和其他文件。与重新安装不同的是，你不需要从头开始重新安装所有的软件。当你切换到新版本时，你的主目录、应用程序（大部分）、文件都会保持原样。



> 
> 如果你需要确认正在使用的 Ubuntu 版本，可以参考[这篇文章](/article-9872-1.html)。
> 
> 
> 


在本文中，我将会介绍如何升级到 Ubuntu 20.04 beta 版本。


### 如何将 Ubuntu 18.04/19.10 升级到 Ubuntu 20.04 beta


在你阅读后面的内容之前，我首先说明一些关于升级到 Ubuntu beta 版本的常见问题。


* 版本升级的过程并不复杂，但在整个过程中需要有良好的网络连接，以便下载高达好几 GB 的数据。
* 版本升级的过程中，第三方存储库（比如你自行添加的 [PPA](https://itsfoss.com/ppa-guide/)）会被禁用，有些 PPA 可能也和新版本不兼容，在版本升级完毕后，你可以手动启用这些 PPA。
* 强烈建议将重要数据备份到外部的 USB 硬盘上。你只需要将各个目录下的重要文件直接复制到外部 USB 硬盘上保存即可。
* 升级到新版本之后，就无法再回滚到之前的旧版本了，如果需要旧版本的系统，只能重新安装。
* 如果你选择升级到 Ubuntu 20.04 beta 版本，那么在 Ubuntu 20.04 最终稳定版发布之后，你也不需要重新安装。只需要保持定期更新 Ubuntu 系统，届时你就可以直接用上最终稳定版了。
* Ubuntu 16.04/17/18/19.04 都无法直接升级到 Ubuntu 20.04。


了解完上面的内容之后，下面开始从 Ubuntu 18.04/19.10 升级到 Ubuntu 20.04。


#### 步骤 1：检查设置是否正确


进入“<ruby> 软件和升级 <rt>  Software &amp; Updates </rt></ruby>”应用：


![Software & Updates application in Ubuntu](/data/attachment/album/202004/08/125139zzymex7udqppurdp.jpg)


在“<ruby> 升级 <rt>  Updates </rt></ruby>”选项卡中，设置“有任何新版本 Ubuntu 都提醒我”或“有 LTS 版本 Ubuntu 就提醒我”:


![Ubuntu Upgrade Version Settings](/data/attachment/album/202004/08/125141v5fv11kv3xksgc21.jpg)


设置完成后，系统会刷新软件库缓存。


#### 步骤 2：安装系统更新


在上面的步骤完成之后，打开终端（在 Ubuntu 中可以使用 `Ctrl+Alt+T` [快捷键](https://itsfoss.com/ubuntu-shortcuts/)），然后使用以下命令[更新 Ubuntu 系统](https://itsfoss.com/update-ubuntu/)：



```
sudo apt update && sudo apt full-upgrade
```

`apt full-upgrade` 或 `apt dist-upgrade` 的功能和 `apt upgrade` 大致相同，但对于系统版本的升级，`apt full-upgrade` 会在需要的情况下将当前已安装的软件移除掉。


更新安装完成后，系统可能会需要重新启动。在重新启动之后，就可以进入步骤 3 了。


#### 步骤 3：使用更新管理器查找开发版本


在步骤 2 中已经安装了所有必要的更新，现在通过下面的命令打开更新管理器，其中 `-d` 参数表示需要查找开发版本：



```
update-manager -d
```

整个过程可能需要好几分钟，随后会提示有新版本的 Ubuntu 可用：


![Availability of Ubuntu 20.04 in Ubuntu 19.10](/data/attachment/album/202004/08/125142kqq6zunpm3gl543m.jpg)


在 Ubuntu 18.04 上的提示是这样的：


![Availability of Ubuntu 20.04 in Ubuntu 18.04](/data/attachment/album/202004/08/125144hvo30or0nno3vltf.jpg)


然后点击对话框中的“<ruby> 升级 <rt>  upgrade </rt></ruby>”按钮。


#### 步骤 4：开始升级到 Ubuntu 20.04 beta


接下来只要等待下载更新就可以了，遇到对话框直接点击 “OK” 即可。


![](/data/attachment/album/202004/08/125144kd4ydyy9elex78pl.jpg)


点击“<ruby> 升级 <rt>  upgrade </rt></ruby>”按钮，然后按照提示进行操作。


![](/data/attachment/album/202004/08/125145yhjn5pwnwdohjmj5.jpg)


在升级过程中，可能会有提示信息告知所有第三方源都已经禁用。有时候还会提示有哪些软件包需要升级或删除，以及是否需要保留一些已经过时了的软件包。一般情况下，我会选择直接删除。


整个升级过程通常会需要几个小时，但主要还是取决于实际的网速。升级完成后，系统会提示需要重新启动。


![](/data/attachment/album/202004/08/125146osiqcddwsmltzdih.jpg)


下面的视频展示了所有相关步骤。






由此可见，这个升级流程并不复杂。欢迎体验 Ubuntu 20.04 带来的新特性。


如果你有疑问或建议，欢迎在评论区留言。




---


via: <https://itsfoss.com/upgrade-ubuntu-beta/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[HankChow](https://github.com/HankChow) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

** This is a regularly updated guide to show the steps for upgrading your current Ubuntu system to the next version which is currently under development.** In other words, you learn how to upgrade to beta version of Ubuntu’s next release.

At present, Ubuntu 24.04 LTS is under development. There are plenty of [new features in Ubuntu 24.04 Noble Numbat release](https://news.itsfoss.com/ubuntu-24-04-features/) and it is natural to get excited about it.

The stable release will be coming in a couple of weeks, and the beta (testing) version should be here when you are reading this.

Can’t wait that long? If you are using Ubuntu 22.04 LTS or 23.10, you can upgrade to Ubuntu 24.04 beta release right now.

All you have to do is to update your Ubuntu system and then run the following command:

`update-manager -d`


It should provide you the option to upgrade to the beta version.

Don’t worry. I’ll show you the steps in details along with necessary explanation.

## How to upgrade to Ubuntu 24.04 beta from Ubuntu 23.10 or 22.04

Upgrading from your existing system is convenient because you don’t lose your system settings and other files. Unlike a fresh install, you don’t have to reinstall all the software from scratch here. Your Home directory, applications (most of them), files remain as it is when you switch to the new version.

That being said, you need to keep a few things in mind before performing an upgrade.

### Know this before you upgrade Ubuntu version

Before you see the steps, let me answer some of the common questions regarding upgrading to Ubuntu beta version:

- The upgrade from one version to another is an easy process but you need to have a good internet connection that could download a couple of GBs of data at a good speed.
- Upgrading to a newer version disables the third-party repositories (
[PPA](https://itsfoss.com/ppa-guide/)you added on your own). Some of these PPAs might not be available for the new version yet. You can manually enable the PPAs after upgrading. - Having a backup of your important data on an external disk is always recommended. Just copy all your important files from Documents, Pictures, Music, Downloads and other places and put it on an external USB or hard disk.
- If you want to be extra careful, keep a Ubuntu live USB with you (or have access to an additional computer to create one). If something doesn’t go according to plan, you can reinstall Ubuntu and copy the backed up data.
- Once you have upgraded to a newer version, you cannot go back to the older version you were using. Reinstalling the older version is the only option.
- If you upgrade to the Ubuntu 24.04 beta version, you don’t need to install it again when the final stable version is released. Just update your Ubuntu system regularly and you’ll already be using the same 24.04 when it is released.
- You cannot upgrade to Ubuntu 24.04 directly from Ubuntu 20.04, 23.04 or any version other than 23.10 and 22.04 LTS.

Alright! You know enough now. Let’s see the steps to upgrade to Ubuntu 24.04 beta from Ubuntu 23.10.

### Step 0. Check your current Ubuntu version

You can upgrade to Ubuntu 24.04 from 23.10 or 22.04 LTS only. Please [check the Ubuntu version you are running](https://itsfoss.com/how-to-know-ubuntu-unity-version/) to ensure that you meet this condition.

In a terminal, run this command:

`lsb_release -a`


Its output will show the Ubuntu version number.

```
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
```


### Step 1: Make sure the settings are right

Go to Software & Updates application:

![2 overview software and updater](https://itsfoss.com/content/images/wordpress/2022/03/2_Overview_software_and_updater.png)

In the Updates tab, check that Notify me of a new Ubuntu version is set to “For any new version”:

![3 software and updater](https://itsfoss.com/content/images/wordpress/2022/03/3_software_and_updater-800x403.png)

This may reload the Software repository cache.

### Step 2: Update your system for any pending software updates

Once you have the correct settings in place, open a terminal ([use Ctrl+Alt+T shortcut in Ubuntu](https://itsfoss.com/ubuntu-shortcuts/)) and use the following [command to update your Ubuntu system](https://itsfoss.com/update-ubuntu/):

`sudo apt update && sudo apt full-upgrade`


The apt full-upgrade or dist-upgrade function the same as ‘apt upgrade’ but it will remove currently installed packages if this is needed to upgrade the system as a whole (i.e. a version upgrade).

Your system may ask to restart after installing updates. That’s fine. Restart and resume upgrading to beta release from step 3.

### Step 3: Run update manager with development release upgrade option

Now that you have all the necessary updates installed, you can open the update manager but with -d option. The -d option tells it to look for development releases.

`update-manager -d`


It may take a couple of minutes before informing you that a new version of Ubuntu is available.

![ubuntu 24.04 upgrade](https://itsfoss.com/content/images/2024/04/ubuntu24-04-upgrade.png)

Hit the upgrade button when you see the above message.

### Step 4: Start upgrading to Ubuntu 24.04 beta

The rest of the upgrade procedure is basically waiting for update downloads and clicking okay wherever requested.

![ubuntu 24.04 releasenotes](https://itsfoss.com/content/images/2024/04/ubuntu-24-04-releasenotes.png)

Hit the upgrade button and follow the on-screen instructions.

![ubuntu 24.04 upgrade process](https://itsfoss.com/content/images/2024/04/ubuntu-24-04-upgrade-process.png)

You might be notified that all the third party sources have been disabled. At some point, it will also inform you of the packages that will be upgraded, removed etc. It will also ask if you want to keep obsolete packages or not. I prefer to remove them.

![ubuntu 24.04 upgrade last confirmation](https://itsfoss.com/content/images/2024/04/ubuntu-24-04-upgrade-packages.png)

Depending on your internet speed, the upgrade may take a couple of hours. Once the upgrade process is complete, you’ll be asked to restart your system.

See, it wasn’t that difficult. Enjoy all the new features in Ubuntu 24.04.

*Questions or suggestions? Feel free to leave a comment below.*