Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170099 - Cannot unmerge
Summary: Cannot unmerge
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-09 12:25 UTC by Kim Pedersen
Modified: 2007-03-09 12:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Pedersen 2007-03-09 12:25:28 UTC
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:
Comment 1 Kim Pedersen 2007-03-09 12:27:40 UTC
Funny thing:
I can use "tee" as in e.g.:
 echo "kim" | tee  test.test

but
which tee

returns 
which: no tee in ((null))
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2007-03-09 12:30:53 UTC
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
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-03-09 12:32:57 UTC
> 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.
Comment 4 Kim Pedersen 2007-03-09 12:36:23 UTC
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.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2007-03-09 12:55:20 UTC
Anyway, not a portage bug...