This is the current version I have
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
When I try
sudo do-release-upgrade
Error during update
A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
If I try
ThinkPad-T520:~$ sudo apt-get upgrade
[sudo] password for usernameXYZ:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-ThinkPad-T520:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial
I don't think it is a network problem but perhaps a procedural one.
To upgrade from the command line you need to follow these steps:
Open up a terminal window Ctrl Alt t
Issue the command
sudo apt-get upgrade
Enter your user password
Look over the list of available updates and decide if you want to go through with the entire upgrade
To accept all updates click the y key and hit Enter.
Other than that there is a new procedure too... acknowledgements to itsfoss
Possibly you need to update your 16.04 to the latest state first before doing the upgrade to 18.04, try.