[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.

[SOLVED] Looks like I hosed my system with pacman

Postby caderoux » Sat Sep 15, 2012 2:03 am

$this->bbcode_second_pass_code('', '[root@alarm ~]# pacman -Syu
:: 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
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): binutils-2.22-10 filesystem-2012.8-1 glibc-2.16.0-4
gtk-update-icon-cache-2.24.12-1 gtk2-2.24.12-1 kmod-10-1
syslog-ng-3.3.6-1 v8-3.13.7-1

Total Download Size: 18.24 MiB
Total Installed Size: 109.01 MiB
Net Upgrade Size: -1.45 MiB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
glibc-2.16.0-4-arm 7.6 MiB 778K/s 00:10 [######################] 100%
binutils-2.22-10-arm 3.0 MiB 877K/s 00:04 [######################] 100%
filesystem-2012.8-1-any 5.8 KiB 4.77M/s 00:00 [######################] 100%
kmod-10-1-arm 85.8 KiB 1123K/s 00:00 [######################] 100%
syslog-ng-3.3.6-1-arm 299.4 KiB 434K/s 00:01 [######################] 100%
:: Retrieving packages from extra...
gtk-update-icon-cac... 10.2 KiB 2.18M/s 00:00 [######################] 100%
gtk2-2.24.12-1-arm 6.2 MiB 783K/s 00:08 [######################] 100%
:: Retrieving packages from community...
v8-3.13.7-1-arm 987.1 KiB 820K/s 00:01 [######################] 100%
(8/8) checking package integrity [######################] 100%
(8/8) loading package files [######################] 100%
(8/8) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
filesystem: /etc/profile.d/locale.sh exists in filesystem
filesystem: /usr/share/man/man7/archlinux.7.gz exists in filesystem
Errors occurred, no packages were upgraded.
')
So then stupidly (I mean I didn't update any of those files myself, so I figured it was just some package changing something), I did:

$this->bbcode_second_pass_code('', '[root@alarm ~]# 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
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): binutils-2.22-10 filesystem-2012.8-1 glibc-2.16.0-4
gtk-update-icon-cache-2.24.12-1 gtk2-2.24.12-1 kmod-10-1
syslog-ng-3.3.6-1 v8-3.13.7-1

Total Installed Size: 109.01 MiB
Net Upgrade Size: -1.45 MiB

Proceed with installation? [Y/n]
(8/8) checking package integrity [######################] 100%
(8/8) loading package files [######################] 100%
(8/8) checking available disk space [######################] 100%
(1/8) 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.
')
Now I've got no pacman and no ls"

$this->bbcode_second_pass_code('', '-bash: /usr/bin/pacman: No such file or directory
-bash: /bin/ls: No such file or directory
')
Where to go from here?
Last edited by caderoux on Fri Sep 28, 2012 7:33 pm, edited 1 time in total.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby Socaltom » Sat Sep 15, 2012 2:51 am

https://wiki.archlinux.org/index.php/Pa ... tall_it.3F

The Archwiki Canberra very helpful.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Looks like I hosed my system with pacman

Postby WarheadsSE » Sat Sep 15, 2012 2:52 am

Use a linux machine/vm to rm /lib and ls -s /usr/lib /lib ... make sure it is empty first.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Looks like I hosed my system with pacman

Postby karog » Sat Sep 15, 2012 4:10 am

$this->bbcode_second_pass_quote('WarheadsSE', 'U')se a linux machine/vm to rm /lib and ls -s /usr/lib /lib ... make sure it is empty first.

Typo: ln rather than ls.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: Looks like I hosed my system with pacman

Postby caderoux » Sat Sep 15, 2012 5:03 am

I figured I could remove the SATA drive I was booting with and boot with the original USB drive I used when I first prepped the pogoplug months ago and then repair the SATA drive after boot. However, I only got a flashing green light.

I tried to revert, and still only get the flashing green light - it's not responding to a ping on the IP address I reserved for it. I see occasional flashes of amber from the NIC and green on the hub.

Is this totally bricked now?
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby WarheadsSE » Sat Sep 15, 2012 5:45 am

I have a feeling its fixable, but a serial would make it much easier.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Looks like I hosed my system with pacman

Postby caderoux » Sat Sep 15, 2012 11:50 am

So there's some way to attach an RS-232/tty terminal to the board internally?

I have to admit, I do find this little thing quite useful - I use it to manage my Raspberry Pi images and write to SD cards with native Linux tools and have been using it with sabnzbd and also as a ftp host for my home security cameras.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby pepedog » Sun Sep 16, 2012 12:52 am

$this->bbcode_second_pass_quote('caderoux', '[')code][root@alarm ~]# pacman -Syu
:: 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
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): binutils-2.22-10 filesystem-2012.8-1 glibc-2.16.0-4
gtk-update-icon-cache-2.24.12-1 gtk2-2.24.12-1 kmod-10-1
syslog-ng-3.3.6-1 v8-3.13.7-1

Total Download Size: 18.24 MiB
Total Installed Size: 109.01 MiB
Net Upgrade Size: -1.45 MiB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
glibc-2.16.0-4-arm 7.6 MiB 778K/s 00:10 [######################] 100%
binutils-2.22-10-arm 3.0 MiB 877K/s 00:04 [######################] 100%
filesystem-2012.8-1-any 5.8 KiB 4.77M/s 00:00 [######################] 100%
kmod-10-1-arm 85.8 KiB 1123K/s 00:00 [######################] 100%
syslog-ng-3.3.6-1-arm 299.4 KiB 434K/s 00:01 [######################] 100%
:: Retrieving packages from extra...
gtk-update-icon-cac... 10.2 KiB 2.18M/s 00:00 [######################] 100%
gtk2-2.24.12-1-arm 6.2 MiB 783K/s 00:08 [######################] 100%
:: Retrieving packages from community...
v8-3.13.7-1-arm 987.1 KiB 820K/s 00:01 [######################] 100%
(8/8) checking package integrity [######################] 100%
(8/8) loading package files [######################] 100%
(8/8) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
filesystem: /etc/profile.d/locale.sh exists in filesystem
filesystem: /usr/share/man/man7/archlinux.7.gz exists in filesystem
Errors occurred, no packages were upgraded.
[/code]
So then stupidly (I mean I didn't update any of those files myself, so I figured it was just some package changing something), I did:

$this->bbcode_second_pass_code('', '[root@alarm ~]# 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
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): binutils-2.22-10 filesystem-2012.8-1 glibc-2.16.0-4
gtk-update-icon-cache-2.24.12-1 gtk2-2.24.12-1 kmod-10-1
syslog-ng-3.3.6-1 v8-3.13.7-1

Total Installed Size: 109.01 MiB
Net Upgrade Size: -1.45 MiB

Proceed with installation? [Y/n]
(8/8) checking package integrity [######################] 100%
(8/8) loading package files [######################] 100%
(8/8) checking available disk space [######################] 100%
(1/8) 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.
')
Now I've got no pacman and no ls"

$this->bbcode_second_pass_code('', '-bash: /usr/bin/pacman: No such file or directory
-bash: /bin/ls: No such file or directory
')
Where to go from here?

I just battled with this
$this->bbcode_second_pass_code('', '/usr/lib/ld-linux.so.3 /usr/bin/pacman <whatever>')
Until I got thru it
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 » Sun Sep 16, 2012 1:26 am

Well, I figured it couldn't hurt to try to go back and boot the SATA - figured it wouldn't since the revert attempt. Oddly enough it does appear to have a solid green light now, but doesn't appear to be picking up an IP address...

I'll see what a port scan shows.

It looks like Amazon has Pogoplug 4 for $49 right now, so I've got another one on the way. Two bricks are better than one...
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: Looks like I hosed my system with pacman

Postby caderoux » Sun Sep 16, 2012 1:29 am

Port scan isn't showing any device that could be the pogoplug. These headless systems are a pain. WarheadSE, if you have pointers to making a serial cable and attaching and getting a console, I'd be grateful. If nothing else, it would be useful to have.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 16 guests