Upgrade to Stretch

Steps to be performed to upgrade from Jessie (amd64) to Stretch. I don't explain why a certain step is done - read the manual found at step one. You should know what you're doing!

Preperations

tar czf ~/jessie-bkup.tgz /etc /var/lib/dpkg /var/lib/apt/extended_states \
/var/lib/aptitude/pkgstates
 
dpkg --get-selections "*" > ~/dpkg-selections.jessie
  • check for third-party packages (it is recommended to remove them before upgrading)
aptitude search '~i(!~ODebian)'
apt-forktracer | sort
  • check if aptitude is clean: start it and press g (Go). It should say “No packages are scheduled to be installed, removed, or upgraded”
  • prepare for recovery
  • remove conflicting packages
  • review actions pending in package manager: To perform this review, launch aptitude in “visual mode” and press g (“Go”). If it shows any actions, you should review them and either fix them or implement the suggested actions. If no actions are suggested you will be presented with a message saying “No packages are scheduled to be installed, removed, or upgraded”.

List all removed packages that may have configuration files left on the system (if any):

dpkg -l | awk '/^rc/ { print $2 }'

Remove these left overs all at once:

apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
# Checking packages status
dpkg --audit
dpkg -l | pager
aptitude search "~ahold" 
dpkg --get-selections | grep hold
  • (temporarily) disable proposed-updates while updating
  • disable any unofficial sources while updating
  • update the package list to use stretch
  • enter screen and recorde the session
screen
script -t 2>~/upgrade-stretch1.time -a ~/upgrade-stretch1.script
  • let's go:
apt-get update
  • make sure you have sufficient space for the upgrade
  • kernel flavour selection only applicable if you're running an i386 sytem
  • minimal system upgrade:
apt-get upgrade
  • upgrade the system:
apt-get dist-upgrade

Again, check for removed packages:

List all removed packages that may have configuration files left on the system (if any):

dpkg -l | awk '/^rc/ { print $2 }'

Remove these left overs all at once:

apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')

Reboot and we're done.

debian/upgrade_to_stretch.txt · Last modified: 2017-11 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready