You are not logged in.

#1 2012-04-05 09:45:15

Jamess
Member
Registered: 2010-07-09
Posts: 17

Upgrade interrupted, pacman broken

I just attempted to upgrade using

pacman -Syu

I read the news articles that suggest using

pacman -S filesystem --force

and to manually delete

/etc/profile.d/locale.sh

After this pacman was progressing nicely with the upgrade until I foolishly hit ctrl-c for some stupid reason. Now LXDE won't start. I can log in on tty1 but if I run

pacman -Syu

I get

pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory

I have no network connection either and I get X errors in the console:

INIT: Id "x" respawning too fast: disabled for 5 minutes

Is it possible to fix this installation?

thanks in advance

James

Offline

#2 2012-04-05 10:26:37

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Upgrade interrupted, pacman broken

Try to boot from a livecd, chroot in and fix/reinstall pacman as indicated here. Afterwards, try a "pacman -Syu" again from within the chroot.


Burninate!

Offline

#3 2012-04-05 12:49:31

Jamess
Member
Registered: 2010-07-09
Posts: 17

Re: Upgrade interrupted, pacman broken

Thanks for the reply. I followed the instructions here:

https://wiki.archlinux.org/index.php/Change_Root

but when I enter

chroot . /bin/bash

I get

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

Any ideas?

Offline

#4 2012-04-05 15:17:58

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Upgrade interrupted, pacman broken

If tar works, untar the libarchive package into your root. Then try again, until pacman works. Once that works, reinstall all the manually installed packages forcibly and remove the cruft (hidden files in /).

As long as you can boot and run commands, there is no need for a live CD.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB