Upgrade to Jammy (22.04)

This commit is contained in:
Mylloon 2022-04-22 14:11:16 +02:00
parent 94e6b35dc4
commit f9edb359e7
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

7
wsl.sh
View file

@ -3,13 +3,16 @@
if grep "WSL" /proc/version > /dev/null;
then
# === Update Ubuntu ==
sudo sed -i "s/focal/impish/g" /etc/apt/sources.list
sudo sed -i "s/focal/impish/g" /etc/apt/sources.list.d/*.list
sudo sed -i "s/focal/jammy/g" /etc/apt/sources.list
sudo sed -i "s/focal/jammy/g" /etc/apt/sources.list.d/*.list
sudo apt update
sudo apt dist-upgrade -y
sudo apt full-upgrade -y
# === Remove SU password ==
sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
sudo sed -i "44s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
sudo sed -i "50s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
# === Requirements ==
which git &> /dev/null || sudo apt install git -y # install git if not already installed