Debian 10 to 11 » History » Revision 17

Revision 16 (Hannah Atkinson, 04/12/2023 04:15 PM) → Revision 17/19 (Hannah Atkinson, 04/18/2023 01:13 PM)

{{lastupdated_at}} by {{lastupdated_by}} 


 h1. Debian 10 to 11 

 h2. Pre update check 

 h3. Stretch check 

 Check if any sources still point to stretch 

 cd /etc/apt 
 grep -nr stretch . 

 If so, bring those up to buster and run updates first 

 h3. Metapackage check 

 Check to make sure kernel metapackage is installed, not just specific kernel 

 @dpkg -l "linux-image*" | grep ^ii | grep -i meta@ should have results 
 If not, install metapackage 

 h3. Purged package check 

 List and purge removed packages with config files remaining 

 aptitude search '~c' 
 aptitude purge '~c' 

 h3. Hold check 

 These commands should have no results 

 aptitude search "~ahold"  
 dpkg --get-selections | grep 'hold$' 

 h2. Update sources list 

 Check which sources exist that point to buster 
 cd /etc/apt 
 grep -nr buster . 

 Edit the main list, and any others that come up 

 vim /etc/apt/sources.list 

 replace buster with bullseye 


 replace bullseye/updates with bullseye-security 


 h2. Upgrade the system 

 h3. Update the sources 

 apt-get update 

 If you get a NO_PUBKEY error, see 

 h3. Check for Necessary Disk Space 

 <pre>apt-get -o APT::Get::Trivial-Only=true dist-upgrade</pre> 

 h3. Minimal Upgrade 

 <pre> apt-get upgrade</pre> 

 * if it asks whether to change /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg, say yes 
 * other things it asks to change, say no, keep the existing file 

 h3. Full Upgrade 

 apt-get dist-upgrade 

 h4. Change configs during full upgrade? 

 |package | change configs| 
 | nrpe | no | 
 | sudoers | no | 
 | journald | no | 
 | backupninja | no | 
 | nginx | yes but recheck after | 
 | redis | yes but recheck after | 
 | sshd_config | yes but recheck after | 
 | glibc | yes | 
 | logrotate.d/apache2 | yes | 

 h3. Upgrade MySQL databases (if MySQL/MariaDB installed) 


 h3. Check that things are up 

 * if a web server, make sure websites are up 
 * if an infrastructure server, test and make sure all parts of the infrastructure are working properly 
 * if a PTC server check the "recovery plan": entry for that server to make sure everything has recovered 

 h3. Check what packages were removed 

 * @cat /var/log/apt/history.log | grep Remove@ 
 * copy that into ongoing updates documentation for records 
 * Make sure there was nothing important in there 
 * If there were important packages in there 
 ** check aptitude to see if newer versions were already installed  
 ** check debian package search to search for what version is appropriate 

 h2. Common problems 

 h3. NO_PUBKEY during update 
 W: GPG error: bullseye-pgdg InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7FCC7D46ACCC4CF8 
 Add the key for the specified repository: 
 0 meat:/etc/apt# sudo gpg -a --export 7FCC7D46ACCC4CF8 | sudo apt-key add - 
 See for more information 

 h3. apache2 service start failure due to modules needing to be re-installed / updated 

 [wsgi:crit] [pid 15988] mod_wsgi (pid=15988): The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration. 

 The Fix: 

Go to top