I have merged seamonkey-bin 1.1.1 and want to unmerge it. This gives me: mithrandir ksp # emerge --unmerge seamonkey-bin www-client/seamonkey-bin selected: 1.1.1 protected: none omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging www-client/seamonkey-bin-1.1.1... Traceback (most recent call last): File "/usr/bin/emerge", line 5481, in ? retval = emerge_main() File "/usr/bin/emerge", line 5462, in emerge_main mtimedb["ldpath"]): File "/usr/bin/emerge", line 3566, in unmerge vartree=vartree, ldpath_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 3948, in unmerge ldpath_mtimes=ldpath_mtimes) File "/usr/lib/portage/pym/portage.py", line 6973, in unmerge vartree=self.vartree) File "/usr/lib/portage/pym/portage.py", line 3561, in doebuild mysettings, debug=debug, free=1, logfile=logfile) File "/usr/lib/portage/pym/portage.py", line 2203, in spawn returnpid=True, fd_pipes={0:pr, 1:fd_pipes[1], 2:fd_pipes[2]})) File "/usr/lib/portage/pym/portage_exec.py", line 160, in spawn raise CommandNotFound(mycommand[0]) portage_exception.CommandNotFound: tee My portage version is: mithrandir ksp # emerge -p portage These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-apps/portage-2.1.2.2 Unmerging has worked so far with all other version of portage. Reproducible: Always Steps to Reproduce:
Funny thing: I can use "tee" as in e.g.: echo "kim" | tee test.test but which tee returns which: no tee in ((null))
I'd say it's pretty obvious *why* you get the traceback: portage_exception.CommandNotFound: tee Did you mess with PATH? Do you have /usr/bin/tee? You should, since it's part of coreutils. If you don't, you've probably done something bad to your system. If for some reason you don't have tee, you can use the busybox tee to "fix" coreutils: ln -s /bin/busybox /usr/bin/tee
> returns > which: no tee in ((null)) That tells me that your PATH is screwed up, but even with an empty path, I don't get that output. agaffney@kagome ~ $ PATH= /usr/bin/which tee /usr/bin/which: no tee in () I can get it if I set PATH="(null)", however.
Thanks #2 your trick worked. I *might* have messed up my system. But I can't think of anything that I have done wrong as I run a stable system and always follow emerge log advises. But you probably know better, and your trick fixed my problem so FIXED or me.
Anyway, not a portage bug...