Ubuntu Server Wifi connection fails after each sudo apt upgrade

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

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

Upgrade to 17.10, now no network: Cable or Wireless

Updated October 22, 2017 11:02 AM

Upgrade from 14.10 to 15.04

Updated July 13, 2015 13:01 PM

Wifi problem after upgrade 14.10 to 15.04

Updated September 19, 2015 18:01 PM

Wifi unable to connect after upgrade to 17.04

Updated April 15, 2017 22:02 PM