WiFi keeps disconnecting – Ubuntu Server 20.04

WiFi keeps disconnecting – Ubuntu Server 20.04

Hi everyone!

I’m building a NextCloud server on an old laptop for my daughter, (you would be amazed how many pictures and videos a 14 year old can take!), and I’m having problems with the WiFi. Here are the steps that I’m taking to get the WiFI working:

sudo apt install wireless-tools wpasupplicant -y
wpa_passphrase XXXXXXX XXXXXXXX | sudo tee /etc/wpa_supplicant.conf
sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp1s0
sudo dhclient wlp1s0
ip addr show wlp1s0
sudo cp /lib/systemd/system/wpa_supplicant.service /etc/systemd/system/wpa_supplicant.service
sudo nano /etc/systemd/system/wpa_supplicant.service

I comment out “#ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant” and Alias=dbus-fi.w1.wpa_supplicant1.service and I replace it with:

ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i wlp1s0

sudo systemctl enable wpa_supplicant.service

sudo nano /etc/systemd/system/dhclient.service


Description= DHCP Client

ExecStart=/sbin/dhclient wlp1s0 -v
ExecStop=/sbin/dhclient wlp1s0 -r



sudo systemctl enable dhclient.service

sudo nano /etc/dhcp/dhclient.conf


interface “wlp1s0” {
send dhcp-requested-address 192.168.XX.XX;


sudo systemctl restart dhclient

sudo nano /etc/netplan/00-installer-config.yaml


dhcp4: true
version: 2
addresses: [192.168.XX.XX/24]
gateway4: 192.168.XX.XX
addresses: [192.168.XX.XXX,,]
password: XXXXXXXXXX
dhcp4: false


(The forums system keeps removing the indentations for the .yaml, but the configuration that I have is a properly configured .yaml)

sudo netplan –debug generate
sudo netplan apply
sudo reboot

After I reboot, I can connect to the WiFi connection via ssh, however, the NIC keeps dropping the connection. At first I thought that maybe I had a bad NIC, but I have tried Broadcom, Atheros and Intel NIC’s with the same results.

Does anyone have any suggestions on what the problem is?




Previous [ubuntu_mate] ALT key in Photoshop CS2 not working
Next Install Adobe Reader

About author

You might also like

Ubuntu Dsicussions 0 Comments

Black screen after login after 18.04 > 20.04 upgrade (on virtualbox)

Hi, I was happily running Ubuntu 18.04 (64 bit) in a VirtualBox VM (Windows 10 being the host), and today I decided to upgrade to 20.04. So after an upgrade

Ubuntu Dsicussions 0 Comments

[xubuntu] automagic file renaming?

Just a quick and curious query. I have two files, which were named (unconventionally) the following: Code: a’b_c.jpg x_&_y.jpg I had used them, successfully (along with encodeURIComponent), to display images

Ubuntu Dsicussions 0 Comments

Swolgenix XL Male Enhancement Reviews: Cost, Is It Work?

Exactlywhen you’re endeavoring to get achieves the room, the SwolgenixXL Ingredientsare here to help. Since, it’s the typical strategy to construct yourcontinuance, persistence, and imperativeness. Additionally, it givesyou the size


No Comments Yet!

You can be first to comment this post!

Leave a Reply