Skip to content


Change Hostname 20.04

sudo hostnamectl set-hostname <hostname>

Perform a Distrubution Upgrade

sudo do-release-upgrade -d

Screen on WSL

mkdir ~/.screen && chmod 700 ~/.screen
export SCREENDIR=$HOME/.screen

Remove Snap

  sudo umount /var/snap
  sudo apt purge snapd
  sudo rm -rf ~/snap /snap /var/snap /var/lib/snapd

An upgrade from 'hirsute' to 'jammy' is not supported with this tool

Reading cache

Checking package manager

Can not upgrade 

An upgrade from 'hirsute' to 'jammy' is not supported with this tool.
echo "Updating"
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
echo "Bypass check"
sudo sed -i 's/continue/pass/g' /usr/lib/python3/dist-packages/UpdateManager/Core/
echo "Upgrade distro"
sudo do-release-upgrade
chmod +x && ./

Ubuntu – apt-get update fails “The repository no longer has a Release file”

sudo apt update
Err:6 eoan Release
404 Not Found [IP: 80]
# backup your sources file
cp /etc/apt/sources.list /etc/apt/sources.list.bak 

# replace the links with the archive address
sudo sed -i -re 's/([a-z]{2}.)?|' /etc/apt/sources.list

# run update again
sudo apt update && sudo apt dist-upgrade

Auto Retart Daemons during Update

sudo sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf