Differences

This shows you the differences between two versions of the page.

Link to this comparison view

debian_upgrade [2015/06/02 16:49]
massar
debian_upgrade [2018/02/20 13:32] (current)
massar jessie -> stretch
Line 1: Line 1:
-====== Debian Wheezy to Jessie update notes ======+====== Debian Jessie to Stretch update notes ======
 <code> <code>
 # see: http://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html # see: http://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html
Line 7: Line 7:
 # if not amd64, consider new installation with amd64 # if not amd64, consider new installation with amd64
  
-mkdir ~/wheezy +dpkg-reconfigure debconf
-dpkg --get-selections > ~/wheezy/dpkg-get-selections +
-rsync -a /etc/ ~/wheezy/etc +
-rsync -a /var/lib/dpkg/info/ ~/wheezy/var-lib-dpkg-info +
-rsync -a /var/lib/apt/extended_states ~/wheezy/var-lib-apt-extended_states +
-deborphan --guess-all > ~/wheezy/deborphan +
-deborphan --list-keep > ~/wheezy/deborphan-keep +
- +
-cd /etc/apt/sources.list.d +
-rm 03backports.list +
-mv 00wheezy.list 00jessie.list +
-mv 01wheezy-updates.list 01jessie-updates.list +
-mv 02wheezy-unikl.list 02jessie-unikl.list +
-sed -i 's/wheezy/jessie/g' *.list +
-cd /etc/apt/preferences.d +
-mv 02wheezy-unikl.pref 02jessie-unikl.pref +
-sed -i 's/wheezy/jessie/g' *.pref +
- +
-<verify> /etc/apt/preferences <AND> /etc/apt/preferences.d/<>+
  
 dpkg --get-selections | fgrep hold dpkg --get-selections | fgrep hold
-<fixup> 
 dpkg --audit dpkg --audit
 deborphan --list-keep deborphan --list-keep
-&lt;fixup>+deborphan --guess-all 
 +apt-get --purge autoremove 
 +apt-show-versions | fgrep -v uptodate 
 +find /etc -name '*.dpkg*' -o -name '*.ucf*' 
 + 
 +mkdir ~/jessie 
 +dpkg --get-selections &gt; ~/jessie/dpkg-get-selections 
 +rsync -a /etc/ ~/jessie/etc 
 +rsync -a /var/lib/dpkg/info/ ~/jessie/var-lib-dpkg-info 
 +rsync -a /var/lib/apt/extended_states ~/jessie/var-lib-apt-extended_states 
 +deborphan --guess-all >~/jessie/deborphan 
 +deborphan --list-keep ~/jessie/deborphan-keep 
 + 
 +cd /etc/apt/sources.list.d 
 +rm -f 03backports.list 
 +mv 00jessie.list 00debian.list 
 +mv 01jessie-updates.list 01debian-updates.list 
 +mv 02jessie-unikl.list 02debian-unikl.list 
 +sed -i 's/jessie/stretch/g' *.list 
 +cd /etc/apt/preferences.d 
 +rm -f 02jessie-unikl.pref 02stretch-unikl.pref
  
 apt-get clean apt-get clean
 +apt-get update
 +apt-get install unikl-debian-archive-keyring
 apt-get update apt-get update
  
Line 39: Line 42:
  
 systemctl daemon-reexec # when upgrade hangs at "setting up udev" for example systemctl daemon-reexec # when upgrade hangs at "setting up udev" for example
- 
-cd /etc ; find /etc -name '*.dpkg*' -o -name '*.ucf*' 
-<merge / remove / ...> 
  
 apt-get --purge autoremove apt-get --purge autoremove
-deborphan --guess-all+apt-get --purge remove gcc-4.9-base:amd64 
 +apt-get --purge remove $(deborphan --guess-all)
 <delete unused packages ... run multiple times> <delete unused packages ... run multiple times>
  
Line 51: Line 52:
  but keep old kernel until sucessful reboot>  but keep old kernel until sucessful reboot>
  
-reboot # verify kernel boot order first +cd /etc 
-apt-get --purge remove linux-image-3.2.0-4-amd64:amd64+find /etc -name '*.dpkg*' --name '*.ucf*' 
 +<merge / remove ...>
  
 +reboot # verify kernel boot order first
 +apt-get --purge remove linux-image-3.16.0-4-amd64 linux-image-3.16.0-5-amd64
  
-<ext4 conversion> 
-tune2fs -O extents,uninit_bg,dir_index /dev/DEV 
-<change fs type in /etc/fstab> 
-<mount ro> 
-e2fsck -fDC0 /dev/DEV 
-<if root-fs is to be converted reboot and fix during startup when boot stops due to filesystem errors> 
 </code> </code>
  
 
debian_upgrade.txt · Last modified: 2018/02/20 13:32 by massar