Skip to content

Instantly share code, notes, and snippets.

@MichelBaie
Last active September 26, 2023 16:32
Show Gist options
  • Save MichelBaie/6abe40bbc72ad4ff9635ced63bc09d41 to your computer and use it in GitHub Desktop.
Save MichelBaie/6abe40bbc72ad4ff9635ced63bc09d41 to your computer and use it in GitHub Desktop.
Repair HMS systemd networking network
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