Ubuntu Server Wifi connection fails after each sudo apt upgrade

by PonJar   Last Updated September 11, 2019 17:02 PM

I have an issue with my Ubuntu 18.04.3 server. The server connects to my home network via wifi and has a static IP address. It works perfectly most of the time but I repeatedly experience the following:

  1. I ssh into the machine and find there are a number of upgrades available
  2. I install the upgrades
  3. I reboot
  4. I can no longer reach the machine by ssh
  5. I go to the machine and log in. No IP address is displayed on the welcome screen
  6. I reboot. All is well again.

I have gone through the logs for a successful and unsuccessful boot (success in terms of making a connection). The logs are broadly similar but I find a successful boot ends with:

wpa_supplicant[760]: wlp1s0: WPA: Group rekeying completed with 40:0d:10:ad:70:2f [GTK=TKIP]

An unsuccessful boot appears to briefly establish a connection but then has:

wpa_supplicant[763]: nl80211: deinit ifname=p2p-dev-wlp1s0 disabled_11b_rates=0
systemd[1]: Stopping WPA supplicant for netplan wlp1s0...

There is no explicit error, just messages about ending the connection. Does anyone have any ideas about why this might happen? Would it be possible to have a script run shortly after a reboot to see if a connection has been established and if not try to get one?

Related Questions

Updated October 22, 2017 11:02 AM

Updated July 13, 2015 13:01 PM

Updated September 19, 2015 18:01 PM

Updated April 15, 2017 22:02 PM

Updated February 15, 2019 23:02 PM