Upgrade to Jammy (22.04)
This commit is contained in:
parent
94e6b35dc4
commit
f9edb359e7
1 changed files with 5 additions and 2 deletions
7
wsl.sh
7
wsl.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue