Recovering from mishandling the Gentoo sys-libs/ss and sys-libs/com_err block of sys-fs/e2fsprogs

Worst case: a new admin didn’t read my previous note correctly, and in order to “resolve” the block unmerged ss and com_err without first fetching the new packages.  What do you do now?  You can’t rsync the files over from another server, nor does scp work.  A co-worker of mine used -pv instead of -av on his –featchonly emerge and ran into this problem.  I think he tried using a USB thumb drive to transfer the files as well, but either mount or the USB driver failed so even that didn’t work.  So what is one to do?  The solution is actually easier than I expected.  Unless you are very diligent about cleaning your machine, you probably still have copies of the old versions of the libraries on your system.  Type:

ls -l /usr/portage/distfiles/e2fsprogs*

This will give you a list of the versions of e2fsprogs you can install without downloading anything new.  If you are lucky, version 1.40.9 (or others) will still be there.  Then you can emerge the old versions back onto your system:

emerge -av –oneshot =sys-libs/ss-1.40.9 =sys-libs/com_err-1.40.9 =sys-fs/e2fsprogs-1.40.9

Other versions may work too, but this should get your system back into a state where you can do the –fetchonly of the new version and carry on with the upgrade.

Leave a Reply