Recently I revived my old Thinkpad with Ubunto 18.04. It’s workind great. Actually EVERYTHING works… builtin Wifi, Bluetooth, Battery Management, Graphics, External Monitor… Everything. I love it.

However, as I went to my local Starbucks, and tried to login. It asked me for my credentials (email, name,…). It’s normal, and I’m used to it. But I could not connect, and I got the dreaded error. (It might have been the fact I used the same email address I had used before to login with my Macbook)

So I tried it at a different Starbucks, and this time I didn’t get the login screen, and just the Error screen. When trying to connect in a browser this is the url it redirects to and hangs:

https://aruba.odyssys.net/cgi-bin/login

Hmmm…

I tried deleting the Cache, Reinstalled Chrome, Reinstalled Firefox, even changing my MAC address… Nothing worked. After many hours of research, and trial and errors, I got it to work.

Solution:

Edit the Hosts by running
sudo nano /etc/hosts

Add the following line:
172.31.98.1 aruba.odyssys.net

Edit the resolv.conf by running
sudo nano /etc/resolv.conf

Add the following line:
nameserver 172.31.98.1

Source: https://askubuntu.com/questions/1023429/cant-connect-to-google-starbucks-wifi-on-ubuntu-17-10