|
一直是把python-3.x写进/etc/portage/package.mask里面的. 平安无事的用着python-2.6, 但昨天一升级发现很多包都要python-3.1, 索性把它从package.mask里面去掉.
把python-3.1.1-r1装上后, 想把python2.6从系统去掉, 用eselect python set python3.1 转到python3.1后, 发现emerge 不能用, 用python-updater也不能用, revdep-rebuild 也不行.
- li@cliffordli ~ $ sudo eselect python list
- Available python interpreters:
- [1] python2.6
- [2] python3.1 *
- li@cliffordli ~ $ emerge --info
- File "/usr/bin/emerge", line 41
- except PermissionDenied, e:
- ^
- SyntaxError: invalid syntax
- li@cliffordli ~ $ sudo python-updater
- File "/usr/bin/portageq", line 52
- print "ERROR: insufficient parameters!"
- ^
- SyntaxError: invalid syntax
- * Unable to proceed. Can not find PORTDIR. Make sure the command:
- *
- * portageq portdir
- * returns a value. If it doesn't, make sure you have updated to
- * latest portage version.
- *
- * Report bugs to http://bugs.gentoo.org/
复制代码
头大了, 用eselect 换回2.6后正常. 怎么平安过渡到3.1呢? |
|