Wifi connection broken after HA install

So I was setting up a machine just to run HA and halfway through the command to install the package the process hangs and my wifi dongle can’t establish connections anymore.

The only way to revive the wifi is to relaunch the terminal, remove the package and reboot.
Any ideas?

hass@HASS:~$ sudo dpkg -i homeassistant-supervised.deb
[sudo] password for hass:         
Selecting previously unselected package homeassistant-supervised.
(Reading database ... 317909 files and directories currently installed.)
Preparing to unpack homeassistant-supervised.deb ...
[warn] 
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn] 
[warn] ModemManager service is enabled. This might cause issue when using serial devices.
Adding 'diversion of /etc/NetworkManager/NetworkManager.conf to /etc/NetworkManager/NetworkManager.conf.real by homeassistant-supervised'
Adding 'diversion of /etc/NetworkManager/system-connections/default to /etc/NetworkManager/system-connections/default.real by homeassistant-supervised'
Adding 'diversion of /etc/docker/daemon.json to /etc/docker/daemon.json.real by homeassistant-supervised'
Adding 'diversion of /etc/network/interfaces to /etc/network/interfaces.real by homeassistant-supervised'
Unpacking homeassistant-supervised (1.1.1) ...
Setting up homeassistant-supervised (1.1.1) ...
[info] Restarting NetworkManager

System: Kernel: 5.4.0-105-generic x86_64 bits: 64 compiler: gcc v: 9.4.0
Desktop: Cinnamon 5.2.7 wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una
base: Ubuntu 20.04 focal

Hi! Did you get this sorted out? I have exactly the same issue…

Hi there,

Yes, it turned out to be something funny with my wifi dongle drivers and I had to do the following

sudo nano /etc/NetworkManager/conf.d/100-disable-wifi-mac-randomization.conf

and paste the following content inside:

[connection]
wifi.mac-address-randomization=1
[device]
wifi.scan-rand-mac-address=no