Raspberry Pi - Can not update the system

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Raspberry Pi - Can not update the system

Postby HunterRPIArch » Mon Jun 17, 2013 7:40 am

When I install the Archlinux for first time ussing Win32DiskImager, after I update the system running this commands:
# pacman -Sy pacman
# pacman -S haveged
# haveged -w 1024
# pacman-key --init
# pkill haveged
# pacman -Rs haveged
# pacman -S archlinux-keyring
# pacman-key --populate archlinux
# pacman -Syu --ignore filesystem
# pacman -S filesystem --force
# pacman -S sudo
# reboot

This first system update was all right.

After a while I tried to update the system again, running this commands:
# pacman -Sy pacman
# pacman -Syu --ignore filesystem

Also tried running these commands:
# pacman -Sy pacman
# pacman -Syu

Also tried running the original commands, but in all attempts Archlinux is corrupted and gives me the following error:
Errors occurred, no packages were upgraded.

At the moment NO commaNds are working! Everything is still there but even a ls or any command gives:
bash: /bin/ls: No such file or directory

Thanks for your replies.
HunterRPIArch
 
Posts: 7
Joined: Mon Jun 17, 2013 7:02 am

Re: Raspberry Pi - Can not update the system

Postby pepedog » Mon Jun 17, 2013 8:24 am

Does this work?
/usr/lib/ld-2.17.so /usr/bin/pacman -Syu --ignore filesystem,bash
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Raspberry Pi - Can not update the system

Postby HunterRPIArch » Mon Jun 17, 2013 2:28 pm

I tried a lot of combinations, but any works.

EDIT......
I tried execute this command:
/usr/lib/ld-2.17.so /usr/bin/pacman -Syu --ignore filesystem,bash

but....

(137/137) checking available disk space [############################] 100%
( 1/137) upgrading linux-api-headers [############################] 100%
( 2/137) upgrading tzdata [############################] 100%
( 3/137) upgrading glibc [############################] 100%
call to execv failed (No such file or directory)
error: command failed to execute correctly
( 4/137) upgrading attr [############################] 100%
( 5/137) upgrading acl [############################] 100%
( 6/137) upgrading archlinux-keyring [############################] 100%
call to execv failed (No such file or directory)
error: command failed to execute correctly

and so on with almost all packets.
HunterRPIArch
 
Posts: 7
Joined: Mon Jun 17, 2013 7:02 am

Re: Raspberry Pi - Can not update the system

Postby HunterRPIArch » Tue Jun 18, 2013 7:52 am

I think that the problem is updating glibc
but I do not know how to solve this for the Raspberry Pi
HunterRPIArch
 
Posts: 7
Joined: Mon Jun 17, 2013 7:02 am

Re: Raspberry Pi - Can not update the system

Postby pepedog » Tue Jun 18, 2013 8:29 am

As said, glibc is in trouble, try
/usr/lib/ld-2.17.so /usr/bin/pacman -S glibc
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Raspberry Pi - Can not update the system

Postby HunterRPIArch » Tue Jun 18, 2013 9:55 am

Hi pepedog, thanks for your help.
I try execute this command:
$this->bbcode_second_pass_code('', '/usr/lib/ld-2.17.so /usr/bin/pacman -S glibc')
but the result is the same:
$this->bbcode_second_pass_code('', 'glibc-2.17-5.1-armv6h 7.4 MiB 161K/s 00:47 [###################] 100%
(1/1) checking package integrity [###################] 100%
(1/1) loading package files [###################] 100%
(1/1) checking for file conflicts [###################] 100%
(1/1) checking available disk space [###################] 100%
(1/1) upgrading glibc [###################] 100%
call to execv failed (No such file or directory)
error: command failed to execute correctly')
After i try with this command, with the same result, i.e. error in system update:
$this->bbcode_second_pass_code('', '/usr/lib/ld-linux.so.3 /usr/bin/pacman -S glibc --ignore filesystem
...
...
call to execv failed (No such file or directory)
error: command failed to execute correctly')
HunterRPIArch
 
Posts: 7
Joined: Mon Jun 17, 2013 7:02 am

Re: Raspberry Pi - Can not update the system

Postby sdjf » Tue Jun 18, 2013 10:43 am

Which image are you updating (Feb, May, June, or one from 2012)? I wonder if the move of all binaries to /usr/bin (if that is where they all went) could be your problem if the file system on an earlier image has not been fixed in your installation.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: Raspberry Pi - Can not update the system

Postby pepedog » Tue Jun 18, 2013 1:59 pm

Can't be too old as it upgraded glibc without filesystem.
What do you have left in /bin /sbin and /usr/sbin
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Raspberry Pi - Can not update the system

Postby HunterRPIArch » Tue Jun 18, 2013 2:37 pm

The image is archlinux-hf-2013-02-11

Now i will download a new image (archlinux-hf-2013-06-06) and i will do all process of installation again.
HunterRPIArch
 
Posts: 7
Joined: Mon Jun 17, 2013 7:02 am

Re: Raspberry Pi - Can not update the system

Postby tomatoes5555 » Tue Jun 18, 2013 4:25 pm

MAKE SURE YOU DO A FULL SD CARD IMAGE BACKUP BEFORE YOU UPDATE!

I was on the 2013-2-11 image and after I ran this command "pacman -Syu --ignore filesystem", I rebooted to a kernel panic and had to reinstall everything! I ran the above command because "pacman -Syu" was giving me the "filesystem: /bin exists in filesystem" errors.
tomatoes5555
 
Posts: 4
Joined: Sat Jun 15, 2013 1:05 am

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 28 guests