Since I have upgraded to the latest version of Ubuntu 18.04 LTS version, I started having an annoying issue with my internet connection over any wireless network I try to connect to. What is happening is if my laptop goes on sleep mode or if I have to leave home and goes to university or somewhere else, when I try to connect to a WiFi network, it doesn't work right away. I might still be connected to wireless network but I have no internet connectivity. This is happening on existing WiFi points I used in the past and on new ones since the upgrade. So what I have to do constantly and multiple times is to execute the dhcp client manually to renew the IP address. looks like it doesn't do that automatically. I have to enter through the terminal the command couple of time before it starts working again.
sudo dhclient -v wlan0
And what I noticed is that, I receive some errors on the first time I run the command :
/var/lib/dhcp/dhclient.leases line 40: numeric minute expected.
renew 1 2018/10/22 08:3lease
^
/var/lib/dhcp/dhclient.leases line 40: semicolon expected.
renew 1 2018/10/22 08:3lease {
^
Corrupt lease file - possible data loss!
Corrupt lease file - possible data loss!
Corrupt lease file - possible data loss!
Corrupt lease file - possible data loss!
if it is unsuccessful after doing that, I have to reboot the computer and redo it again until I get a connectivity. I even tried to restart the networking interface through
/etc/init.d/networking restart
and it doesn't work ! Is there any permanent solution that I can implement? or is it a bug that came along with the upgrade that is known?