Connected to the wireless but no internet access

I'm using Ubuntu 16.04 LTS 64-bit

On Thursday the 16th March 2017 Ubuntu software up-grader proposed to me a "Partial upgrade"

I pressed OK and it executed this partial upgrade

After the upgrade I had no Ethernet connection

After a lot of research I found that it could be driver conflicts so I downloaded my Ethernet drivers again

That solved the issue, but I then discovered I had no wireless access and connection

I was sure it was something related to the drivers and I did some research I found it could be something related to compact

So I downloaded compact and compiled and installed it

Now I see the wireless card and I can connect to wireless, but I have no Internet connection.

I did a lot of research and I downloaded my wireless card drivers again.

Note that I'm using my Android phone for tethering as wifi spot (as I did in the past and with no problems).

I can ping 8.8.8.8 but I can't surf the net

More exactly this is my ping 8.8.8.8 result:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=40 time=69.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=40 time=66.7 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=40 time=72.2 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=40 time=69.3 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=40 time=67.8 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=40 time=67.6 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 66.755/68.888/72.227/1.776 ms

mtr 8.8.8.8 output mtr 8.8.8.8 output

ifconfig output

eth0      Link encap:Ethernet  HWaddr 8c:73:6e:bb:e5:2d  
          inet addr:192.168.11.114  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::8e73:6eff:febb:e52d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:72202 errors:0 dropped:5 overruns:0 frame:0
          TX packets:40210 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27221264 (27.2 MB)  TX bytes:5133806 (5.1 MB)
          Interrupt:26 Base address:0x6000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4541 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4541 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:581657 (581.6 KB)  TX bytes:581657 (581.6 KB)

wlan0     Link encap:Ethernet  HWaddr fc:f8:ae:d3:a5:09  
          inet addr:192.168.43.107  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::fef8:aeff:fed3:a509/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2252 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3706 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:342087 (342.0 KB)  TX bytes:661461 (661.4 KB)

lshw -class network output:

  *-network               
       description: Wireless interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 73
       serial: fc:f8:ae:d3:a5:09
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-67-generic firmware=17.352738.0 latency=0 link=no multicast=yes wireless=IEEE 802.11bg
       resources: irq:28 memory:f0600000-f0601fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 07
       serial: 8c:73:6e:bb:e5:2d
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.044.02-NAPI duplex=full ip=192.168.11.114 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:26 ioport:3000(size=256) memory:f0500000-f0500fff memory:f0400000-f0403fff
  1. How I can "delete" the partial upgrade done on Thursday. I'm scared that this partial upgrade will cause other problems I haven't recognized yet.
  2. How I can solve all my connection issues?

UPDATE

Effectively it seems something related to the proxy

env | grep -i proxy

http_proxy=http://username:[email protected]:3128/
UBUNTU_MENUPROXY=1
https_proxy=https://username:[email protected]:3128/

$ curl www.google.com
curl: (5) Could not resolve proxy: proxy.eng.it

But I unselected the proxy as showed in this image Proxy unselection

And this issue never happened before

I'll try to investigate

UPDATE 2

In the following image there are the results of traceroute and dig commands

Traceroute and dig results

UPDATE 3

In the following image you can see the result of cat /etc/resolv.conf and ps aux | grep -i dns

Cat resolv.conf and ps results


Solution 1:

We have no idea where the extra subnet numbers come from. Let's try to restore all settings to default. First:

gksudo gedit /etc/NetworkManager/NetworkManager.conf 

Use nano or kate or leafpad if you don't have the text editor gedit. Make sure that these lines read as I've indicated:

dns=dnsmasq

managed=false

If either are not as I state, change them. All the remainder of the file should remain untouched. Proofread carefully, save and close the text editor.

Also do:

gksudo gedit /etc/resolv.conf

Restore the file to read:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

Proofread carefully, save and close the text editor. Next, click the Network Manager icon and select 'Edit Connections.' Select your ethernet connection and go to IPv4 settings. Set the Method to Automatic (DHCP). If there are any present, remove any other entries such as DNS nameservers.

Do the same process with wireless. Save and close the edit window. Here is an example of the correct configuration:

enter image description here

You do not want both ethernet and wireless connected at the same time. Detach the ethernet cable and reboot. Do you connect? Can you reach the internet?

ping -c3 8.8.8.8
ping -c3 www.ubuntu.com