DO NOT disconnect ssh session.
Read
here, the stuff in subscript only.
EDIT: I'll post it here so you can read it:
$this->bbcode_second_pass_quote('', 'I')f you are stuck with this error:
$this->bbcode_second_pass_code('', 'error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.')
There is a way to force the upgrade and not break the system. Make sure you you don't close ssh session before you finish. If you do, you won't be able to log back in. Here is what I did:
pacman -Syf pacman
say Y to all questions
You will get this error:
$this->bbcode_second_pass_code('', 'warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
error: extract: not overwriting dir with file lib
error: problem occurred while upgrading glibc
call to execv failed (No such file or directory)
error: command failed to execute correctly
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.')
Now delete /lib
$this->bbcode_second_pass_code('', '/usr/lib/ld-linux.so.3 /bin/rm -Rf /lib')
install glibc again:
$this->bbcode_second_pass_code('', '
/usr/lib/ld-linux.so.3 /usr/bin/pacman -Sy glibc')
Now do a full upgrade. Everything should be working now.
Troubleshooting:
If, after you are done, pacman is not upgrading, do this:
$this->bbcode_second_pass_code('', '/usr/lib/ld-linux.so.3 /usr/bin/pacman -Suy')
then
$this->bbcode_second_pass_code('', ' /usr/lib/ld-linux.so.3 /usr/bin/pacman -Sy glibc')
Thanks to pepedog for suggeting to use ld-linux.so.3 directly
