You are not logged in.

#1 2011-05-08 18:52:17

semog
Member
Registered: 2010-08-08
Posts: 26

[solved] after update bash can login PLEASE HELP!!!

hi, i update my laptop today and it update a new version of bash then laptop freeze i try to change to tty1 but dont work, i push the power bottun turn laptop on and for my surprise i received a tty1 screen that show

"Arch Linux 2.6.38-ARCH ((none)) (tty1)

(none) login:"

i try to login as root but this message is showing

Cannot execute /bin/bash: Exec format error

i  need help im using this laptop to build a project for my degree and now i can acess to my data

please help me

Last edited by semog (2011-05-08 21:12:19)

Offline

#2 2011-05-08 19:00:56

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [solved] after update bash can login PLEASE HELP!!!

/bin/bash may have been corrupted. There may be a better way to do this but I would boot a LiveCD, chroot into your arch install, and then reinstall bash (pacman -S bash).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2011-05-08 19:10:23

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] after update bash can login PLEASE HELP!!!

you can't chroot into it if bash is broken.

you need to mount the root partition, set up the networking in the livecd and mirrorlist and do pacman -Sy -r /path/to/mounted/root bash


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2011-05-08 19:53:20

semog
Member
Registered: 2010-08-08
Posts: 26

Re: [solved] after update bash can login PLEASE HELP!!!

@wonder

i boot arch live cd
mount my drive sdb1 and do  pacman -Sy -r /mnt/sdb1/
pacman update i reboot and nothing change i do anything wrong?

Offline

#5 2011-05-08 19:54:10

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] after update bash can login PLEASE HELP!!!

you didn't install bash

pacman -Sy -r /mnt/sdb1/  bash


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2011-05-08 20:09:44

semog
Member
Registered: 2010-08-08
Posts: 26

Re: [solved] after update bash can login PLEASE HELP!!!

i try this 2 times to make shure im doing right but when i do pacman -Sy -r /mnt/sdb1/  bash this actualize pacman to 3.5 replace xz-utils with xz i do pacman-db-update and do the pacman command again and pacman update the repos and show me error: database not found


i was write the code wrong i forgot the -r
so now pacman try to install bash but show me a lot of files with the message existes in filesystem so Errors occurred, no packages were upgraded

Last edited by semog (2011-05-08 20:29:51)

Offline

#7 2011-05-08 21:10:50

xs
Member
From: San Jose, CA.
Registered: 2011-04-06
Posts: 92

Re: [solved] after update bash can login PLEASE HELP!!!

semog wrote:

show me a lot of files with the message existes in filesystem so Errors occurred, no packages were upgraded

Have you tried the -dd switch? (-dd skips all checks)


I like pie. Especially with a side of Arch.

Offline

#8 2011-05-08 21:11:52

semog
Member
Registered: 2010-08-08
Posts: 26

Re: [solved] after update bash can login PLEASE HELP!!!

solved!!!!
i just solve the problem since i cant update bash from live cd i copy bash from /bin/bash from my other machine and paste in my broken machine, and all work now
thaks for the help maybe exist a better way to solve this but for me this was the 1st thing that come to my mind after i cant do what you guiz sugest and work

thanks

Offline

Board footer

Powered by FluxBB