Thursday, August 1, 2019

Debian Stretch: Distribution Upgrade to Debian Buster (10)

Prepare apt /etc/apt/sources.list, change stretch to buster
my apt source list:

# Debian 10

# SECURITY
deb http://security.debian.org/ buster/updates main

# Main
deb http://kartolo.sby.datautama.net.id/debian/ buster main

# NON FREE
deb http://httpredir.debian.org/debian buster main contrib non-free

# BACKPORT
deb http://ftp.debian.org/debian buster-backports main

Note on error when running apt-get update:
E: Release file for http://kambing.ui.ac.id/debian/dists/buster/InRelease is expired (invalid since 265d 4h 18min 17s). Updates for this repository will not be applied.
use other sources e.q change "deb http://kambing.ui.ac.id/debian/ buster main contrib
" to "deb http://mirrors.kernel.org/debian buster main contrib"
If you used oracle mysql or oracle virtualbox, you need to modify to "buster" these files:
/etc/apt/sources.list.d/mysql.list
/etc/apt/sources.list.d/virtualbox.list

Running upgrade process
# apt-get update

# apt-get upgrade
...
Fetched 238 MB in 14min 50s (268 kB/s)   
...

#  apt-get dist-upgrade
...
Fetched 969 MB in 45min 30s (355 kB/s)
...

Restart your computer

# cat /etc/debian_version
10.0
# uname -an
Linux fujitsu01 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux

You can clean and remove unused temporary to make your system "tidy"
# apt-get autoclean && apt-get autoremove

By default, Debian 10 use kernel 4.19, you mau remove your old kernel.
# apt-get remove linux-image-4.9.0-9-amd64

Note:
DO NOT DELETE linux-image-4.19!

Reference:
https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html
https://garasiku.web.id/web/joomla/index.php/tips/debian/14-debian-jessie-upgrade-to-debian-9-codename-stretch

Intel(R) Atom(TM) CPU N455   @ 1.66GHz (Fujitsu) takes 3 hours to completed. Don't worry, It's much faster then windows 10 update or windows update clean up LOL.