You are not logged in.

#1 2013-12-25 02:29:33

aka1g
Member
Registered: 2013-05-14
Posts: 31

[SOLVED] Help repair after the frozen system update

Hi,
just ran pacman -Syua and it froze at some point extracting the packages.
After the reboot it only logs into the text console, spitting the errors.
Trying the update again brings error while loading shared libraries libcurl.so.4 too short (this message applies to other libs as well)
Moreover some of the execs are 0 bytes (ls, cat and so on)
Please suggest how to repair this from the archiso or any other way!!!

Last edited by aka1g (2013-12-25 10:59:08)

Offline

#2 2013-12-25 03:14:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Help repair after the frozen system update

What is "-Syua"? pacman doesn't have an -a switch.

Chroot in an look at pacman's log; you will need to provide exact error messages for what went wrong.



Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-12-25 03:39:28

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

Nothing interesting in the pacman.log - starting a full system upgrade the last line.
Then a few lines of ^@^@^@^@ symbols.
Can I do a pacstrap base and then do a reinstall of all the packages then? It seems that some of the essential files are zeroed out.

Offline

#4 2013-12-25 04:03:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Help repair after the frozen system update

I'd be more concerned to try and work out what went wrong. Is there anything in the journal, or dmesg?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-12-25 05:24:02

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

Nothing in the journal, last entry is sudo log of update.
Any other place to look at? Really need to get the OS back smile

Offline

#6 2013-12-25 07:54:46

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

Any suggestions please?

Offline

#7 2013-12-25 09:41:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Help repair after the frozen system update

You haven't provided any information that could usefully help diagnose your issue. No logs, nothing but something about "spitting errors", but no actual error messages or any other diagnostics.
You say there is "nothing interesting" in pacman's log, but that is clearly the most obvious place for any relevant information related to a failed update.

You also haven't answered my question about "pacman -Syua".


Please read How To Ask Questions The Smart Way before you post again.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2013-12-25 10:03:30

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

I have described the nature of the problem: the libraries and execs are 0 bytes. Therefore I can't use the system.
There is NOTHING of interest in the logs, I have described that as well. I don't want to waste time on retyping their contents, but pacman log and journal do not contain any information besides what I've provided.

This happened after the update froze and I reset the PC.
Lets assume there was a hdd failure caused by the reset. Now I need to reinstall the packages.
I have booted from the arch install, trying the pacstrap -i /mnt base
It says a lot of warning: xxxx is up to date - --reinstalling
then error: could not open /mnt/var/<path>libreoffice-smth No such file (ok, again lost data)
then looking for inter-conflicts
error:
gcc: requires gcc-libs=4.8.2-6
then it quits
Pleas help to proceed with this or suggest another solution

Offline

#9 2013-12-25 10:23:35

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

Ok, installed pacman and gcc into the target via pacstrap.
This solved the gcc req-t issue.
Now trying to install base - getting a lot of
checking for file conflicts:
coreutils: /mnt/usr/bin/[ exists in filesystem
.....
errors occured, no packages were upgraded.
Ideas? Why does it quits on conflicts - shouldn't it reinstall?

Offline

#10 2013-12-25 10:40:01

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

Ok, edited the pacstrap to add the --force option.
Now how can I reinstall all the packages in the system (some are yaourt-ed)

Offline

#11 2013-12-25 10:58:43

aka1g
Member
Registered: 2013-05-14
Posts: 31

Re: [SOLVED] Help repair after the frozen system update

Got it fixed.
For anyone who ever needs to fix the system after a weird crash.
Reinstalled the packages: ran pacman -Qeq to get a list of all the installed.
Manually removed the aur -ones.
Ran pacman -S --force --noconfirm `cat packagelist.txt`

Offline

Board footer

Powered by FluxBB