You are not logged in.

#1 2017-12-13 21:33:01

trevsjordan
Member
Registered: 2017-12-08
Posts: 4

[SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

Unfortunately, I am new to Arch Linux and deleted netctl and dhcpcd prior to realizing how important they are for network configuration. I have a Dell XPS 13 so there's no way of directly connecting with an ethernet cable, and currently the Insignia USB-Ethernet adapter I have is not working. I do, however, have an Arch Linux iso on a USB, so maybe I would be able to install the base group of packages using that?

Does anyone have any suggestions? Thanks in advance!

Last edited by trevsjordan (2017-12-14 00:38:02)

Offline

#2 2017-12-13 21:37:12

smlb
Member
From: /dev/null
Registered: 2013-05-20
Posts: 60
Website

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

Just run the live image, mount the partitions and pacstrap `netctl dialog wpa_supplicant dhcpcd` on the mountpoint.

Reboot and you have again your connections tools.

Offline

#3 2017-12-13 21:43:01

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

pacman -U "pkgname.pkg.tar.xz"

allows to install any pkg downloaded from the official arch repository (and the AUR).
Download both netctl and dhcpcd, copy them to a USB stick/smartphone and you're done.

@smlb suggestion is yet another option to do it.

For the future, you'd better write down the base group to avoid randomly deleting essential packages.

Offline

#4 2017-12-13 21:47:08

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

Or you could either arch-chroot into your broken system or use pacmans --root flag and reinstall them from your pacman cache smile


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-12-13 21:47:26

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

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

If you didn't clear your cache, there is a much simpler solution, no need for a live usb (though that will work fine too).  Just reinstall the package from the cache:

pacman -U /var/cache/pacman/pkg/dhcpcd...

fill in the "..." as needed (tab completition should get it for you).

netctl is just a convenience tool, you can connect manually without it, but you can also reinstall that the same way you do dhcpcd from the cache.

EDIT: Slithery, why the chroot?  Not having a netowork connection doesn't render a machine unbootable.

Last edited by Trilby (2017-12-13 21:48:18)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2017-12-13 21:50:29

smlb
Member
From: /dev/null
Registered: 2013-05-20
Posts: 60
Website

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

Yeah, forgot that you probably have all the packages in cache if you didn't clear it using `pacman -Scc` or `paccache`.

Offline

#7 2017-12-13 22:02:34

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

Trilby wrote:

EDIT: Slithery, why the chroot?  Not having a netowork connection doesn't render a machine unbootable.

Obviously you're correct, I I've not had my coffee yet this morning smile

Thinking too complicated.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-12-14 00:39:10

trevsjordan
Member
Registered: 2017-12-08
Posts: 4

Re: [SOLVED] Uninstalled netctl and dhcpcd & can't connect to internet

Wow, great response time - just marked it as solved, thanks for all the help!

Offline

Board footer

Powered by FluxBB