Use the reccomand method to update WSL
This commit is contained in:
parent
18cce1e890
commit
ad885c8502
1 changed files with 14 additions and 4 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue