1

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?

0

It seems your file /var/lib/dhcp/dhclient.leases is corrupt. You could look at line 40 mentioned in the error message.

There should be no important information in that file, so you could just clear that file (or first make a copy the content).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.