You are not logged in.

#1 2015-07-17 08:31:26

idontcarebear
Member
Registered: 2015-07-17
Posts: 2

[SOLVED] No Ethernet Connection After Installation

Hello, I am very new to the world of Linux and I decided to pick Arch as my second distro.

My installation seemed to work fine using an ethernet cable, but after rebooting it doesn't seem to work.  I can log in just fine, but when I attempt to use "pacman -Sy xorg" I get an "error: failed retrieving file" error.

When I use "ping -c 3 www.google.com"  I receive "ping: unknown host www.google.com".

I saw somebody suggest using "systemctl1 enable dhcpcd@eth0.service" and "systemctl1 start dhcpcd@eth0.service", but the second command gives a "A dependency job for dhcpcd@eth0.service failed. See ' journalctl -xe' for details." error.

I'm not quite sure what I am doing wrong.  Any help is highly appreciated!

Last edited by idontcarebear (2015-07-17 22:51:06)

Offline

#2 2015-07-17 09:03:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] No Ethernet Connection After Installation

Don't run 'pacman -Sy foo': http://gist.io/5660494
Don't run 'pacman -Sy xorg', as this will install the whole xorg group. Where did you get this command from? Are you following some tutorial?

How did you configure the network?
What's the output of

uname -a

?

Offline

#3 2015-07-17 10:12:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,541
Website

Re: [SOLVED] No Ethernet Connection After Installation

idontcarebear wrote:

I saw somebody suggest using "systemctl1 enable dhcpcd@eth0.service" and "systemctl1 start dhcpcd@eth0.service", but the second command gives a "A dependency job for dhcpcd@eth0.service failed. See ' journalctl -xe' for details." error.

The installation iso has dhcpcd service enabled by default.  A fresh installation does not.  So something like those commands would be needed.  But those commands as-they-are would be expected to fail.  In general when an error message says "see 'journalctl -xe' for details" you should probably first see 'journalctl -xe' for details.

But in this case the source of the problem is almost certainly that your network interface is not called eth0.  To learn how to do this properly, please read the wiki:
https://wiki.archlinux.org/index.php/Be … he_network
https://wiki.archlinux.org/index.php/Dhcpcd#Running


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-07-17 12:43:13

kminehart
Member
Registered: 2015-07-13
Posts: 11

Re: [SOLVED] No Ethernet Connection After Installation

I've never had to specify an interface name when enabling/starting dhcpcd.  Probably because I only have one interface, though.  What happens if you start it without specifying an interface name?

Offline

#5 2015-07-17 14:08:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,541
Website

Re: [SOLVED] No Ethernet Connection After Installation

The service, or the program itself?  In either case, the answer is similar: it should be fine.  But in the case of the OP, it was started with a specific interface name, and if that interface doesn't exist, it's no suprise that it failed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-07-17 19:39:00

idontcarebear
Member
Registered: 2015-07-17
Posts: 2

Re: [SOLVED] No Ethernet Connection After Installation

Thanks, @karol and @Trillby.  I found out that my interface name is actually "enp0s10" by following @Trillby 's link and now everything seems to work just fine.

Offline

#7 2015-07-17 21:56:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] No Ethernet Connection After Installation

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB