LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 706|回复: 7

完蛋了!!upgrade失败! python无法使用了!!

[复制链接]
发表于 2006-8-1 15:42:01 | 显示全部楼层 |阅读模式
upgrade时,提示一个错误,python-tk包错误,让用-f参数
rainFlower:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies.
  idle-python2.3: Depends: python2.3 but it is not installed
                  Depends: python2.3-tk (>= 2.4.3)or
                           python-tk (>= 2.4.3-2) but 2.4.3-1 is installed
  koffice-libs: Depends: python2.3 (>= 2.3) but it is not installed
  python: Depends: python2.3 (>= 2.3.5-14) but it is not installed
E: Unmet dependencies. Try using -f.

于是apt-get -f upgrade
可是完了显示:
dpkg: error processing python-tk (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted
rainFlower:~# Errors were encountered while processing:
python-tk

rainFlower:~# apt-get install python-tk
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  idle-python2.3: Depends: python2.3 but it is not going to be installed
  koffice-libs: Depends: python2.3 (>= 2.3) but it is not going to be installed
  python: Depends: python2.3 (>= 2.3.5-14) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


rainFlower:~# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies...Done
The following extra packages will be installed:
  python-tk python2.3
Suggested packages:
  tix python2.3-doc python2.3-profiler
Recommended packages:
  python2.3-cjkcodecs python2.3-iconvcodec python2.3-japanese-codecs
The following NEW packages will be installed
  python2.3
The following packages will be upgraded:
  python-tk
1 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
98 not fully installed or removed.
Need to get 0B/3162kB of archives.
After unpacking 9994kB of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: error processing python-tk (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted
rainFlower:~# Errors were encountered while processing:
python-tk


天哪!这个怎么办呢?!陷入循环了!
python不能用,会丢工作的!!
发表于 2006-8-1 16:06:56 | 显示全部楼层
是不是源有问题啊?把那个源删了,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-1 16:11:23 | 显示全部楼层
debian.okey.net sid的源阿
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-1 16:33:50 | 显示全部楼层
OK! OK!  换了个源,重新apt-get upgrade -f
好了!!


谢谢!
跪谢楼上的!!!!!
回复 支持 反对

使用道具 举报

发表于 2006-8-1 16:47:06 | 显示全部楼层
不知有没有系统恢复功能,可以试一下
回复 支持 反对

使用道具 举报

发表于 2006-8-1 17:47:09 | 显示全部楼层
我用的是铁通宽代,联接质量很差,有很多地方都联不上,不过有的时候又能联上,所以你的情况应该和我差不多
回复 支持 反对

使用道具 举报

发表于 2006-8-1 22:29:00 | 显示全部楼层
不用换源,dpkg -P --force-depends python2.3然后重新装python2.3就OK
回复 支持 反对

使用道具 举报

发表于 2006-8-1 22:29:06 | 显示全部楼层
不用换源,dpkg -P --force-depends python2.3然后重新装python2.3就OK
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表