Ubuntu Upgrade: Difference between revisions
Jump to navigation
Jump to search
(60 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
|} | |} | ||
==Kernel | ==Upgrade » 24.04 » Kernel » 6.5 » 6.8 == | ||
{| | {| | ||
|valign="top"| | |valign="top"| | ||
Line 65: | Line 65: | ||
|valign="top"| | |valign="top"| | ||
<syntaxhighlight lang="bash"> | |||
sudo apt install --reinstall nvidia-driver-535 | |||
sudo apt install linux-headers-$(uname -r) | |||
dkms status | |||
nvidia-smi | |||
</syntaxhighlight> | |||
|valign="top"| | |valign="top"| | ||
|} | |} | ||
==Upgrade » 24.04 » Kernel » 6.8 » 6.9 == | |||
<syntaxhighlight lang="bash"> | |||
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 | |||
</syntaxhighlight> | |||
==Upgrade » 24.04 » Kernel » 6.9 » 6.10 == | |||
<syntaxhighlight lang="bash"> | |||
mkdir -p /tmp/kernel-playground/kernel-v6.10.10 | |||
cd /tmp/kernel-playground/kernel-v6.10.10 | |||
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-headers-6.10.10-061010_6.10.10-061010.202409121037_all.deb | |||
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-headers-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb | |||
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-modules-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb | |||
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-image-unsigned-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb | |||
sudo dpkg -i *.deb | |||
sudo reboot | |||
</syntaxhighlight> | |||
==Upgrade » 24.04 » Kernel » 6.8 » Hold == | |||
<syntaxhighlight lang="bash"> | |||
sudo apt-mark hold 6.8.0-45-generic | |||
sudo apt-mark hold $(uname -r) | |||
sudo apt-mark unhold $(uname -r) | |||
sudo apt-mark showhold | |||
</syntaxhighlight> | |||
==Install Packages From ISO== | ==Install Packages From ISO== | ||
Line 112: | Line 150: | ||
==Install Python3.10== | ==Install Python3.10== | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
Line 148: | Line 185: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
pyenv virtualenv 3.10.14 Powerline | |||
pyenv activate Powerline | |||
pip install wheel | pip install wheel | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | |||
python -m pip install --upgrade pip | |||
pip install powerline-status | |||
pyenv deactivate | |||
</syntaxhighlight> | |||
|} | |||
==Dummy Sound Issue== | |||
<syntaxhighlight lang="bash"> | |||
sudo apt-get install -y pulseaudio | |||
</syntaxhighlight> | |||
==Unknown Display Issue== | |||
<syntaxhighlight lang="bash"> | |||
cat << CFG | sudo tee /etc/X11/xorg.conf.d/20-ignore.conf >/dev/null | |||
Section "Monitor" | |||
Identifier "None-1-1" | |||
Option "Ignore" "true" | |||
EndSection | |||
CFG | |||
ls -lah /etc/X11/xorg.conf.d/ | |||
cat /etc/X11/xorg.conf.d/20-ignore.conf | |||
</syntaxhighlight> | |||
==Playground== | |||
{| | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
uname -r | |||
dpkg -l | grep nvidia | |||
dpkg -l | grep linux-image | |||
sudo apt-get --purge autoremove | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
cat <<-'EXE'|sudo bash | |||
apt-get purge -y linux-image-unsigned-6.9.3-060903-generic | |||
apt-get purge -y linux-headers-6.9.3-060903-generic | |||
EXE | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
systemd-analyze blame | |||
systemd-analyze | |||
lshw -short | |||
lshw | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
apt list --installed|grep linux-image | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
sudo apt-get remove -y linux-image-unsigned-6.9.3-060903-generic | |||
</syntaxhighlight> | |||
| valign="top" | | |||
dpkg -l | grep "gnome-shell-extension" | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" colspan="3" | | |||
<syntaxhighlight lang="bash"> | |||
# if link exists & unbroken | |||
if [[ -L ${HOME}/.config/chorke/dev ]]&&\ | |||
[[ -e ${HOME}/.config/chorke/dev ]];then echo "link exists & unbroken";fi | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" colspan="3" | | |||
<syntaxhighlight lang="bash"> | |||
#if link absent or broken | |||
if [[ ! -L ${HOME}/.config/chorke/dev ]]||\ | |||
[[ ! -e ${HOME}/.config/chorke/dev ]];then echo "link absent or broken"; fi | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
systemctl list-dependencies graphical.target | |||
cat /proc/acpi/wakeup | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
sudo apt list --installed|grep desktop-icons | |||
sudo dpkg-query -l|grep desktop-icons | |||
</syntaxhighlight> | |||
| valign="top" |<syntaxhighlight lang="bash"> | |||
sudo apt install gnome-shell-extension-manager | |||
apt info gnome-shell-extension-manager -a | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
cat <<-'EXE'|sudo bash | |||
umount /var/snap/firefox/common/host-hunspell | |||
snap remove firefox | |||
EXE | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
cat <<-'EXE'|sudo bash | |||
snap disable remmina | |||
snap remove --purge remmina | |||
EXE | |||
</syntaxhighlight> | |||
| valign="top" | | |||
systemctl list-dependencies --type=service --state=running | |||
systemctl list-dependencies --type=service --state=active | |||
systemctl list-dependencies docker.service | |||
systemctl list-dependencies --all | |||
|} | |} | ||
Line 167: | Line 341: | ||
* [https://askubuntu.com/questions/1479558/ Ubuntu » Right Top Corner Unclickable] | * [https://askubuntu.com/questions/1479558/ Ubuntu » Right Top Corner Unclickable] | ||
* [https://askubuntu.com/questions/67764/ Ubuntu » Remove & Reinstall GNOME] | * [https://askubuntu.com/questions/67764/ Ubuntu » Remove & Reinstall GNOME] | ||
* [https:// | * [https://kernel.ubuntu.com/mainline/v6.10.10/ Ubuntu » Kernel » 6.10.10] | ||
* [https://kernel.ubuntu.com/mainline/v6.9.3/ Ubuntu » Kernel » 6.9.3] | * [https://kernel.ubuntu.com/mainline/v6.9.3/ Ubuntu » Kernel » 6.9.3] | ||
* [https://kernel.ubuntu.com/mainline/v6.9/ Ubuntu » Kernel » 6.9] | * [https://kernel.ubuntu.com/mainline/v6.9/ Ubuntu » Kernel » 6.9] | ||
Line 174: | Line 348: | ||
* [https://askubuntu.com/questions/1512331/ Ubuntu » Upgrade » 24.04 » Remain Old Kernel of 22.04] | * [https://askubuntu.com/questions/1512331/ Ubuntu » Upgrade » 24.04 » Remain Old Kernel of 22.04] | ||
* [https://packages.ubuntu.com/noble/amd64/network-manager-gnome/download Ubuntu » Packages » noble » <code>network-manager-gnome</code>] | * [https://packages.ubuntu.com/noble/amd64/network-manager-gnome/download Ubuntu » Packages » noble » <code>network-manager-gnome</code>] | ||
* [https://forums.developer.nvidia.com/t/gpu-driver-doesnt-work-properly-on-ubuntu-24-04-lts/294208 Ubuntu » Nvidia GPU driver doesn't work properly] | * [https://askubuntu.com/questions/1512141/ Ubuntu » 24.04 » <code>if-up.d</code> files does not have effect] | ||
* [https://forums.developer.nvidia.com/t/gpu-driver-doesnt-work-properly-on-ubuntu-24-04-lts/294208 Ubuntu » Nvidia » GPU driver doesn't work properly] | |||
* [https://unix.stackexchange.com/questions/515821/ Ubuntu » 18.04 » Unable To Wake From Suspend] | |||
* [https://ubuntuforums.org/showthread.php?t=2490365 Ubuntu » 22.04 » Doesn't Wake From Sleep] | |||
* [https://askubuntu.com/questions/1032633/ Ubuntu » Awake-up Screen Remains Black] | |||
* [https://askubuntu.com/questions/1443757/ Ubuntu » Nvidia » Driver doesn't working] | |||
* [https://askubuntu.com/questions/178712/ Ubuntu » Swap » Increase Space] | |||
* [https://help.ubuntu.com/community/SwapFaq Ubuntu » Swap » FAQ] | |||
| valign="top" | | |||
* [https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012 Ubuntu » <code>desktop-icons-ng</code> » History of versions] | |||
* [https://medium.com/@tenebreoscure/ubuntu-24-04-desktop-icons-not-working-1c0d3cb46d67 Ubuntu » 24.04 » Desktop icons not working] | |||
* [https://docs.rackspace.com/docs/copy-files-with-scp-and-rsync Ubuntu » Copy files with SCP & Rsync] | |||
* [https://creodias.docs.cloudferro.com/en/latest/networking/How-To-Upload-And-Synchronise-Files-With-SCP-RSYNC-Creodias.html Ubuntu » Upload & Synchronize Files] | |||
* [https://stackoverflow.com/questions/5767062/ Ubuntu » Check if a Symlink Exists] | |||
* [https://askubuntu.com/questions/10290/ Ubuntu » Improve Boot Speed] | |||
* [[Disk Performance|Ubuntu » Disk Performance]] | |||
* [[Free Up RAM|Ubuntu » Free Up RAM]] | |||
* [[Swap Space|Ubuntu » Swap Space]] | |||
* [[Linux Kernel|Ubuntu » Kernel]] | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [https://askubuntu.com/questions/938494/ Ubuntu » <code>apt-mark hold</code> » Prevent Kernel Upgrade] | |||
* [https://askubuntu.com/questions/164587/ Ubuntu » <code>apt-mark unhold</code> » Release for Upgrade] | |||
* [https://www.reddit.com/r/linuxmint/comments/1eih3rj/any_idea_how_to_remove_an_unknown_display_which/ Ubuntu » Reddit » Remove an Unknown Display] | |||
* [https://forums.linuxmint.com/viewtopic.php?t=425531 Ubuntu » Linux Mint » Phantom Display Issue] | |||
* [https://community.frame.work/t/function-fn-keys-sticking-fix-for-linux/10156 Ubuntu » Function (Fn) Keys Sticking + Fix] | |||
* [https://unix.stackexchange.com/questions/517872/ Ubuntu » <code>systemctl</code> » List All Possible] | |||
* [https://kernelnewbies.org/Linux_6.10 Kernel » Hacking » Linux » 6.10] | |||
* [https://dgpu-docs.intel.com/driver/client/overview.html Ubuntu » GPU » Intel Driver] | |||
* [https://sypalo.com/how-to-upgrade-ubuntu Ubuntu » Upgrade to 24.04] | |||
* [https://xanmod.org/ Ubuntu » Kernel » XanMod] | |||
| valign="top" | | |||
* [https://www.howtogeek.com/740797/how-to-roll-back-the-kernel-in-linux/ Ubuntu » Roll Back the Kernel] | |||
| valign="top" | | | valign="top" | | ||
Line 185: | Line 397: | ||
* [[Alpine/Morefine]] | * [[Alpine/Morefine]] | ||
* [[Ruby on Rails]] | * [[Ruby on Rails]] | ||
* [[TensorFlow]] | |||
* [[Homebrew]] | * [[Homebrew]] | ||
* [[Linuxbrew]] | * [[Linuxbrew]] | ||
* [[PyEnv]] | * [[PyEnv]] | ||
* [[TMux]] | * [[TMux]] | ||
* [[7Zip]] | |||
* [[Zip]] | |||
* [[Tar]] | |||
| valign="top" | | | valign="top" | | ||
* [https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html Linux » POSIX » Shell » Environment Variables] | |||
* [https://github.com/linux-surface/linux-surface Linux » Kernel » Microsoft Surface Devices] | |||
* [https://man.archlinux.org/man/NetworkManager-dispatcher.8.en ArchLinux » Network Manager Dispatcher] | |||
* [https://superuser.com/questions/204635/ Linux » Disk Encryption Slow Down] | |||
* [https://www.reddit.com/r/linuxaudio/comments/1d2i1rg/problem_with_sound_in_ubuntu_2404/ Ubuntu » 24.04 » Sound Controller] | |||
* [https://serverfault.com/questions/283129/ SSH Connection Hang Forever] | |||
* [https://github.com/pymumu/jail-shell Linux » Security » Jail Shell] | |||
* [https://wiki.archlinux.org/title/Installation_guide ArchLinux » Installation] | |||
* [[CIDR]] | |||
| valign="top" | | | valign="top" | | ||
|} | |} |
Latest revision as of 16:53, 11 November 2024
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
Upgrade » 24.04 » Kernel » 6.9 » 6.10
mkdir -p /tmp/kernel-playground/kernel-v6.10.10
cd /tmp/kernel-playground/kernel-v6.10.10
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-headers-6.10.10-061010_6.10.10-061010.202409121037_all.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-headers-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-modules-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-image-unsigned-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb
sudo dpkg -i *.deb
sudo reboot
Upgrade » 24.04 » Kernel » 6.8 » Hold
sudo apt-mark hold 6.8.0-45-generic
sudo apt-mark hold $(uname -r)
sudo apt-mark unhold $(uname -r)
sudo apt-mark showhold
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
Unknown Display Issue
cat << CFG | sudo tee /etc/X11/xorg.conf.d/20-ignore.conf >/dev/null
Section "Monitor"
Identifier "None-1-1"
Option "Ignore" "true"
EndSection
CFG
ls -lah /etc/X11/xorg.conf.d/
cat /etc/X11/xorg.conf.d/20-ignore.conf
Playground
uname -r
dpkg -l | grep nvidia
dpkg -l | grep linux-image
sudo apt-get --purge autoremove
|
cat <<-'EXE'|sudo bash
apt-get purge -y linux-image-unsigned-6.9.3-060903-generic
apt-get purge -y linux-headers-6.9.3-060903-generic
EXE
|
systemd-analyze blame
systemd-analyze
lshw -short
lshw
|
| ||
apt list --installed|grep linux-image
|
sudo apt-get remove -y linux-image-unsigned-6.9.3-060903-generic
|
dpkg -l | grep "gnome-shell-extension" |
| ||
# if link exists & unbroken
if [[ -L ${HOME}/.config/chorke/dev ]]&&\
[[ -e ${HOME}/.config/chorke/dev ]];then echo "link exists & unbroken";fi
| ||
| ||
#if link absent or broken
if [[ ! -L ${HOME}/.config/chorke/dev ]]||\
[[ ! -e ${HOME}/.config/chorke/dev ]];then echo "link absent or broken"; fi
| ||
| ||
systemctl list-dependencies graphical.target
cat /proc/acpi/wakeup
|
sudo apt list --installed|grep desktop-icons
sudo dpkg-query -l|grep desktop-icons
|
sudo apt install gnome-shell-extension-manager
apt info gnome-shell-extension-manager -a
|
| ||
cat <<-'EXE'|sudo bash
umount /var/snap/firefox/common/host-hunspell
snap remove firefox
EXE
|
cat <<-'EXE'|sudo bash
snap disable remmina
snap remove --purge remmina
EXE
|
systemctl list-dependencies --type=service --state=running systemctl list-dependencies --type=service --state=active systemctl list-dependencies docker.service systemctl list-dependencies --all |