[SOLVED] Looks like I hosed my system with pacman

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Looks like I hosed my system with pacman

Postby moonman » Sun Sep 16, 2012 3:48 am

There are many guides on the net on how to make a serial cable. My suggestion to you would be to try netconsole first. As for the serial, get a USB to ttl adapter instead of those nokia cables.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Looks like I hosed my system with pacman

Postby caderoux » Sun Sep 16, 2012 4:03 am

To use netconsole, it sounds like I have to already be able to boot into the pogoplug and SSH in?

http://forum.doozan.com/read.php?3,14,14
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby moonman » Sun Sep 16, 2012 5:07 am

What device do you have? You mentioned that you have a sata port so i assumed you have a seagate goflex net/home. If so, then netconsole is already enabled.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Looks like I hosed my system with pacman

Postby doogy » Mon Sep 17, 2012 4:14 pm

I got same issue here. after pacman -Syuf then I lost bash and all command under /usr/bin or /bin.
My pink Pogo got update without error. But Raspberry Pi got error.

$this->bbcode_second_pass_code('', '[root@borae_pi ~]# pacman -Syu
:: Synchronizing package databases...
core 38.1 KiB 381K/s 00:00 [###############################################################] 100%
extra 429.8 KiB 615K/s 00:01 [###############################################################] 100%
community 418.3 KiB 753K/s 00:01 [###############################################################] 100%
alarm 4.6 KiB 1613K/s 00:00 [###############################################################] 100%
aur is up to date
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] n

:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (9): binutils-2.22-10 dnsutils-9.9.1.P3-1 filesystem-2012.8-1 glibc-2.16.0-4 initscripts-2012.08.3-2 linux-headers-raspberrypi-3.2.27-5
linux-raspberrypi-3.2.27-5 pacman-4.0.3-3 raspberrypi-firmware-20120914-1

Total Download Size: 38.49 MiB
Total Installed Size: 147.77 MiB
Net Upgrade Size: 0.47 MiB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
glibc-2.16.0-4-arm 7.6 MiB 1113K/s 00:07 [###############################################################] 100%
binutils-2.22-10-arm 3.0 MiB 1173K/s 00:03 [###############################################################] 100%
dnsutils-9.9.1.P3-1-arm 298.1 KiB 1179K/s 00:00 [###############################################################] 100%
filesystem-2012.8-1-any 5.8 KiB 193K/s 00:00 [###############################################################] 100%
initscripts-2012.08.3-2-any 23.1 KiB 340K/s 00:00 [###############################################################] 100%
linux-headers-raspberrypi-3.2.27-5-arm 4.4 MiB 1161K/s 00:04 [###############################################################] 100%
linux-raspberrypi-3.2.27-5-arm 12.3 MiB 1171K/s 00:11 [###############################################################] 100%
pacman-4.0.3-3-arm 1020.8 KiB 1173K/s 00:01 [###############################################################] 100%
:: Retrieving packages from alarm...
raspberrypi-firmware-20120914-1-any 9.8 MiB 1105K/s 00:09 [###############################################################] 100%
(9/9) checking package integrity [###############################################################] 100%
(9/9) loading package files [###############################################################] 100%
(9/9) checking for file conflicts [###############################################################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.
[root@borae_pi ~]# pacman -Syuf
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] n

:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (9): binutils-2.22-10 dnsutils-9.9.1.P3-1 filesystem-2012.8-1 glibc-2.16.0-4 initscripts-2012.08.3-2 linux-headers-raspberrypi-3.2.27-5
linux-raspberrypi-3.2.27-5 pacman-4.0.3-3 raspberrypi-firmware-20120914-1

Total Installed Size: 147.77 MiB
Net Upgrade Size: 0.47 MiB

Proceed with installation? [Y/n]
(9/9) checking package integrity [###############################################################] 100%
(9/9) loading package files [###############################################################] 100%
(9/9) checking available disk space [###############################################################] 100%
(1/9) upgrading glibc [###############################################################] 100%
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.
[root@borae_pi ~]# pacman -Syf
-bash: /usr/bin/pacman: No such file or directory
')

When I ssh on pi, then i got followed error. and close connection.

$this->bbcode_second_pass_code('', '[root@XXXXXXXX ~]# pi <-- this is alias for pi ssh connection.
root@1XX.1XX.0XX.1XX's password:
Last login: Sat Sep 15 12:49:31 2012 from XXXXXXX.home
/bin/bash: No such file or directory
Connection to 1XX.1XX.0XX.1XX closed.
')
Pink Pogo, Raspberry pi
doogy
 
Posts: 10
Joined: Tue Mar 06, 2012 4:00 pm

Re: Looks like I hosed my system with pacman

Postby caderoux » Mon Sep 17, 2012 4:34 pm

$this->bbcode_second_pass_quote('moonman', 'W')hat device do you have? You mentioned that you have a sata port so i assumed you have a seagate goflex net/home. If so, then netconsole is already enabled.


This is a Series 4 Pogoplug.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby pepedog » Mon Sep 17, 2012 6:19 pm

$this->bbcode_second_pass_code('', '/usr/lib/ld-2.16.so /bin/rm -r /lib
/usr/lib/ld-2.16.so /usr/bin/pacman -S glibc
pacman -Syu')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Looks like I hosed my system with pacman

Postby caderoux » Mon Sep 17, 2012 6:41 pm

$this->bbcode_second_pass_quote('pepedog', '[')code]/usr/lib/ld-2.16.so /bin/rm -r /lib
/usr/lib/ld-2.16.so /usr/bin/pacman -S glibc
pacman -Syu[/code]


So this probably would have worked before I shut it down, and now I can't get back in, so it's probably moot. Will try some more things tonight.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby pepedog » Mon Sep 17, 2012 7:20 pm

If you could mount the drive elsewhere, could could perhaps
cd /path-to-media
rm -fr lib
ln -s usr/lib lib
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Looks like I hosed my system with pacman

Postby caderoux » Mon Sep 17, 2012 7:23 pm

$this->bbcode_second_pass_quote('pepedog', 'I')f you could mount the drive elsewhere, could could perhaps
cd /path-to-media
rm -fr lib
ln -s usr/lib lib


Right, I'm going to try that. But I'm worried that the thing still won't boot because of whatever is going on with the flashing green light and the attempt to boot from USB and the attempt to revert to PogoPlug.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am
Top

Re: Looks like I hosed my system with pacman

Postby pepedog » Mon Sep 17, 2012 7:50 pm

Maybe just rename the lib directory might be safer, not remove?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 1 guest