Ubuntu 10.10默认python是2.6
Ubuntu 11.04默认python是2.7 这个问题貌似在debian上也会出现 现象就是升级python2.7 python2.7-minimal时提示
Preconfiguring packages ...
Setting up python2.7-minimal (2.7.1-1ubuntu4) ...
Linking and byte-compiling packages for runtime python2.7...
E: pycompile:240: Requested versions are not installed
dpkg: error processing python2.7-minimal (--configure):
subprocess installed post-installation script returned error exit status 3
Errors were encountered while processing:
python2.7-minimal 问题详述可见 https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/693001问题出在python2.7-minimal的postinst脚本会去执行
/usr/share/python/runtime.d/public_modules.rtinstall
脚本,在public_modules.rtinstall中需要执行
pycompile -V 2.7 /usr/lib/python2.7 ,而这时候python2.7根本还没装,就导致循环出错了 相关讨论见 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600529解决方法:
在提示出错后,修改 /usr/share/python/runtime.d/public_modules.rtinstall ,注释掉所有的内容,
然后 apt-get -f install 待正常后,再执行一次 pycompile -V 2.7 /usr/lib/python2.7/dist-packages 就行了 openSUSE安装8192无线网卡驱动Gentoo Linux下Adobe AIR运行环境的安装相关资讯 Ubuntu教程
- Ubuntu教程 - 使用Ubuntu拷贝CD和 (12/18/2013 14:38:16)
- 让Ubuntu 12.10支持RAR和7Z文件解 (11/15/2012 18:51:50)
- Windows 7硬盘安装Ubuntu 12.10图 (11/03/2012 19:22:47)
| - 完美安装Ubuntu 12.10最新AMD显卡 (11/27/2012 08:17:47)
- Win 7硬盘安装Ubuntu 12.10 (11/05/2012 13:30:34)
- 虚拟机上Ubuntu 11.10升级到12.04 (10/12/2012 20:00:38)
|
本文评论 查看全部评论 (0)