You are not logged in.

#1 2012-09-01 13:57:02

b0b2
Member
Registered: 2011-10-31
Posts: 51

System half destroyed after failed update

hi,
i wanted to update my arch with pacman.
because pacman -Syu did not work i looked at archlinux.org and found this(http://www.archlinux.org/news/filesystem-upgrade-manual-intervention-required-1/)
and this(http://www.archlinux.org/news/the-lib-directory-becomes-a-symlink/).

but i hit the wrong tab and executed:

pacman -Syu --ignore glibc
pacman -Su

instead of:

pacman -Syu --ignore filesystem && pacman -S filesystem --force

now my pacman returns: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
i also can't setup any connection:

iwconfig wlan0 returns: SET failed on device wlan0 ; No such device.
netcfg ethernet-dhcp return: Interface eth0 does not exist


is there any hope that this can be repaired?
thx for your help.

Offline

#2 2012-09-01 14:13:30

PaulBx1
Member
Registered: 2008-10-18
Posts: 142

Re: System half destroyed after failed update

Every time, before I do a full update, I boot up Puppy linux from a flash drive and use dd to back up my entire hard drive to a USB hard drive to protect against just such a problem (before I go to bed because it takes a while). Might be a good idea to do something like that. Sorry I can't help with this one, other than to suggest finding libcurl.so.4 somewhere and putting it on your system. Is /lib a symlink or not?

Offline

#3 2012-09-01 14:35:00

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

i guess not.
how can i find out?

Offline

#4 2012-09-01 14:38:16

George
Member
Registered: 2011-05-11
Posts: 165

Re: System half destroyed after failed update

I'd suggest booting off a live cd (or an arch install cd or usb) restoring pacman from the live environment [1] and then chrooting into your arch install and finishing the upgrade.

[1] https://wiki.archlinux.org/index.php/Pa … tall_it.3F

Offline

#5 2012-09-01 14:40:27

George
Member
Registered: 2011-05-11
Posts: 165

Re: System half destroyed after failed update

Actually it looks like the wiki is out of date, you'll need to restore the curl package (which contains libcurl.so.4) as well.

Offline

#6 2012-09-02 07:48:38

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

Yeah, you're issue is not exactly the same. You will also have curl issues because you waited so long to update your system. If the glibc update went okay (you can check by doing "ls -l /lib" and making sure it points to -> usr/lib) then you can probably just boot an arch netinstall live cd and mount your root partition from a tty. After that just use pacman on the livecd to reinstall curl and pacman etc.. Something like this (assuming your / is on sda3):

mkdir /mnt/blah
mount /dev/sda3 /mnt/blah
pacman -r /mnt/blah -Su #or -S whateverapplication

Don't really see why a chroot is needed.

Offline

#7 2012-09-02 13:04:50

George
Member
Registered: 2011-05-11
Posts: 165

Re: System half destroyed after failed update

dodo3773 wrote:

Don't really see why a chroot is needed.

Quite right, if you're booting off  an Arch install cd you can use pacman directly. If you're using an non-arch live cd you have to download the packages you need to get pacman working manually, extract them to your install. Then you chroot in and reinstall those packages to get the pacman db up to date.

It's really much better to use the Arch install cd as that will keep the db in sync all the way through.

Offline

#8 2012-09-07 11:37:52

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

dodo3773 wrote:

Yeah, you're issue is not exactly the same. You will also have curl issues because you waited so long to update your system. If the glibc update went okay (you can check by doing "ls -l /lib" and making sure it points to -> usr/lib) then you can probably just boot an arch netinstall live cd and mount your root partition from a tty. After that just use pacman on the livecd to reinstall curl and pacman etc.. Something like this (assuming your / is on sda3):

mkdir /mnt/blah
mount /dev/sda3 /mnt/blah
pacman -r /mnt/blah -Su #or -S whateverapplication

Don't really see why a chroot is needed.

i think glibc is not okay.
nothing points to /usr/lib

Offline

#9 2012-09-07 16:53:47

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

b0b2 wrote:

i think glibc is not okay.
nothing points to /usr/lib

Install glibc then. "pacman -r /mnt/blah -S glibc". Since you're doing it from a livecd you can just move /lib to /usr/lib too and symlink it yourself if you wanted to.

Offline

#10 2012-09-10 16:27:29

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

thx
but whatever im trying to do with pacman returns:

error: failed to commit transaction (wrong or NULL argument passed)

Offline

#11 2012-09-10 17:40:47

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

b0b2 wrote:

thx
but whatever im trying to do with pacman returns:

error: failed to commit transaction (wrong or NULL argument passed)


Okay, lets back up. Post what you are doing step by step.

Offline

#12 2012-09-10 17:50:36

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

downloaded this: http://archlinux.limun.org/iso/2012.09.07/
put it on usb stick
booted from usb stick (x86)
mkdir /mnt/blah
mount /dev/sda3 /mnt/blah
connected laptop with router(lancabel)
pacman -r /mnt/blah -S glibc

Offline

#13 2012-09-10 18:05:14

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

Make sure you sync pacman first. Like this --> pacman -Syy

Offline

#14 2012-09-10 18:28:57

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

that worked but
pacman -r /mnt/blah -S glibc

returns
error:failed to commit transaction(conflicting files)
glibc: /mnt/blah/lib exists in filesystem

and --ignore filesystem wont help

Last edited by b0b2 (2012-09-10 19:02:22)

Offline

#15 2012-09-10 18:44:20

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

Try just creating the symlink yourself. Something like this (don't just copy and paste; understand what's going on):

cd /mnt/blah
mv lib old_lib
ln -s usr/lib lib
pacman -r /mnt/blah -S glibc

Then give it another go.

Last edited by dodo3773 (2012-09-10 18:45:13)

Offline

#16 2012-09-10 19:11:59

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

same error still

cd /mnt/blah
returned:
chpwd:print:4: write error: no space left on device
but it changed the dir adn the other cmds seem to work.
now i have a lib@ folder and a lib_old folder and no lib folder

Offline

#17 2012-09-10 19:24:00

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

"write error: no space left on device". Is the partition completely full?

Offline

#18 2012-09-10 19:55:27

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

not sure
its downloading atm

Last edited by b0b2 (2012-09-10 20:04:18)

Offline

#19 2012-09-10 21:53:17

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

b0b2 wrote:

not sure
its downloading atm

Well to check disk space you just use "df -h" command. That should tell you.

Offline

#20 2012-09-11 00:19:23

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

2gigs left

Offline

#21 2012-09-11 00:30:09

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: System half destroyed after failed update

If you are using -r with pacman, it's a good idea to specify the --cachedir option as well so that your normal pacman cache stays in sync with what's on disk.

Did your / really just happen to have the partition number given in the example? That is, did you check that 3 shouldn't be something else on your system?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#22 2012-09-11 00:37:42

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

cfr wrote:

If you are using -r with pacman, it's a good idea to specify the --cachedir option as well so that your normal pacman cache stays in sync with what's on disk.

Did your / really just happen to have the partition number given in the example? That is, did you check that 3 shouldn't be something else on your system?

This ^^ is a really good question. On the other hand, 2 GB is not really that much space depending on what you are pulling into your system. I am not sure exactly how the check remaining space function works on pacman but you may want to make some room (clean out your cache etc..) and try and see if that fixes the issue.

Offline

#23 2012-09-11 00:38:32

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

pacman -r /mnt/blah -S glibc
worked finally

i did "mv lib old_lib" again and that lib@ disappeared big_smile

Last edited by b0b2 (2012-09-11 00:40:17)

Offline

#24 2012-09-11 00:40:17

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: System half destroyed after failed update

b0b2 wrote:

pacman -r /mnt/blah -S glibc
worked finally

Oh cool. Make sure you:

pacman -r /mnt/blah -Syu

before you reboot to test. You also may want to reinstall your kernel and graphics drivers now while you are in there. I would.

Last edited by dodo3773 (2012-09-11 00:41:16)

Offline

#25 2012-09-11 12:01:42

b0b2
Member
Registered: 2011-10-31
Posts: 51

Re: System half destroyed after failed update

dodo3773 wrote:
b0b2 wrote:

pacman -r /mnt/blah -S glibc
worked finally

Oh cool. Make sure you:

pacman -r /mnt/blah -Syu

before you reboot to test. You also may want to reinstall your kernel and graphics drivers now while you are in there. I would.

pacman -r /mnt/blah -Syu was succesful

what's the best way to " to reinstall your kernel and graphics drivers"?
pacman -r /mnt/blah -S linux
and
pacman -r /mnt/blah -S xf86-video-intel
?

i guess i have to mount proc and some more

Last edited by b0b2 (2012-09-11 12:03:50)

Offline

Board footer

Powered by FluxBB