[SOLVED] Cannot access Firefox - apt-get update does not work
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
your network/internet works.
but for some reason your ubuntu computers lost DNS functionality, i.e. the ability to translate addresses like google.com into numeric IP addresses like 234.54.32.1.
the weird thing here is that it does not work with a live cd either (it should!), although an ipad works on the same router, hence the gurus discussing this strangeness.
i think you need to figure out with 100% certainty if
a) your wife's ipad indeed utilizes the same router (over wifi presumably) as the afflicted machines
b) you indeed do NOT have internet connectivity from a ubuntu live cd/usb.
PS:
also answers like "the google ping works fine" are a little vague, i'm not 100% convinced. please be more precise, preferably posting actual command output.
i think you need to figure out with 100% certainty if
a) your wife's ipad indeed utilizes the same router (over wifi presumably) as the afflicted machines
b) you indeed do NOT have internet connectivity from a ubuntu live cd/usb.
PS:
also answers like "the google ping works fine" are a little vague....
a. I checked the mini iPad 'system ' and it is indeed set to my Verizon router.
b. I have Ubuntu 14.04 on a bootable flash drive . I chose live cd and tried to access Firefox.
Results: Firefox can't find the server at start.ubuntu.com
I did the same by putting 209.85.235.102 in the address bar
Result: ditto b. www.google.com
Same with wiki.ubuntu.com
Result: ditto b. Wiki.ubuntuu.com
Back to my Linux laptop ... I pinged google.
Result: PING 209.85.235.102 (209.85.235.102) 56(84) bytes of data.
64 bytes from 209.85.235.102: icmp_seq=1 til=40 time=315 ms
Goes on for 6 cycles
Then: 209.85.235.102 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/= 90.909/162.674/315.461/72.967 ms
I sure don't want to type on this thing any more!!!
Thanks for help,
R
Last edited by pizzipie; 04-04-2017 at 01:31 PM.
Reason: Typos
I took the address from ifconfig wlan1 and did command: dig 192.168.1.7 www.google.com
Result: ....... ;; got answer ... status: no error ... Query time 2msec ... connection timed out; no servers could be reached.
I just looked up 'dig' and tried command 'dig'
Result: Dig 9.9.5-3ubuntu0.13-Ubuntu
;; global options: +cmd
;; connection timed out; no servers could be reached
/etc/resolv.conf contains: nameserver 127.0.1.1
I believe all this problem started when I did the upgrade thing. I know Firefox was one of the apps to be upgraded/updated.
First, I doubt 192.168.1.7 is your router, second, it must be preceded by '@'. below I'm querying DNS resolver at 8.8.8.8.
Code:
~ $ dig @8.8.8.8 www.google.com
; <<>> DiG 9.11.0-P3 <<>> @8.8.8.8 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5501
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 7 IN A 206.124.214.38
www.google.com. 7 IN A 206.124.214.57
www.google.com. 7 IN A 206.124.214.49
www.google.com. 7 IN A 206.124.214.27
www.google.com. 7 IN A 206.124.214.37
www.google.com. 7 IN A 206.124.214.26
www.google.com. 7 IN A 206.124.214.16
www.google.com. 7 IN A 206.124.214.20
www.google.com. 7 IN A 206.124.214.46
www.google.com. 7 IN A 206.124.214.59
www.google.com. 7 IN A 206.124.214.31
www.google.com. 7 IN A 206.124.214.35
www.google.com. 7 IN A 206.124.214.53
www.google.com. 7 IN A 206.124.214.42
www.google.com. 7 IN A 206.124.214.48
www.google.com. 7 IN A 206.124.214.24
;; Query time: 26 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Apr 04 15:47:40 CDT 2017
;; MSG SIZE rcvd: 299
OK, so did you try and put 8.8.8.8 into your network setup as suggested a couple of times in this thread?
Also, did you test your router using proper address with dig? Keep in mind if your routers DNS stopped working it may indicate a break-in, your router may be hacked.
google is just a convenient web server to check and 8.8.8.8 is one of their DNS servers. As far as I know 127.0.1.1 is the dnsmasq caching server running on your systems which was installed by default.
Typically the gateway is your router's LAN IP address. You can look at the output of the route command i.e.
/sbin/route and the pertinent line should look similar to:
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
As stated it could be the router which should be using your ISPs DNS which might have problems or the updates corrupted something in your dnsmasq/NetworkManger configuration. Not enough information on the live CD to know but it would also use your ISPs DNS. Using 8.8.8.8 bypasses dnsmasq and your router's DNS. However, as soon as you reboot /etc/resolv.conf will be overwritten by NetworkManager. You can use the network applet to edit your connection configuration to use DHCP but manually enter DNS addresses. The second google DNS address you can use is 8.8.4.4.
I don't know how the ipad DNS is configured.
Its possible that the router has been hacked or just part of its brains scrambled. You might try rebooting both your MODEM/router and see what happens.
Yes, I was wrong about avahi, I think I read it somewhere ... but not all sources on the net are reliable. Having a closer look it definitely is dnsmasq listening on 127.0.1.1 port 53.
iPad may have fallback DNS configured by Apple.
I have been corresponding with computer 'B' in the last messages to you. My other computer say computer 'A' still has problems.
On computer 'A', when the upgrade failed, I thought I should un-install Firefox. Now I can't install it nor does apt-get-update work. See attached files. As you can see the firefox install can't find what it needs. The apt-get update doesn't work either. I assume 'Hit' means it found what it wants and 'Ign' means ignore?
Is there some way I can re-install apt-get?
I can only assume computer 'B' (the one I'm writing this on) will have the same problems so I won't try to use apt-get update.
At this point I am at a total loss as to how to fix this stuff.
pizzipie, i hope you won't be offended, but:
this is not normal behaviour for ubuntu or in fact any pre-configured linux distro. you must have done something wrong (*) to cause this. maybe also with your router.
please don't blame the updates. it's better to have an updated system.
my suggestion:
try to revise your usage habits, maybe you can figure out where you went wrong.
after all ubuntu is designed to be used by non-nerds, it can't be as hard as all the stuff in this thread.
then save your data, reinstall both machines with the current LTS version and be more careful in the future.
regular updating & upgrading is a good thing.
(*) unfortunately some apps are also notorious candidates, usually those that are installed through the wild web, and not your software center. e.g. chrome, skype...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.