ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

Ubuntu upgrade OS version

by Little Bear @23 ก.พ. 68 13:59 ( IP : 122...170 ) | Tags : Ubuntu

ตรวจสอบ OS version

cat /etc/os-release

ขั้นตอน 1: Update เวอร์ชั่นปัจจุบันของ Ubuntu

***

sudo apt update && apt upgrade -y

ขั้นตอน 2: เตรียมสำหรับการ upgrade:

***

sudo apt install update-manager-core

ขั้นตอน 3: Run the Upgrade:

***

sudo do-release-upgrade

***

ขั้นตอน 4: Post-Upgrade Cleanup:

***

sudo apt autoremove && apt clean

ขั้นตอน 5: ตรวจสอบผลการอัพเกรด: ***

cat /etc/os-release

***

หากเกิดความผิดพลาด สามารถเปลี่ยน sources แล้ว update

First, ensure that all the contents of /etc/apt/sources.list and /etc/apt/sources.list.d/ubuntu.sources contain the word noble instead of jammy. If it contains jammy, replace that with noble.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i 's/jammy/noble/g' /etc/apt/sources.list
sudo sed -i 's/jammy/noble/g' /etc/apt/sources.list.d/ubuntu.sources
sudo apt update
sudo apt full-upgrade

หลังจาก upgrade แล้ว start apache ไม่ได้ เนื่องจากมีการเปลี่ยน php version ให้สร้างลิงก์ไฟล์ของ apache config ใหม่

cd /etc/apache2/mods-enable
ln -s php8.1.conf ../mods-avaliable/php8.1.conf
ln -s php8.1.load ../mods-avaliable/php8.1.load

แล้ว restart apache

systemctl restart apache2

Upgrade MariaDB

apt upgrade mariadb-server
apt install mariadb-server