mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
translated
This commit is contained in:
parent
21c426ea56
commit
59f7908704
@ -1,164 +0,0 @@
|
||||
[#]: subject: (How to Upgrade to Debian 11 from Debian 10)
|
||||
[#]: via: (https://www.debugpoint.com/2021/07/upgrade-debian-11-from-debian-10/)
|
||||
[#]: author: (Arindam https://www.debugpoint.com/author/admin1/)
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
|
||||
How to Upgrade to Debian 11 from Debian 10
|
||||
======
|
||||
This guide explains the steps to upgrade debian 11 from debian 10.
|
||||
[Debian][1] releases are rare. Because it is often a multi-year effort from the community. That is why Debian is truly universal operating system and rock solid stability wise.
|
||||
|
||||
[Debian 11][2], code named Bullseye, officially releases soon. On July 15, 2021, Debian 11 went to complete freeze, which means the release is imminent. Although the official date is not finalized, but you can install or upgrade to Debian 11 from Debian 10 right now.
|
||||
|
||||
This is how.
|
||||
|
||||
### Pre-Requisites
|
||||
|
||||
* The upgrade process is very straightforward. However, it is a good practice to take certain pre-cautions. Specially if you are upgrading a server.
|
||||
* Take backup of your system, including all important data and files.
|
||||
* Try to disable/remove any external repositories (PPA) you may have added over the time. You can enable them after upgrade one-by-one.
|
||||
* Close all the running applications.
|
||||
* Stop any running services that you may have enabled. You can start them via [systemctl][3] after upgrade is complete. This includes web server, SSH server, FTP server or any other servers.
|
||||
* Make sure you have stable internet connection.
|
||||
* And have sufficient downtime of your system. Because depending on your system configuration, a Debian version upgrade takes time ~ between 1.5 hours to 2 hours.
|
||||
|
||||
|
||||
|
||||
### Upgrade Debian 10 Buster to 11 Bullseye Linux
|
||||
|
||||
* Make sure your system is up-to-date, and your package list is up-to-date.
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt update && sudo apt upgrade
|
||||
```
|
||||
|
||||
* Install the gcc-8-base package using the below command. This is required because, historically it has been seen, that upgrade fails because of certain dependencies which included in the below package.
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt install gcc-8-base
|
||||
```
|
||||
|
||||
![upgrade debian – system check][4]
|
||||
|
||||
* Open the /etc/apt/sources.list and update with bullseye repositories, by commenting the Debian 10 buster packages.
|
||||
|
||||
|
||||
* Comment out all the buster repo by “#” at the beginning of the lines.
|
||||
|
||||
|
||||
|
||||
![Comment the Debian 10 lines][5]
|
||||
|
||||
* Add the following lines at the end of the file.
|
||||
|
||||
|
||||
|
||||
```
|
||||
deb http://deb.debian.org/debian bullseye main contrib non-free
|
||||
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
|
||||
deb http://security.debian.org/debian-security bullseye-security main
|
||||
deb http://ftp.debian.org/debian bullseye-backports main contrib non-free
|
||||
```
|
||||
|
||||
![Add Debian 11 lines][6]
|
||||
|
||||
* Press Ctrl + O to save the file and Ctrl + X to exit nano.
|
||||
|
||||
|
||||
* Update the system repository list once to verify the addition of the repositories.
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
* If the above command doesn’t give any error, then you have successfully added the bullseye repo.
|
||||
|
||||
|
||||
* Now, start the upgrade process by running the below command. The download size is around 1.2 GB for a base installation. That may be different based on your system config.
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt full-upgrade
|
||||
```
|
||||
|
||||
![Debian upgrade start][7]
|
||||
|
||||
* This command takes time. But do not leave the system unattended. Because upgrade process requires various inputs during the course of upgrade.
|
||||
|
||||
|
||||
|
||||
![lib6 config][8]
|
||||
|
||||
![sudoers file][9]
|
||||
|
||||
* Once it is completed, you can restart the system using –
|
||||
|
||||
|
||||
|
||||
```
|
||||
systemctl reboot
|
||||
```
|
||||
|
||||
* After reboot, run the following commands to make sure your system is up-to-date, and you cleaned up all the unnecessary packages that is not required anymore.
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt --purge autoremove
|
||||
```
|
||||
|
||||
* If all goes well, you should be seeing the Debian 11 bullseye. You can verify the version using the below command:
|
||||
|
||||
|
||||
|
||||
```
|
||||
cat /etc/os-release
|
||||
```
|
||||
|
||||
![Debian 11 after upgrade][10]
|
||||
|
||||
### Closing Notes
|
||||
|
||||
I hope this guide helps you to upgrade your system to Debian 11 bullseye. If you face any issues, let me know using the comment box below.
|
||||
|
||||
[][11]
|
||||
|
||||
SEE ALSO: Debian 11 bullseye - Default Theme Revealed
|
||||
|
||||
* * *
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/2021/07/upgrade-debian-11-from-debian-10/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://www.debugpoint.com/author/admin1/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://www.debian.org/
|
||||
[2]: https://www.debugpoint.com/2021/05/debian-11-features/
|
||||
[3]: https://www.debugpoint.com/2020/12/systemd-systemctl-service/
|
||||
[4]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/upgrade-debian-system-check-1024x503.jpeg
|
||||
[5]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Cpmment-the-Debian-10-lines-1024x636.jpeg
|
||||
[6]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Add-Debian-11-lines-1024x635.jpeg
|
||||
[7]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Debian-upgrade-start-1024x226.jpeg
|
||||
[8]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/lib6-config-1024x195.jpeg
|
||||
[9]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/sudoers-file.jpeg
|
||||
[10]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Debian-11-after-upgrade.jpeg
|
||||
[11]: https://www.debugpoint.com/2020/11/debian-11-bullseye-theme/
|
@ -0,0 +1,159 @@
|
||||
[#]: subject: (How to Upgrade to Debian 11 from Debian 10)
|
||||
[#]: via: (https://www.debugpoint.com/2021/07/upgrade-debian-11-from-debian-10/)
|
||||
[#]: author: (Arindam https://www.debugpoint.com/author/admin1/)
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
|
||||
如何从 Debian 10 升级到 Debian 11
|
||||
======
|
||||
本指南解释了从 Debian 10 升级到 Debian 11 的步骤。
|
||||
|
||||
[Debian][1] 的发布是很罕见的。因为它往往是来自社区的多年努力。这就是为什么 Debian 是真正的通用操作系统,并且在稳定性方面坚如磐石。
|
||||
|
||||
[Debian 11][2],代号 Bullseye,即将正式发布。2021 年 7 月 15 日,Debian 11 进入完全冻结状态,这意味着发行在即。虽然官方日期还没有最终确定,但你现在就可以从 Debian 10 安装或升级到 Debian 11。
|
||||
|
||||
以下是方法。
|
||||
|
||||
### 前提条件
|
||||
|
||||
* 升级的过程非常简单明了。然而,采取某些预先注意事项是一个好的做法。特别是如果你正在升级一台服务器。
|
||||
* 对你的系统进行备份,包括所有重要的数据和文件。
|
||||
* 尝试禁用/删除你可能在一段时间内添加的任何外部仓库(PPA)。你可以在升级后逐一启用它们。
|
||||
* 关闭所有正在运行的应用。
|
||||
* 停止任何你可能已经启用的运行中的服务。升级完成后,你可以通过 [systemctl][3] 启动它们。这包括网络服务器、SSH 服务器、FTP 服务器或任何其他服务器。
|
||||
* 确保你有稳定的互联网连接。
|
||||
* 你的系统有足够的停机时间。因为根据你的系统配置,Debian 版本升级需要时间大约在 1.5 小时到 2 小时之间。
|
||||
|
||||
|
||||
|
||||
### 将 Debian 10 Buster 升级到 11 Bullseye
|
||||
|
||||
* 确保你的系统是最新的,而且你的软件包列表是最新的。
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt update && sudo apt upgrade
|
||||
```
|
||||
|
||||
* 使用下面的命令安装 gcc-8-base 包。这是必须的,因为在历史上曾出现过升级失败的情况,这是因为下面的软件包中包含了某些依赖。
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt install gcc-8-base
|
||||
```
|
||||
|
||||
![upgrade debian – system check][4]
|
||||
|
||||
* 打开 /etc/apt/sources.list,通过注释 Debian 10 buster 包,而使用 bullseye 仓库进行更新。
|
||||
|
||||
|
||||
* 注释所有的 buster 仓库,在行的开头加上 “#”。
|
||||
|
||||
|
||||
|
||||
![Comment the Debian 10 lines][5]
|
||||
|
||||
* 在文件的末尾添加以下几行。
|
||||
|
||||
|
||||
|
||||
```
|
||||
deb http://deb.debian.org/debian bullseye main contrib non-free
|
||||
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
|
||||
deb http://security.debian.org/debian-security bullseye-security main
|
||||
deb http://ftp.debian.org/debian bullseye-backports main contrib non-free
|
||||
```
|
||||
|
||||
![Add Debian 11 lines][6]
|
||||
|
||||
* 按 Ctrl + O 保存文件,按 Ctrl + X 退出 nano。
|
||||
|
||||
|
||||
* 更新一次系统仓库列表,以验证仓库的添加情况。
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
* 如果上面的命令没有出现任何错误,那么你已经成功地添加了 bullseye 仓库。
|
||||
|
||||
|
||||
* 现在,通过运行下面的命令开始升级过程。基本安装的下载大小约为 1.2GB。这可能会根据你的系统配置而有所不同。
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt full-upgrade
|
||||
```
|
||||
|
||||
![Debian upgrade start][7]
|
||||
|
||||
* 这个命令需要时间。但不要让系统无人看管。因为升级过程中需要各种输入。
|
||||
|
||||
|
||||
|
||||
![lib6 config][8]
|
||||
|
||||
![sudoers file][9]
|
||||
|
||||
* 完成后,你可以用以下命令重启系统。
|
||||
|
||||
|
||||
|
||||
```
|
||||
systemctl reboot
|
||||
```
|
||||
|
||||
* 重启后,运行以下命令,以确保你的系统是最新的,并且清理了所有不再需要的不必要的软件包。
|
||||
|
||||
|
||||
|
||||
```
|
||||
sudo apt --purge autoremove
|
||||
```
|
||||
|
||||
* 如果一切顺利,你应该看到 Debian 11 bullseye。你可以用下面的命令来验证版本:
|
||||
|
||||
|
||||
|
||||
```
|
||||
cat /etc/os-release
|
||||
```
|
||||
|
||||
![Debian 11 after upgrade][10]
|
||||
|
||||
### 结束语
|
||||
|
||||
我希望这个指南能帮助你将你的系统升级到 Debian 11 bullseye。如果你遇到任何问题,请在下面的评论栏告诉我。
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/2021/07/upgrade-debian-11-from-debian-10/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://www.debugpoint.com/author/admin1/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://www.debian.org/
|
||||
[2]: https://www.debugpoint.com/2021/05/debian-11-features/
|
||||
[3]: https://www.debugpoint.com/2020/12/systemd-systemctl-service/
|
||||
[4]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/upgrade-debian-system-check-1024x503.jpeg
|
||||
[5]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Cpmment-the-Debian-10-lines-1024x636.jpeg
|
||||
[6]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Add-Debian-11-lines-1024x635.jpeg
|
||||
[7]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Debian-upgrade-start-1024x226.jpeg
|
||||
[8]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/lib6-config-1024x195.jpeg
|
||||
[9]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/sudoers-file.jpeg
|
||||
[10]: https://www.debugpoint.com/blog/wp-content/uploads/2021/07/Debian-11-after-upgrade.jpeg
|
Loading…
Reference in New Issue
Block a user