I just installed Ubuntu 15.10. I can connect to the internet in mozilla. However, the terminal and Ubuntu software center don't detect the internet connection. What can I do?
1 Answer
Since you are connecting to a proxy, you need to do the following:
Create the following file : /etc/apt/apt.conf
, open the terminal and type:
sudo gedit /etc/apt/apt.conf
Edit this file according to your proxy details:
Acquire::http::proxy "http://username:password@yourproxyaddress:proxyport";
Acquire::https::proxy "https://username:password@yourproxyaddress:proxyport";
If your proxy doesn’t require a username, then those statements take the following form: Acquire::http::proxy yourproxyaddress:proxyport";
To be able to add what is a PPA, you will need to export your proxy settings open the terminal and type:
export https_proxy="https://username:password@yourproxyaddress:proxyport";
export http_proxy="http://username:password@yourproxyaddress:proxyport";
Once you have done this, to export you will need to add a -E
after sudo
, e.g. sudo -E apt-get install python-software-properties
ping -c 3 8.8.8.8
andping -c 3 fb.com
androute -n