Use the reccomand method to update WSL

This commit is contained in:
Mylloon 2021-12-28 17:26:06 +01:00
parent 18cce1e890
commit ad885c8502
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -108,14 +108,24 @@ then
echo -e "\nChannel update moved from \"LTS\" to \"normal\"! 🎉" echo -e "\nChannel update moved from \"LTS\" to \"normal\"! 🎉"
# Remove snap for WSL because it block the 21.10 update (https://github.com/microsoft/WSL/issues/6942#issuecomment-879904997) # Remove snap for WSL because it block the 21.10 update (https://github.com/microsoft/WSL/issues/6942#issuecomment-879904997)
sudo apt autoremove --purge snapd -y # sudo apt autoremove --purge snapd -y
echo -e "\nSnap daemon removed! 🎉" # echo -e "\nSnap daemon removed! 🎉"
# Alternative solution for the update (https://github.com/microsoft/WSL/issues/6942#issuecomment-901121849)
sudo sed -i 's/bionic/impish/g' /etc/apt/sources.list
sudo sed -i 's/bionic/impish/g' /etc/apt/sources.list.d/*.list
# Make the update
sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove
# Infos # Infos
echo -e "\n\nTake care, by default the fish configuration is set for Ubuntu, you may need to uncomment" echo -e "\n\nTake care, by default the fish configuration is set for Ubuntu, you may need to uncomment"
echo "some of the lines in $HOME/.config/fish/config.fish to enable custom network disks from Windows." echo "some of the lines in $HOME/.config/fish/config.fish to enable custom network disks from Windows."
echo -e "\nYou may need to update your distro to the latest version" # echo -e "\nYou may need to update your distro to the latest version"
echo "Check this tutorial : https://git.kennel.ml/Anri/cat/wiki/Tuto-installation-WSL#%C3%A9tape-3-mise-%C3%A0-jour-de-ubuntu" # echo "Check this tutorial : https://git.kennel.ml/Anri/cat/wiki/Tuto-installation-WSL#%C3%A9tape-3-mise-%C3%A0-jour-de-ubuntu"
fi fi
# Delete this repo # Delete this repo