LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-03-2017, 07:48 PM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936

I don't remember.
 
Old 04-03-2017, 08:04 PM   #17
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
I wonder if iPad is using hardcoded remote DNS ...
It sure looks like local DNS is not working.
 
Old 04-03-2017, 08:38 PM   #18
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Michael,

Re: 10 the resolvconf --enable-updates did nothing.

Can you please be more specific in what to do.

You are all way over my head with talk about DNS and avi etc.

Thanks, R
 
Old 04-04-2017, 02:13 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by pizzipie View Post
You are all way over my head with talk about DNS
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.

Last edited by ondoho; 04-04-2017 at 02:17 AM.
 
Old 04-04-2017, 01:20 PM   #20
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Quote:

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
 
Old 04-04-2017, 01:39 PM   #21
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
I'm sure your Verizon router has caching DNS, verify if it is working.
Code:
dig @<IP.of.Verizon.router> www.google.com

Last edited by Emerson; 04-04-2017 at 01:48 PM.
 
Old 04-04-2017, 03:37 PM   #22
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
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.

Thanks, R

Last edited by pizzipie; 04-04-2017 at 03:57 PM.
 
Old 04-04-2017, 03:48 PM   #23
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
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
 
Old 04-04-2017, 06:59 PM   #24
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Ok I do dig @8.8.8.8 www.google.com

Result: Dig 9.9.5-3ubuntu0.13-Ubuntu <<>> @8..8.8.8 www.google.com
...question section www.google.com. IN. A

Answer section www.google.com 82. IN. A. 216.58.193.68. That's it not a bunch of them like yours

Query time 386 ms
 
Old 04-04-2017, 07:07 PM   #25
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
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.
 
Old 04-04-2017, 07:40 PM   #26
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Well guess what?

I'm using Firefox to write this.

I put nameserver 8.8.8.8 into /etc/resolv.conf and now things work!!!

What happened. What does www.google.com have to do with anything? How did this fix things?

For the record how do I find the ip of my verizon router?

I have yet to do the apt-get upgrade again. i'm afraid to!

Last edited by pizzipie; 04-04-2017 at 08:06 PM.
 
Old 04-04-2017, 09:18 PM   #27
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
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.
 
Old 04-04-2017, 09:30 PM   #28
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
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.
 
Old 04-04-2017, 10:34 PM   #29
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
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.
Attached Files
File Type: txt aptget-install-firefox-output.txt (1.1 KB, 16 views)
File Type: txt aptget-update-output.txt (4.3 KB, 19 views)
 
Old 04-05-2017, 02:04 AM   #30
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
glad we got it narrowed down.

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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] apt-get update does not work Eoin Dubh Linux - Software 18 06-29-2023 08:24 PM
my apt-get update wont work chaseseith Linux - Newbie 11 09-14-2011 11:51 PM
Why apt-get update doesn't work? yuri16 Linux - Newbie 3 02-11-2009 12:07 AM
Why apt-get update doesn't work? yuri16 Debian 4 02-10-2009 11:17 PM
apt-get update doesn't work cccc Debian 1 01-04-2008 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration