You are not logged in.

#1 2016-09-09 23:19:42

KRust
Member
Registered: 2016-09-09
Posts: 18

[SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

Hello everyone, I was hoping I could find some advice with an issue I'm getting here. I've already searched the Installation guide and all the wiki, and can't seem to find an answer to this specific situation.
I'm completely new to Arch, and not that experienced with Linux in general either, so if it's possible for you to explain things with a little patience, I'd be very grateful. I'm trying to install Arch because I broke two Ubuntu installations trying to tweak them to work best, doing things that were legit according to sources - and, after research I learned about Arch and decided to give it a try, since it says than even a beginner, if he has patience and is willing to learn, might find his way around it. And I'm definitely willing to learn, besides being interested in the ethos of Arch.

So, to the problem...
A couple of days ago, I read the entire Installation Guide and tried installing Arch to a USB stick, using an Ethernet cable connected to my gateway. The computer I'm trying to install it to has no HDD. When I first tried to ping it with
$ ping www.google.com
following the Installation Guide, it gave me an error saying 'zsh: command not found: $'.
I researched on these forums and found an indication that it might work without the '$', just
ping www.google.com
It worked fine, and I proceeded with the installation, downloading everything that was necessary.
Installation seemed to work fine, both base and GRUB, and I could even boot it once, login to root with the pass I used and everything, then I turned off the computer and went to bed. Next day, trying to boot again took me to grub rescue. I researched a lot, tried to solve it from there, and after about 8 hours of research and trying, couldn't get anything.

So I decided to install again, from scratch. I read everything over, researched some more and found info that could lead to a more secure installation of GRUB on Legacy BIOS (maybe that was the problem last time) and today I'm trying to install it again.
As I login to root with the Live session, after I configure my keyboard and update the system clock, I got the same message if I tried to ping with the '$', and without the '$' the system apparently does try to ping but gives the message
'3 packets transmitted, 0 received, 100% packet loss', plus time.
Trying
ping 8.8.8.8.
gives me
'Name of service unknown'

The Network configuration doesn't seem to address this specific problem, with these messages, except by saying I should check the cables. I did that, even tried turning the modem off and on again just in case, and I still get exactly the same problem. I don't know where I should go to if everything worked just fine just the day before yesterday and now is different.
It's the same computer, with the same USB sticks (one for installation, the other with the .iso burned to it). I'm pretty sure I didn't do anything different this time.

* When I tried to boot the first time, the screen went black and nothing came through. So I'm adding 'nomodeset' to the kernel line each time I log in there to try and install. Found that information here on the forums, and it seems to work. Just adding it in here because I'm not sure if it might affect anything.

Thanks in advance.

Last edited by KRust (2016-09-12 20:43:37)

Offline

#2 2016-09-09 23:45:56

Phrost5019
Member
Registered: 2015-02-20
Posts: 32

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

Just a heads up, when people post commands with a "$" or a "#" in in the front, you're not supposed to type that. It's mean to show whether the command is to be run under root or a regular user.

ping 8.8.8.8.

won't work

ping 8.8.8.8

will

Also, when troubleshooting network issues post the output of

ip addr

Offline

#3 2016-09-09 23:52:58

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

Thanks a lot, Phrost5019.
I did figure it out that was the case with # but $ got me confused, because I couldn't understand how it would be present in the installation since there was no $ yet, so I thought it might be something else. But then, of course, the ping section with this line wasn't in the Installation guide. I was just confused.

And putting that extra . in the 8... address was indeed the problem. Feel really embarrassed now, but at least I got a solution. This part is working, just not the google.com. So now there are indications in the wiki for it. So I've got reading to do. Thanks, man!

Offline

#4 2016-09-10 00:09:04

Phrost5019
Member
Registered: 2015-02-20
Posts: 32

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

I don't know what exactly is wrong, but if you can ping an ip address and not a domain name it means something is not working with your DNS.

Offline

#5 2016-09-10 00:19:18

Alkaris
Member
From: AU
Registered: 2016-09-09
Posts: 7

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

If your network card is playing up you can try reset it by doing;

sudo service network-manager restart

if that doesn't work then you can do this instead

sudo /etc/init.d/networking restart

when you use 'sudo' it will ask for your password if one is set, enter it carefully as it does not show what you type, then press <enter> key.

Offline

#6 2016-09-10 00:36:24

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

What seems bizarre to me is that I did these same steps two days ago and everything worked fine.
I found these on the wiki:
https://wiki.archlinux.org/index.php/Resolv.conf

And it suggests, as far as I can understand, that I use some free nameservers on top of my ISP's ones (?)
But I'm not sure if I should try all that if, in my case, it did work before and is just at this present moment behaving oddly.

Guess I'll try and type my Ip addr output here just in case someone barges in and can spot some other issue...

1: lo: <LOOPBACK, UP, LOWER_UP> mtu 65536 qdisc  noqueue state UNKNOWN group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
  inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2:enp1s0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
   link/ether 00:24:be:94:d3:1d: brd ff:ff:ff:ff:ff:ff:
   inet 192.168.0.4/24 brd 192.168.0.255 scope global enp1s0
      valid_lft forever preferreed_lft forever
  inet6 2804:14d:4c88:1091:ab03:fa64:2e:ea3d:/64 scope global mntmgpaddr noprefixroute dynamic
      valid_lft 2591995sec preferred_lft 604795sec
  inet fe80:f801:5054:c296:9b66/64 scope link
      valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST, MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 100
  link/ether 00:1f:3a:fb:27:e6: brd ff:ff:ff:ff:ff:ff:

Offline

#7 2016-09-10 00:40:47

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

Alkaris wrote:

If your network card is playing up you can try reset it by doing;

sudo service network-manager restart

if that doesn't work then you can do this instead

sudo /etc/init.d/networking restart

when you use 'sudo' it will ask for your password if one is set, enter it carefully as it does not show what you type, then press <enter> key.

sudo: service :command not found

I'm at the second step of the Installation Guide, just having set the keyboard configuration. Was that supposed to work at this stage? There are no users set yet, just the root from the ISO.

Offline

#8 2016-09-10 00:44:09

Alkaris
Member
From: AU
Registered: 2016-09-09
Posts: 7

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

KRust wrote:
Alkaris wrote:

If your network card is playing up you can try reset it by doing;

sudo service network-manager restart

if that doesn't work then you can do this instead

sudo /etc/init.d/networking restart

when you use 'sudo' it will ask for your password if one is set, enter it carefully as it does not show what you type, then press <enter> key.

sudo: service :command not found

I'm at the second step of the Installation Guide, just having set the keyboard configuration. Was that supposed to work at this stage? There are no users set yet, just the root from the ISO.


If you're reinstalling you don't need to do that because you can't run it yet, and probably won't need to if it works OK if the reinstall works this time around.

Offline

#9 2016-09-10 00:45:59

basica
Member
From: Australia
Registered: 2012-10-31
Posts: 217

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

KRust wrote:
Alkaris wrote:

If your network card is playing up you can try reset it by doing;

sudo service network-manager restart

if that doesn't work then you can do this instead

sudo /etc/init.d/networking restart

when you use 'sudo' it will ask for your password if one is set, enter it carefully as it does not show what you type, then press <enter> key.

sudo: service :command not found

I'm at the second step of the Installation Guide, just having set the keyboard configuration. Was that supposed to work at this stage? There are no users set yet, just the root from the ISO.

That command won't work under Arch since it uses systemd. Managing services under Arch is done via systemctl. "service" is used by some other Linux distributions.

It sounds like to me that you haven't enabled the network. If you're connecting via a cable, then DHCP should probably work.

To check if it is running, try "systemctl status dhcpcd" if it's nor running, run "systemctl start dhcpcd" and then try pinging. If that works you probably want the service to automatically connect you to the network on reboot, so run "systemctl enable dhcpcd".

EDIT: Just read you're in the installation. You wont need to run this command as the network should automatically work. During the chroot stage is when you want to run the enable command. I'm guessing this is the issue since you mentioned the network was working when you booted to the live environment.

Last edited by basica (2016-09-10 00:54:15)

Offline

#10 2016-09-10 01:05:44

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

Thanks basica!

"systemctl status dhcpcd" gives me:

 systemctl status dhcpcd
dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; vendor pres
Active: active (running) since Sat 2016-09-10 00:47:59 UTC; 6min ago
Proccess: 5017 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status= 0/SUCCESS)
Main PID: 5031 (dhcpcd)
Tasks:1 (limit:4915)
CGroup: /system.slice/dhcpcd.service
             5031 /usr/bin/dhcpcd -q -b

Sep 10 00:47:59 archiso dhcdpcd[5031]: enp1s0: soliciting an ipv6 router
Sep 10 00:48:00 archiso dhcdpcd[5031]: enp1s0: Router Advertisement from fe80:22
Sep 10 00:48:00 archiso dhcdpcd[5031]: enp1s0: adding address 2804:14d:4c88:1091:
Sep 10 00:48:00 archiso dhcdpcd[5031]: enp1s0: adding route to 2804:14d:4c88:1091
Sep 10 00:48:00 archiso dhcdpcd[5031]: enp1s0: adding default route via fe80:227
Sep 10 00:48:01 archiso dhcdpcd[5031]: enp1s0: requesting DHCPv6 information
Sep 10 00:48:01 archiso dhcdpcd[5031]: enp1s0: rebinding lease of 192.168.0.4
Sep 10 00:48:01 archiso dhcdpcd[5031]: enp1s0: leased 192.168.0.4 for 3600 second
Sep 10 00:48:01 archiso dhcdpcd[5031]: enp1s0: changing route to 192.168.0.0/24
Sep 10 00:48:01 archiso dhcdpcd[5031]: enp1s0: changing default route via 192.168 

systemctl start dhcpcd shows nothing, but gives me a new line
Try to ping. Same as before.

Offline

#11 2016-09-10 01:08:21

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

basica wrote:

EDIT: Just read you're in the installation. You wont need to run this command as the network should automatically work. During the chroot stage is when you want to run the enable command. I'm guessing this is the issue since you mentioned the network was working when you booted to the live environment.

Just saw your edit now, after I typed that entire output in there.
But the thing is, maybe I explained badly before:
Don't I need the connection up and running in order to do the installation? That's exactly my problem. Or I can go up to the chroot stage without any internet (doesn't seem the case, considering the wiki?), then do what you say, get it running and finish with the rest?

Offline

#12 2016-09-10 01:14:27

basica
Member
From: Australia
Registered: 2012-10-31
Posts: 217

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

EDIT: See below.

Last edited by basica (2016-09-10 01:19:40)

Offline

#13 2016-09-10 01:17:45

basica
Member
From: Australia
Registered: 2012-10-31
Posts: 217

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

KRust wrote:
basica wrote:

EDIT: Just read you're in the installation. You wont need to run this command as the network should automatically work. During the chroot stage is when you want to run the enable command. I'm guessing this is the issue since you mentioned the network was working when you booted to the live environment.

Just saw your edit now, after I typed that entire output in there.
But the thing is, maybe I explained badly before:
Don't I need the connection up and running in order to do the installation? That's exactly my problem. Or I can go up to the chroot stage without any internet (doesn't seem the case, considering the wiki?), then do what you say, get it running and finish with the rest?

The network should start automatically when you've booted into the live environment. You mentioned you can ping www.google.com and 8.8.8.8 is that right? You mentioned you were able to complete the installation, which is not possible without network access since it downloads all the sources from the internet.

Arch doesn't automatically enable the network during installation, this needs to be done manually via the enable command I mentioned earlier. So, during chroot you run that so after you reboot the network will start automatically for you, just like in the live CD.

Offline

#14 2016-09-10 01:25:41

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

basica wrote:

So, to confirm, you're able to run "ping 8.8.8.8" successfully, but pinging www.google.com does not work?

That is correct. Plus, if it's at all relevant, I was able to ping Google in the exact same conditions just two days ago, but that installation went awry for other reasons, hence I'm trying to install again. This problem started today, hasn't happened on the first installation. I haven't been able to proceed with the installation up til now, because of it.

What happens when you try to ping another site? Such as www.archlinux.org? Copy and paste the command you're running and the output you receive.

That, actually works. I tried pinging www5.yahoo.com before, as the wiki suggested and didn't work either. But this one worked.
I can't copy and paste stuff since all this is happening in another machine, but I'll just type it.

 ping www.archlinux.org 

gave us:

 PING gudrun.archlinux.org (66.211.214.131) 56(84) bytes of data.
64 bytes from gudrun.archlinux.org (66.211.214.131): icmp_seq=1 ttl=54 time=197 (x8, varying only the last number)
^C
--- gudrun.archlinux.org ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8009ms
rtt min/avg/max/mdev/ = 155.219/166.334/197.615/11.738 ms 

That means I'm good to go, and Google just doesn't like me?

Last edited by KRust (2016-09-10 01:27:21)

Offline

#15 2016-09-10 06:53:20

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

in your first post you said you were able to ping google.com, but then you were and weren't able to ping 8.8.8.8(.) - are you still able to ping google.com? are you able to ping 8.8.8.8?
I don't remember if the default install comes with dnsutils installed, but if it does, and you can't ping google, can you run

dig google.com

and give us the output?

Offline

#16 2016-09-12 20:46:10

KRust
Member
Registered: 2016-09-09
Posts: 18

Re: [SOLVED]Can't ping google.com or 8.8.8.8 during Install, was work...

Well, I managed to download all the packs I needed for the installation once I saw I could ping www.archlinux.org, and I actually saw that this address was added to the Installation Guide as the one for ping testing since I made this thread, so I guess whatever with the Google thing.

Thanks everyone who gave suggestions and helped me go further. Still can't say everything went well with the installation, but because of other questions. The network thing seems to be ok, so, [SOLVED].

Offline

Board footer

Powered by FluxBB