7. Managing your bookworm system before the upgrade

Phụ lục này chứa thông tin về cách kiểm tra có thể cài đặt hoặc nâng cấp các gói bookworm trước khi nâng cấp lên trixie.

7.1. Nâng cấp hệ thống bookworm

Basically this is no different from any other upgrade of bookworm you've been doing. The only difference is that you first need to make sure your package list still contains references to bookworm as explained in Checking your APT source-list files.

Nếu người dùng nâng cấp hệ thống dùng một máy nhân bản Debian thì hệ thống được tự động nâng cấp lên bản phát hành điểm bookworm mới nhất.

7.2. Checking your APT configuration

If any of the lines in your APT sources files (see sources.list(5)) contain references to "stable", this is effectively pointing to trixie already. This might not be what you want if you are not yet ready for the upgrade. If you have already run apt update, you can still get back without problems by following the procedure below.

Nếu người dùng cũng đã cài đặt gói từ trixie, rất có thể không có ích khi cài đặt thêm gói từ bookworm. Trong trường hợp đó, người dùng cần phải tự quyết định có nên tiếp tục hay không. Cũng có thể hạ cấp gói, nhưng quá trình đó không phải được diễn tả ở đây.

As root, open the relevant APT sources file(s) (such as /etc/apt/sources.list or any file under /etc/apt/sources.list.d/) with your favorite editor, and check all lines beginning with

  • deb http:

  • deb https:

  • deb tor+http:

  • deb tor+https:

  • URIs: http:

  • URIs: https:

  • URIs: tor+http:

  • URIs: tor+https:

for a reference to "stable". If you find any, change "stable" to "bookworm".

If you have any lines starting with deb file: or URIs: file:, you will have to check for yourself if the location they refer to contains a bookworm or trixie archive.

Quan trọng

Do not change any lines that begin with deb cdrom: or URIs: cdrom:. Doing so would invalidate the line and you would have to run apt-cdrom again. Do not be alarmed if a cdrom: source line refers to "unstable". Although confusing, this is normal.

Sau khi thay đổi gì thì lưu lại tập tin và thực hiện câu lệnh cập nhật

# apt update

để cập nhật danh sách các gói.

7.3. Performing the upgrade to latest bookworm release

To upgrade all packages to the state of the latest point release for bookworm, do

# apt full-upgrade

7.4. Removing obsolete configuration files

Before upgrading your system to trixie, it is recommended to remove old configuration files (such as *.dpkg-{new,old} files under /etc) from the system.