Last active
September 26, 2023 16:32
-
-
Save MichelBaie/6abe40bbc72ad4ff9635ced63bc09d41 to your computer and use it in GitHub Desktop.
Repair HMS systemd networking network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt full-upgrade -y | |
sudo apt install ifupdown net-tools resolvconf -y | |
sudo apt-get purge netplan.io --autoremove -y | |
sudo cloud-init clean | |
sudo cloud-init init | |
sudo systemctl unmask networking | |
sudo systemctl enable networking resolvconf | |
sudo systemctl stop systemd-networkd.socket systemd-networkd systemd-networkd-wait-online | |
sudo systemctl disable systemd-networkd.socket systemd-networkd systemd-networkd-wait-online | |
sudo systemctl mask systemd-networkd.socket systemd-networkd systemd-networkd-wait-online | |
sudo rm /etc/resolv.conf | |
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf | |
sudo systemctl start networking | |
sudo echo "Le VPS Redémarre" | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment