You are not logged in.

#1 2015-09-29 01:29:45

ericramirez
Member
Registered: 2015-09-29
Posts: 35

How to repair a broken Arch Linux?

I deleted the lib32-ncurses manually from the /usr/lib folder (I know...)

It broke Arch. So I boot from my a live cd but if I try to, mounted the partition but when trying to chroot to the root mount at /mnt I get:

/bin/bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

I know I did something foolish but I'm desperate now.

Offline

#2 2015-09-29 01:58:58

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: How to repair a broken Arch Linux?

Don't enter the chroot, just use the --root option to pacman from the live environment.

Offline

#3 2015-09-29 02:27:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: How to repair a broken Arch Linux?

Please do not email people directly for assistance -- the forum is the location for support.

via email wrote:

Is it just a matter of typing pacman -root /var/cache/pacman/pkg/linux-kernel?

That is the command you need, but you also need the flags to install the appropriate packages:

pacman -root /var/cache/pacman/pkg/linux-kernel -S lib32-ncurses

Offline

#4 2015-09-29 03:34:54

ericramirez
Member
Registered: 2015-09-29
Posts: 35

Re: How to repair a broken Arch Linux?

It didn't work sad

Offline

#5 2015-09-29 03:42:02

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: How to repair a broken Arch Linux?

Offline

#6 2015-09-29 07:28:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,438

Re: How to repair a broken Arch Linux?

That command is wrong. You'll need to boot the live CD, mount the root partition, then use pacman --root <mountpoint> -U <path to package file>

Or just pacman --root <mountpoint> -Syu. Also, the problem is going to be in ncurses, not lib32-ncurses

Last edited by Scimmia (2015-09-29 07:30:24)

Offline

#7 2015-09-29 08:13:01

Paplepel
Member
Registered: 2015-09-28
Posts: 5

Re: How to repair a broken Arch Linux?

If chroot does not work you can use pacstrap -i /mnt lib32-ncurses ncurses

Offline

Board footer

Powered by FluxBB