Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Ubuntu Server LTS: Difference between revisions

From World Wide Wiegert Wiki - WWWW
No edit summary
No edit summary
Line 4: Line 4:


* Create an empty file to prevent the service from starting
* Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled
sudo touch /etc/cloud/cloud-init.disabled


=== Uninstall ===
=== Uninstall ===


* Disable all services (uncheck everything except "None"):
* Disable all services (uncheck everything except "None"):
sudo dpkg-reconfigure cloud-init
sudo dpkg-reconfigure cloud-init
* Uninstall the package and delete the folders
* Uninstall the package and delete the folders
sudo dpkg-reconfigure cloud-init
sudo dpkg-reconfigure cloud-init
sudo apt-get purge cloud-init
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
* Restart the computer
* Restart the computer
sudo reboot
sudo reboot


=== Sources ===
=== Sources ===

Revision as of 21:38, 5 July 2022

How to disable cloud-init in Ubuntu

===  Prevent start ===
  • Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled

Uninstall

  • Disable all services (uncheck everything except "None"):
sudo dpkg-reconfigure cloud-init
  • Uninstall the package and delete the folders
sudo dpkg-reconfigure cloud-init
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
  • Restart the computer
sudo reboot

Sources

Contents