It looks like you are unable to connect to GitHub as well. Are you having network issues? Is this the first time installation? Has it worked before? Depending upon your answer, I may refer you to another post dealing with Pi and HTTPS issues.
Known problem on Pi and Ubuntu as well as Raspbian. I found people with similar issues, not PhantomBot, but also connecting to HTTPS sites, with that hardware and OS combination.
You might need to follow this:
Beyond that, I can really only personally support the OS that I have installed on my Pi, which isn’t Ubuntu. This jist is…
One more google recommendation is that Pi does not have the up to date NSS (security) library for the latest version of OpenJDK 8. I did notice my version of Debian uses Open JDK 1.8.0_40, and you say you are at the latest version. [Version 40 is ancient by the way]
I was having one more error with certificates for some websites, the recommendation was to go to the Oracle version of the JDK. I did that and it works fine now. [Which is the suggested fix]
You could try a quick fix, but you might need to follow the directions from DigitalOcean to setup the Oracle Repository (I didn’t need to):
As root I installed:
apt-get install oracle-java8-jdk
update-alternatives --config java
sudo update-ca-certificates -f
If you do not have sudo setup, then login as root and:
That indicates that you cannot get the configured nameservers. This is either due to that name server not being allowed by your ISP, Linux route, router misconfiguration, or any other number of things. Unfortunately, I cannot really troubleshoot from here. You could try other DNS servers and see if they work. Those are the Google DNS servers, I have seen them blocked by ISPs that some of co-workers use.
Otherwise, my best suggestion would be asking for support from the Ubuntu forums for your flavor of Linux.
After you reinstall, assuming you are plugged in via ethernet and using DHCP, let the device pick up everything automatically. Use nslookup to make sure you can find a few services/sites (www.twitch.tv, ports.ubuntu.com, api.github.com, irc-ws.chat.twitch.tv). If that works, then try to just start PhantomBot before patching Java. If you still do not have the ability to lookup hosts, check the DNS on your other devices, like your PC (I assume you have a PC you stream from) and use that DNS.