|
|
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不能用,会丢工作的!! |
|