This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
debian:upgradepathtemplate [2025/04/28 06:20] 37.187.226.31 old revision restored (2023/02/07 13:42) |
debian:upgradepathtemplate [2025/04/29 16:37] (current) 45.40.50.170 old revision restored (2024/12/09 01:30) |
||
---|---|---|---|
Line 16: | Line 16: | ||
==== 1.1. Back up any data or configuration information ==== | ==== 1.1. Back up any data or configuration information ==== | ||
+ | | ||
==== 1.2. Inform users in advance ==== | ==== 1.2. Inform users in advance ==== | ||
+ | === 1.2.1 - Who and How should be informed === | ||
+ | |||
+ | | ||
+ | |||
+ | === 1.2.2 - Notify 1 Day prior to planned upgrade === | ||
+ | |||
+ | === 1.2.3 - Notify 2 Hours prior to beginn of upgrade === | ||
==== 1.3. Prepare for downtime on services ==== | ==== 1.3. Prepare for downtime on services ==== | ||
Line 26: | Line 34: | ||
| | ||
+ | This is the perfect time to assess the Backup plans, when not previously done, if you are hired to ensure the reliability of the infrastructure. | ||
==== 1.5. Prepare a safe environment for the upgrade ==== | ==== 1.5. Prepare a safe environment for the upgrade ==== | ||
Line 72: | Line 81: | ||
- | 3.1. Update current installation | + | ==== 3.1. Update current installation |
# sudo apt update | # sudo apt update | ||
- | 3.2. Upgrade current installation | + | ==== 3.2. Upgrade current installation |
# sudo apt upgrade | # sudo apt upgrade | ||
- | 3.3. Check functionality | + | ==== 3.3. Check functionality |
| | ||
- | 3.4. Upgrade current distribution | + | ==== 3.4. Upgrade current distribution |
# sudo apt dist-upgrade | # sudo apt dist-upgrade | ||
- | 3.5. Check functionality | + | ==== 3.5. Check functionality |
see 3.3 above | see 3.3 above | ||
Line 95: | Line 104: | ||
- | 4.1. Adding APT Internet sources | + | ==== 4.1. Adding APT Internet sources |
# sudo sed -i ' | # sudo sed -i ' | ||
# sudo sed -i ' | # sudo sed -i ' | ||
- | 4.2. Adding APT sources for a local mirror | + | ==== 4.2. Adding APT sources for a local mirror |
Only required for special in-house software | Only required for special in-house software | ||
- | 4.3. Adding APT sources from optical media | + | ==== 4.3. Adding APT sources from optical media ==== |
Only required for special 3rd party delivered software | Only required for special 3rd party delivered software | ||
Line 115: | Line 124: | ||
# mount -o remount,rw /mountpoint | # mount -o remount,rw /mountpoint | ||
- | 5.1. Recording the session | + | ==== 5.1. Recording the session |
# script -t 2> | # script -t 2> | ||
Line 122: | Line 131: | ||
# scriptreplay ~/ | # scriptreplay ~/ | ||
- | 5.2. Updating the package list | + | ==== 5.2. Updating the package list ==== |
# apt-get update | # apt-get update | ||
- | 5.3. Make sure you have sufficient space for the upgrade | + | ==== 5.3. Make sure you have sufficient space for the upgrade |
# apt-get -o APT:: | # apt-get -o APT:: | ||
- | 5.4. Minimal system upgrade | + | ==== 5.4. Minimal system upgrade |
# apt-get upgrade | # apt-get upgrade | ||
- | 5.5. Check functionality | + | ==== 5.5. Check functionality |
See 3.3 above | See 3.3 above | ||
- | 5.6. Upgrading the system | + | ==== 5.6. Upgrading the system |
# apt-get dist-upgrade | # apt-get dist-upgrade | ||
- | 5.7. Check functionality | + | ==== 5.7. Check functionality |
See 3.3 above | See 3.3 above | ||
Line 149: | Line 158: | ||
- | 6.1. Dist-upgrade fails with “Could not perform immediate configuration” | + | ==== 6.1. Dist-upgrade fails with “Could not perform immediate configuration” |
# apt-get dist-upgrade -o APT:: | # apt-get dist-upgrade -o APT:: | ||
- | 6.2. Expected removals | + | ==== 6.2. Expected removals |
- | 6.3. Conflicts or Pre-Depends loops | + | |
+ | ==== 6.3. Conflicts or Pre-Depends loops ==== | ||
use -o APT:: | use -o APT:: | ||
Line 165: | Line 175: | ||
# dpkg --install / | # dpkg --install / | ||
- | 6.4. File conflicts | + | ==== 6.4. File conflicts |
# dpkg -r --force-depends package_name | # dpkg -r --force-depends package_name | ||
- | 6.5. Configuration changes | + | ==== 6.5. Configuration changes |
| | ||
- | 6.6. Change of session to console | + | ==== 6.6. Change of session to console |
| | ||
Line 180: | Line 190: | ||
- | 7.1. Install any needed kernel metapackage | + | ==== 7.1. Install any needed kernel metapackage |
Check for meta package | Check for meta package | ||
Line 197: | Line 207: | ||
- | 8.1. Purging removed packages | + | ==== 8.1. Purging removed packages |
| | ||
Line 217: | Line 227: | ||
- | 9.1. Dummy packages | + | ==== 9.1. Dummy packages |