11/14/2023 0 Comments Debian 10 to 11 upgrade![]() ![]() ![]() Flatcar, Ubuntu Core, Silverblue, Fedora CoreOS, Alpine, whatever. If your entire stack is running inside containers, get a container orchestration system going, put on a distro as minimal as you possibly can (just enough to run them), and stop worrying about stuff like this. Python is so deeply entwined into the Debian ecosystem that trying to upgrade Debian with anything Python-based is honestly kind of a fool's errand unless you run the entire thing as a single script so it doesn't try to re-exec in the middle after some parts have been changed and not others. The absurdity of it being 2021 and the recommendation for comparing versions of Debian packages in Python, which they nominally bind to, is "shell out to dpkg". Honestly, though, apt_pkg is a "python" module which talks through C BINDINGS because the Debian developers can't be bothered to figure out a better way to do it. I could complain about the Debian ecosystem all day, but RPM distros aren't really any better about upgrading (well, not EL distros). Your fundamental problem is that apt_pkg is hot garbage. If you're not already running these things in Kubernetes, this is a good reason to learn how. You're upgrading the hosts, not the containers, right? Because if you're trying to upgrade the containers, this is even more off. Reprovision the server and redeploy the containers. # 9 - Verify that everything is working correctly.ĭoes anyone have a truly reliable Debian 10 > Debian 11 upgrade playbook? Or does anyone know why this approach is failing? Shell: 'sleep 1 & shutdown -r now "Reboot triggered by Ansible" & sleep 1' # 8 - Reboot the Linux system so that you can boot into Debian 11 Bullseye name: Upgrade to Debian 11 (apt-get dist-upgrade) # 7 - Finally, update Debian 10 to Debian 11 bullseye by running: #6 - Prepare for the operating system upgrade, run: # 5 - Update the packages index on Debian Linux, run: name: Template a file to /etc/apt/sources.list # 4 - Next find the security line, replace keyword 'buster/updates' with 'bullseye-security'. # 3 - Edit the file /etc/apt/sources.list using a text editor and replace each instance of 'buster' with 'bullseye'. name: Upgrade all packages to their latest version name: Update all packages to their latest version # 2 - Update existing packages and reboot the Debian 10 system. SOLUTION: this script ended up working, note it's better to rebuild services entirely and recover from backups then do OS upgrades in 2022: - name: "Upgrades a host from Debian 10 to Debian 11." We are going to make a backup with Duplicati.Attempting to make a Debian 10 > Debian 11 Ansible: > The update should not break anything, but just in case. The first and foremost thing is to have a backup of the system. Today we are going to see how to upgrade our system from Debian 10 to Debian 11 in a few steps. That is, a large number of improvements and bug fixes that will improve our server. 42,821 packages have been updated and 5,434 remain unchanged. This release contains a total of 59,551 packages of which more than 11,294 are new, and this despite a significant reduction of more than 9,519 packages that were marked as obsolete and were removed. Debian 11 ( bullseye) has been available for use on the stable channel for several months now. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |