debian:upgradepathtemplate
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| debian:upgradepathtemplate [2025/04/28 04:19] – old revision restored (2022/06/10 17:53) 37.187.226.31 | debian:upgradepathtemplate [2026/05/23 00:35] (current) – old revision restored (2024/03/01 06:38) 113.44.101.108 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| I will normally create a complete system clone and use this template to work out the entire correct and functional path for the production system in question. | I will normally create a complete system clone and use this template to work out the entire correct and functional path for the production system in question. | ||
| - | 1. Preparing for the upgrade | + | ===== 1. Preparing for the upgrade |
| + | |||
| + | |||
| + | ==== 1.1. Back up any data or configuration information ==== | ||
| + | |||
| + | ==== 1.2. Inform users in advance ==== | ||
| + | |||
| + | ==== 1.3. Prepare for downtime on services ==== | ||
| - | 1.1. Back up any data or configuration information | ||
| - | 1.2. Inform users in advance | ||
| - | 1.3. Prepare for downtime on services | ||
| Set maintainance window for upgrade with buffer | Set maintainance window for upgrade with buffer | ||
| - | 1.4. Prepare for recovery | + | ==== 1.4. Prepare for recovery |
| Verify the recoverability of system from backup image | Verify the recoverability of system from backup image | ||
| - | 1.5. Prepare a safe environment for the upgrade | + | ==== 1.5. Prepare a safe environment for the upgrade |
| Local terminal or SSH access | Local terminal or SSH access | ||
| + | ==== 1.6. Develop tests for section 3.3 that will ensure correct execution of needed tasks ==== | ||
| + | |||
| + | i.e.: | ||
| + | a. Web server delivers correctly | ||
| + | b. php scripts execute correctly | ||
| + | c. DB runs correctly | ||
| + | d. mail works | ||
| + | |||
| + | ===== 2. Checking system status ===== | ||
| - | 2. Checking system status | ||
| find NON-Pure Debian packages | find NON-Pure Debian packages | ||
| Line 23: | Line 37: | ||
| # apt-forktracer | sort | # apt-forktracer | sort | ||
| - | 2.1. Review actions pending in package manager | + | ==== 2.1. Review actions pending in package manager |
| # aptitude | # aptitude | ||
| Select GO and review | Select GO and review | ||
| - | 2.2. Disabling APT pinning | + | ==== 2.2. Disabling APT pinning |
| check / | check / | ||
| - | 2.3. Checking packages status | + | ==== 2.3. Checking packages status |
| # dpkg --audit | # dpkg --audit | ||
| # aptitude search " | # aptitude search " | ||
| Line 34: | Line 51: | ||
| To remove a hold on a package: echo package_name install | dpkg --set-selections | To remove a hold on a package: echo package_name install | dpkg --set-selections | ||
| - | 2.4. Remove proposed-updates section if present in / | + | ==== 2.4. Remove proposed-updates section if present in / |
| - | 2.5. Verify Unofficial sources are available for target Debian version | + | |
| + | ==== 2.5. Verify Unofficial sources are available for target Debian version | ||
| + | |||
| + | |||
| + | ===== 3. Upgrading current version ===== | ||
| - | 3. Upgrading current version | ||
| 3.1. Update current installation | 3.1. Update current installation | ||
| Line 50: | Line 70: | ||
| see 3.3 above | see 3.3 above | ||
| - | 4. Preparing sources for APT | + | ===== 4. Preparing sources for APT ===== |
| 4.1. Adding APT Internet sources | 4.1. Adding APT Internet sources | ||
| Line 60: | Line 81: | ||
| Only required for special 3rd party delivered software | Only required for special 3rd party delivered software | ||
| - | 5. Upgrading packages | + | ===== 5. Upgrading packages |
| Ensure all partition mountpoints are mounted read-write | Ensure all partition mountpoints are mounted read-write | ||
| Line 82: | Line 104: | ||
| See 3.3 above | See 3.3 above | ||
| - | 6. Possible issues during upgrade | + | ===== 6. Possible issues during upgrade |
| 6.1. Dist-upgrade fails with “Could not perform immediate configuration” | 6.1. Dist-upgrade fails with “Could not perform immediate configuration” | ||
| Line 103: | Line 126: | ||
| Ctrl+Alt+F1 should recover the terminal window | Ctrl+Alt+F1 should recover the terminal window | ||
| - | 7. Upgrading kernel and related packages | + | ===== 7. Upgrading kernel and related packages |
| 7.1. Install any needed kernel metapackage | 7.1. Install any needed kernel metapackage | ||
| Line 113: | Line 137: | ||
| # apt-cache show linux-image-amd64 | # apt-cache show linux-image-amd64 | ||
| - | 8. Preparing for the next release | + | ===== 8. Preparing for the next release |
| 8.1. Purging removed packages | 8.1. Purging removed packages | ||
| Line 125: | Line 150: | ||
| # aptitude purge ' | # aptitude purge ' | ||
| - | 9. Obsolete packages | + | ===== 9. Obsolete packages |
| 9.1. Dummy packages | 9.1. Dummy packages | ||
debian/upgradepathtemplate.1745813996.txt.gz · Last modified: by 37.187.226.31
