Special thanks to pepedog for the PM which set me off in the right direction to get things working. Was real touch and go.
As he previously stated, use the following to access pacman:
- Code: Select all
/usr/lib/ld-2<hit tab key here> /usr/bin/pacman -Su
Next I did:
- Code: Select all
/usr/lib/ld-2.17.so /usr/bin/pacman -Syu --ignore filesystem,bash.pacman,glibc
That results in a lot of errors and warnings, however, it does get some packages updated. The errors are:
- Code: Select all
call to execv failed (No such file or directory)
error: command failed to execute correctly
After that, pacman would no longer run because libarchive had been updated. Tried to use LD_PRELOAD, but that didn't work. To work around that, I created a symlink from the currect libarchive to the version it said was missing. For me this was libarchive.so.13 to libarchive.so.12. Once I had pacman running again, I continued to move forward.
Next, I tried to create backup copies of /bin, /sbin, and /usr/sbin. Seems something had already deleted /bin at this point so I had to hope things would be okay. Next I created a backup copy of /usr/bin. Then I copied the contents of /sbin and /usr/sbin into /usr/bin.
Now I installed bash. I don't recall if I had to force it or not. After that, I installed glibc, filesystem, and pacman, together, forcing them. With paranoia in mind, I installed bash, glibc, and pacman again. Again, I don't recall if I had to force them again. Next I tried to install filesystem again. I do recall I had to force it again. Next I did filesystem, glibc, bash, and pacman. Once again forcing them. Ya...paranoia.
At this point commands like ls were working. So I decided to SSH into the box again, while maintaining my current SSH session. It worked! Since basic commands were working and it once again appeared I had SSH access, I rebooted the box. After reboot, I was once again able to SSH into the box.
At this point I proceeded to cleanup my backups created above and to delete my libarchive symlink.
So far, so good.
Again, thanks to pepedog for his helpful PM.
Next, is to tweak the system to allow for all memory to be available and install various packages I require.