Emerging just about anything on a system with baselayout-1.8.5.8 (or 1.8.5.9...uh, two systems, here) wants to update to baselayout 1.8.6.8-r1. It emerges with no problem, but when it tries to unmerge 1.8.5.8: sys-apps/baselayout selected: 1.8.5.8 protected: 1.8.6.8-r1 omitted: none >>> Packages in red are slated for removal. >>> Packages in green will not be removed. >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging sys-apps/baselayout-1.8.5.8... No package files given... Grabbing a set. --- !mtime obj /var/tmp/.keep --- !mtime obj /var/state/.keep --- !mtime obj /var/spool/.keep [ . . . blah blah blah . . . ] --- cfgpro obj /etc/conf.d/.keep --- cfgpro dir /etc/conf.d --- cfgpro obj /etc/DIR_COLORS --- !mtime obj /bin/wall --- !mtime obj /bin/utmpdump --- !mtime obj /bin/mesg --- !mtime obj /bin/last Traceback (most recent call last): File "/usr/bin/emerge", line 1783, in ? if 1==unmerge(myaction, myfiles): File "/usr/bin/emerge", line 1452, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,unmerge_action not in ["clean","prune"]) File "/usr/lib/python2.2/site-packages/portage.py", line 1879, in unmerge mylink.unmerge(trimworld=mytrimworld) File "/usr/lib/python2.2/site-packages/portage.py", line 4237, in unmerge objld=listdir(obj) File "/usr/lib/python2.2/site-packages/portage.py", line 124, in listdir list = os.listdir(mypath) OSError: [Errno 5] Input/output error: '/mnt/cdrom' Exact same thing happens on unmerging or cleaning 1.8.5.9...just substitute the appropriate version number. It doesn't seem to bother the computer at all, but I feel uneasy about it. And what the heck is up with the '/mnt/cdrom' at the end? Reproducible: Always Steps to Reproduce: 1. emerge -c baselayout 2. Watch it fail to clean baselayout-1.8.5.8 Actual Results: See "details" Expected Results: It should cleanly unmerge the old baselayout
`umount /mnt/cdrom` and try again *** This bug has been marked as a duplicate of 9849 ***
There was no CD-ROM in the drive. I can work around it by commenting out my /dev/cdrom line in /etc/fstab, rebooting, unmerging, uncommenting the line, and rebooting again. Not much of a fix, really...
look at the error ... OSError: [Errno 5] Input/output error: '/mnt/cdrom' something is up with that dir ... can you `touch /mnt/cdrom/.keep` ?
Something WAS up with that directory...any attempt to see the contents gave an I/O error. I deleted the directory, mkdir'd a new one, touched a .keep in it for good measure, and everything seems OK, now. Now that both machines have unmerged the old baselayout, I'll have to figure something out for additional experiments. :) Thanks for leading me down the right path!
np :)