Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4360  / 2 Years ago, tue, august 9, 2022, 2:12:07

I have tested removing cloud-init using this guide on Ubuntu Server 22.04 and Ubuntu Server 22.04 (minimized) installed with the default settings. Uninstalling cloud-init from full Ubuntu Server does not mark important packages for removal, but doing it from the minimized version did so. See the screenshot below. If I execute sudo apt autoremove after that, and restart the server, the Internet is no longer accessible and all Internet-related commands are not found.


Is that a bug? If not, can I remove cloud-init from the minimized version without destroying network access? I am not using cloud. I just wanted a bare-minimum Ubuntu desktop (I add XFCE to this).


enter image description here


More From » server

 Answers
0

I experienced the same.


On the second try I did it in this order without rebooting between the commands...


apt purge cloud-init


rm -rf /etc/cloud


apt purge unattended-upgrades


rm -rf /var/log/unattended-upgrades


apt autoremove


apt install netplan.io


apt install isc-dhcp-client


Then rebooted and network was still working with the values entered on installation.


And I would say, removing netplan.io with whatever as dependency should clearly be seen as a bug.


[#535] Thursday, August 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tialmes

Total Points: 14
Total Questions: 108
Total Answers: 102

Location: Oman
Member since Thu, Jun 16, 2022
2 Years ago
tialmes questions
Tue, Feb 7, 23, 19:21, 1 Year ago
Mon, Aug 23, 21, 16:53, 3 Years ago
Tue, May 10, 22, 18:28, 2 Years ago
;