Debian 10 to 11 upgrade: legacy pitfalls and a supported migration plan

Reviewed on 28 October 2026. This article originally described upgrading Debian 10 (buster) to Debian 11 (bullseye). It has been rewritten because the old commands are unsuitable as a current production runbook. Debian 11 LTS ended on 31 August 2026. Reaching Debian 11 is therefore no longer a sufficient migration goal.

Choose a supported destination before changing packages

Debian 13 (trixie) is the current stable release. Debian documents an in-place upgrade to it from Debian 12, rather than a direct jump from Debian 10. Read the release notes for each intermediate release and your architecture. For a very old hosting server, compare sequential upgrades with building a replacement server and migrating the application and data. A clean replacement can make testing and rollback easier, but compatibility and data transfer still need planning.

External extended support is a separate arrangement with its own package coverage. An archive mirror preserves old packages; its availability does not mean that Debian still supplies security fixes for that release.

Inventory the website, server and recovery path

Before choosing the approach, identify the operating system, installed applications, PHP used by the web server, database version, third-party repositories, scheduled jobs and services that must survive the change. These are read-only starting points, not a complete assessment:

Review both /etc/apt/sources.list and files under /etc/apt/sources.list.d/, including Deb822 .sources files. Do not publish repository credentials, application secrets or unredacted configuration dumps. PHP shown by a terminal command can differ from the PHP-FPM pool serving the website.

Arrange console or recovery access before relying on a remote SSH session. Prepare off-server backups of files, configuration and an application-consistent database backup. Test restoration on an isolated copy. A VM snapshot alone does not prove that the database is recoverable, and restoring yesterday’s server can lose today’s orders.

Correct repository errors instead of removing security updates

The original article incorrectly treated removal of the security entry as a fix. For Debian 11, the security suite changed from the older codename/updates naming to bullseye-security. Blindly replacing the word buster therefore did not produce a correct configuration.

This is historical context, not a current repository file to paste. Use the documentation and archive location appropriate to the actual source release and upgrade step. Check each vendor repository for target-release support, signing keys and package pinning. Do not bypass signature verification or keep mixing unrelated Debian releases just to make APT proceed.

Rehearse the migration and inspect proposed removals

On the protected test copy, follow the relevant release notes in order. Review package removals, configuration-file differences, available disk space and service restart prompts. The previous unattended chain combining upgrades and automatic removal has been removed from this guide. A successful package-manager exit is only one checkpoint; it does not confirm that a shop can take an order.

Disable real outgoing mail, scheduled customer actions and production analytics on the copy. Use payment-provider sandbox modes. Record the steps, duration and recovery procedure, then schedule a production window based on that rehearsal.

Diagnose PHP-FPM and database problems narrowly

If Nginx reports a PHP socket permission error, check the configured socket path, the actual Nginx worker identity, directory access and the relevant FPM pool. Socket access directives such as listen.owner, listen.group and listen.mode are separate from the application pool’s user and group. When FPM socket ACL users are configured, owner/group settings are ignored. Do not replace every occurrence of www-data with nginx or make the socket world-writable.

If database packages are proposed for removal or the database fails to start, stop and investigate package dependencies, repositories, logs and version-specific upgrade requirements. Blindly reinstalling a database server is not a recovery plan. Protect the existing data before further changes.

Verify the application before switching traffic

Check public pages, administration, logins, uploads, scheduled tasks, mail routing and integrations. For a shop, test checkout and payment callbacks without real charges. A replacement server also needs a plan for final data synchronisation, DNS and delayed requests to the old host. Keep the old environment controlled until recovery and data reconciliation are understood.

Need help migrating an old Debian hosting server? Describe the server and affected website, the versions you know, the symptoms and the available maintenance window. Do not send passwords in the first message. The first step is to establish compatibility, backup quality and a practical migration scope.

Official documentation