Cloud-Init auf Ubuntu Server mag ich nicht haben - Einfach weg damit!
Ubuntu 20.04 lts - cloud-init einfach abschalten - Benötige ich immer wieder.
Nach der Installation laufen meine Server ohne "cloud-init".
Ubuntu "cloud-init" abschalten:
sudo touch /etc/cloud/cloud-init.disabled
Dienste abschalten:
sudo dpkg-reconfigure cloud-init
Deinstallation und löschen:
sudo dpkg-reconfigure cloud-init
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
Server NEU starten:
sudo reboot
Hinweis:
Dieser Vorgang könnte Ihren Rechner unbrauchbar machen!
log:
Last login: Thu Mar 3 13:14:22 2022 from ganz weit weg
nascul@dragonland:~$ sudo touch /etc/cloud/cloud-init.disabled
nascul@dragonland:~$ sudo dpkg-reconfigure cloud-init
nascul@dragonland:~$ sudo apt-get purge cloud-init
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
eatmydata libeatmydata1 python3-importlib-metadata python3-jinja2 python3-json-pointer
python3-jsonpatch python3-jsonschema python3-markupsafe python3-more-itertools
python3-pyrsistent python3-zipp
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
cloud-init*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2476 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 72240 files and directories currently installed.)
Removing cloud-init (21.4-0ubuntu1~20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
(Reading database ... 71903 files and directories currently installed.)
Purging configuration files for cloud-init (21.4-0ubuntu1~20.04.1) ...
dpkg: warning: while removing cloud-init, directory '/etc/cloud/cloud.cfg.d' not empty so not removed
Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ...
nascul@dragonland:~$ sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
nascul@dragonland:~$ sudo reboot
Connection from ganz weit weg closed by remote host.
Connection from ganz weit weg closed.
nascul@home:~$
Ubuntu 20.04 lts - cloud-init einfach abschalten - Benötige ich immer wieder.
Nach der Installation laufen meine Server ohne "cloud-init".
Ubuntu "cloud-init" abschalten:
sudo touch /etc/cloud/cloud-init.disabled
Dienste abschalten:
sudo dpkg-reconfigure cloud-init
Deinstallation und löschen:
sudo dpkg-reconfigure cloud-init
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
Server NEU starten:
sudo reboot
Hinweis:
Dieser Vorgang könnte Ihren Rechner unbrauchbar machen!
log:
Last login: Thu Mar 3 13:14:22 2022 from ganz weit weg
nascul@dragonland:~$ sudo touch /etc/cloud/cloud-init.disabled
nascul@dragonland:~$ sudo dpkg-reconfigure cloud-init
nascul@dragonland:~$ sudo apt-get purge cloud-init
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
eatmydata libeatmydata1 python3-importlib-metadata python3-jinja2 python3-json-pointer
python3-jsonpatch python3-jsonschema python3-markupsafe python3-more-itertools
python3-pyrsistent python3-zipp
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
cloud-init*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2476 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 72240 files and directories currently installed.)
Removing cloud-init (21.4-0ubuntu1~20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
(Reading database ... 71903 files and directories currently installed.)
Purging configuration files for cloud-init (21.4-0ubuntu1~20.04.1) ...
dpkg: warning: while removing cloud-init, directory '/etc/cloud/cloud.cfg.d' not empty so not removed
Processing triggers for rsyslog (8.2001.0-1ubuntu1.1) ...
nascul@dragonland:~$ sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
nascul@dragonland:~$ sudo reboot
Connection from ganz weit weg closed by remote host.
Connection from ganz weit weg closed.
nascul@home:~$
All done!