Ubuntu Upgrade

From Chorke Wiki
Revision as of 18:00, 11 July 2024 by Shahed (talk | contribs)
Jump to navigation Jump to search
sudo apt update
sudo apt upgrade

Upgrade » 22.04 » 24.04

sudo sed -i 's|jammy|noble|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean 
sudo reboot
sudo apt install xorg gnome gnome-shell --no-install-recommends
sudo apt install --reinstall ubuntu-gnome-desktop
sudo reboot

Upgrade » 23.10 » 24.04

sudo sed -i 's|mantic|noble|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean 
sudo reboot
sudo apt install xorg gnome gnome-shell --no-install-recommends
sudo apt install --reinstall ubuntu-gnome-desktop
sudo reboot

Upgrade » 24.04 » Kernel » 6.5 » 6.8

sudo apt update
sudo apt full-upgrade
apt list linux-image-generic
sudo apt install linux-image-generic
sudo apt install --reinstall nvidia-driver-535
sudo apt install linux-headers-$(uname -r)
dkms status
nvidia-smi

Upgrade » 24.04 » Kernel » 6.8 » 6.9

mkdir -p /tmp/kernel-playground/kernel-v6.9.3
      cd /tmp/kernel-playground/kernel-v6.9.3
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-headers-6.9.3-060903_6.9.3-060903.202405300957_all.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-headers-6.9.3-060903-generic_6.9.3-060903.202405300957_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-modules-6.9.3-060903-generic_6.9.3-060903.202405300957_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-image-unsigned-6.9.3-060903-generic_6.9.3-060903.202405300957_amd64.deb
sudo dpkg -i *.deb
sudo reboot

Install Packages From ISO

mkdir -p ~/Documents/ubuntu-playground/
wget -cq http://th.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-resolved_255.4-1ubuntu8_amd64.deb -P ~/Documents/ubuntu-playground
wget -cq https://mirrors.gbnetwork.com/ubuntu-releases/24.04/ubuntu-24.04-desktop-amd64.iso -P ~/Documents/ubuntu-playground
sudo mkdir /mnt/iso/ && sudo mount -o loop,ro ~/Documents/ubuntu-playground/ubuntu-24.04-desktop-amd64.iso /mnt/iso

cat <<'APT' | sudo tee -a /etc/apt/sources.list >/dev/null

# install packages from iso file
deb file:///mnt/iso/ noble main restricted
APT
cd ~/Documents/ubuntu-playground/
sudo apt install ./network-manager-gnome_1.34.0-1ubuntu3_amd64.deb
sudo apt install ./systemd-resolved_255.4-1ubuntu8_amd64.deb
sudo apt install --reinstall ubuntu-gnome-desktop
sudo apt upgrade && sudo apt dist-upgrade

Detect Invisible Window

xwininfo
sudo apt install xdotool
xdotool windowclose 0x4003a2
systemctl status  anydesk.service
systemctl disable anydesk.service

Install Python3.10

pyenv install -list-all
pyenv install 3.10.14
pyenv rehash
pyenv global system 3.10.14
pyenv global 3.10.14
pyenv global
pyenv shell 3.10.14
pyenv shell system
python -V

pyenv shell 3.10.14
pyenv which python
pyenv which pip
pyenv virtualenv 3.10.14 Powerline
pyenv activate Powerline
pip install wheel
python -m pip install --upgrade pip
pip install powerline-status
pyenv deactivate

Dummy Sound Issue

sudo apt-get install -y pulseaudio

Playground

uname -r
dpkg -l | grep nvidia
dpkg -l | grep linux-image
sudo apt-get --purge autoremove
cat <<-'EXE'|sudo bash
apt-get purge linux-image-unsigned-6.9.3-060903-generic
apt-get purge linux-headers-6.9.3-060903-generic
EXE

systemd-analyze blame
systemd-analyze

References