LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Cannot access Firefox - apt-get update does not work (https://www.linuxquestions.org/questions/ubuntu-63/cannot-access-firefox-apt-get-update-does-not-work-4175603059/)

pizzipie 04-02-2017 04:48 PM

Cannot access Firefox - apt-get update does not work
 
Cannot get onto Firefox. Tried two computers both failed . Next tried live cd with Ubuntuu 14.04. No luck. Only able to get you now on my wife's iPad.

Thanks for any input on how to resolve this.

R

michaelk 04-02-2017 05:01 PM

What do you mean by can not access Firefox. I assume you just can not access anything on the internet.

Is the computer using a static or dynamic IP address?

Is an IP address assigned to your network adapter? Look at the output of the /sbin/ifconfig or ip a commands.

Can the computer ping or access other devices on your LAN?

pizzipie 04-03-2017 01:21 PM

Let me backup.

I click on Firefox and get a continous 'connecting' signal. It doesn't stop.

I believe this happened after I tried to update the computer using the update thing at the bottom line.

After this failed i tried to use Synaptic. Mark All Upgrades.

RESULT: could not resolve 'us.archive.ubuntu.com' OR ' security.ubuntu.com'.

I did som poking around on the internet and tried to ping these.

PING: ,us.archive.ubuntu.com' .... Result ping: unknown host us.ubuntu.com

Same with security.

This same thing is happening on both my laptops!

I just printed a test doc to my wireless printer, so the. Network works.

Tried email ... won' send ... outgoing server xxxxx is unknown
Thanks for help.

R

michaelk 04-03-2017 02:51 PM

If you can ping a google IP address then it might be just a DNS problem but not enough information to say how/why it happened.

ping 209.85.235.102

pizzipie 04-03-2017 04:53 PM

Thanks michael,

The google ping works fine.

So what do I do to fix this?

Emerson 04-03-2017 05:41 PM

Linux installations and live CD not working, but iPad works. Mysterious. This iPad is on the same network, please confirm?

michaelk 04-03-2017 06:16 PM

What is the contents of your /etc/resolv.conf file?

Are both computers running Ubuntu? Were both laptops recently updated?

The IP address for LQ is 75.126.162.205 if you want to use your laptop.

frankbell 04-03-2017 06:37 PM

Try using apt-get to run an upgrade, then post any error messages that it throws, being sure to surround them with code tags, which become available when you click the "Go Advanced" button beneath the "Compose Post" windows.

pizzipie 04-03-2017 06:56 PM

iPad is on same network.

Contents of resolv.conf .... nameserver 127.0.1.1

Put 75.126.162.205 in address bar of Firefox, result .... looking up www.linuxquestions.org

Also trying to connect with thingee revolving continuously.

Both laptops running ONLY Ubuntu 14.04.

Ran apt-get upgrade ..... got bunches of ... could not resolve security.ubuntu.com
And bunches of E: Failed to fetch ... i cant show all this stuff on the iPad without typing it in...sorry.

michaelk 04-03-2017 07:18 PM

127.0.1.1 is also a localhost address. You could try adding manually a DNS nameserver to /etc/resolv.conf
nameserver 8.8.8.8

Another command that might fix things is:
sudo resolvconf --enable-updates

You should be able to run apt-get upgrade. My be another configuration that went astray with firefox.

Any DNS, proxy etc running on your LAN?

I assume that a reboot does not magically fix anything.

Emerson 04-03-2017 07:21 PM

Two installations may go bad same time, but why is Live CD not working? No, that makes me think something happened to your router. Can you use your Ubuntu if you override the DNS manually, using 8.8.4.4 for instance?

Emerson 04-03-2017 07:23 PM

michaelk,

127.0.1.1 is the address avahi is using, systemd setup managed to create another middleman, this time between application and DNS. /etc/resolv.conf gets overwritten by NetworkManager.

michaelk 04-03-2017 07:29 PM

Yes, your correct about avahi and NetworkManager. However, 14.04 should still use upstart.

Emerson 04-03-2017 07:36 PM

Did upstart use avahi? Because there is 127.0.1.1 in the resolv.conf.

frankbell 04-03-2017 07:48 PM

My ISP occasionally has DNS issues, but they are very rare (we're talking a few times a year) and seldom last more than a couple of minutes.

What DNS servers does your router point to? For a test, you could change the DNS servers to Google's, which are rock-solid (I don't use them, but they are rock-solid).


All times are GMT -5. The time now is 02:16 PM.