Upgrade Sketch to Buster (or Bookworm): Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list | sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list | ||
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* | sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* | ||
</pre> | |||
Update sources to bookworm w/ sed search and replace: | |||
<pre> | |||
sudo sed -i 's/buster/bookworm/g' /etc/apt/sources.list | |||
sudo sed -i 's/buster/bookworm/g' /etc/apt/sources.list.d/* | |||
</pre> | |||
<pre> | |||
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list | |||
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/* | |||
</pre> | </pre> | ||
Line 23: | Line 34: | ||
cat /etc/apt/sources.list | cat /etc/apt/sources.list | ||
</pre> | </pre> | ||
Update and upgrade | Update and upgrade | ||
Line 34: | Line 46: | ||
<pre> | <pre> | ||
sudo shutdown -r 0 | sudo shutdown -r 0 | ||
</pre> | |||
Verify | |||
<pre> | |||
uname -r | |||
lsb_release -a | |||
</pre> | </pre> |
Latest revision as of 20:59, 20 November 2023
Update system
sudo apt update sudo apt upgrade sudo apt full-upgrade sudo apt --purge autoremove
Reboot to reload any kernels
sudo shutdown -r 0
Update sources to buster w/ sed search and replace:
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/*
Update sources to bookworm w/ sed search and replace:
sudo sed -i 's/buster/bookworm/g' /etc/apt/sources.list sudo sed -i 's/buster/bookworm/g' /etc/apt/sources.list.d/*
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*
Verify
cat /etc/apt/sources.list
Update and upgrade
sudo apt-get update sudo apt-get upgrade sudo apt full-upgrade
Reboot once more
sudo shutdown -r 0
Verify
uname -r lsb_release -a