[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get upgrade 出现错误



试一下下面四种解决方法:
1.1 $ aptitude update
1.2 $ aptitude -y full-upgrade
2.1 $  dpkg-reconfigure python-ropemacs
3.1 $ pkg --force-remove-reinstreq --remove python-ropemacs
4.1 $ rm /var/cache/apt/archives/*python-ropemacs*.deb
4.2 $ aptitude update
4.3 $ aptitude -y full-upgrade

On Sun, 2009-05-24 at 17:32 +0900, enzo fang wrote:
> apt-get upgrade后,在配置python-ropemacs时出现错误,我然后试着卸载
> python-ropemacs,此时报错
> 给出信息“该软件包现在的状态极为不妥 - 您最好能在删除它之前再重新安装一
> 次“。然后我就重装,安装时出错,
> 错误信息在邮件最下面。
> apt-get 安装或卸载其他软件时也会因为这个错误中断不能正常进行,有没有解
> 决的办法??
> 
> 下面是控制台错误信息:
> 正预备替换 python-ropemacs 0.6c2-3 (使
> 用 .../python-ropemacs_0.6c2-4_all.deb) ...
> Traceback (most recent call last):
>   File "/usr/bin/pycentral", line 2096, in <module>
>     main()
>   File "/usr/bin/pycentral", line 2090, in main
>     rv = action.run(global_options)
>   File "/usr/bin/pycentral", line 1550, in run
>     pkg.read_version_info()
>   File "/usr/bin/pycentral", line 804, in read_version_info
>     raise PyCentralError, "package has no field Python-Version"
> __main__.PyCentralError: package has no field Python-Version
> dpkg:警告 - 原先的 pre-removal 脚本 退出时返回了错误号 1
> dpkg - 现转而试用新软件包所带的脚本...
> Traceback (most recent call last):
>   File "/usr/bin/pycentral", line 2096, in <module>
>     main()
>   File "/usr/bin/pycentral", line 2090, in main
>     rv = action.run(global_options)
>   File "/usr/bin/pycentral", line 1550, in run
>     pkg.read_version_info()
>   File "/usr/bin/pycentral", line 804, in read_version_info
>     raise PyCentralError, "package has no field Python-Version"
> __main__.PyCentralError: package has no field Python-Version
> dpkg:处理 /var/cache/apt/archives/python-ropemacs_0.6c2-4_all.deb
> (--unpack)时出错:
>  子进程 新的 pre-removal 脚本 返回了错误号 1
> Traceback (most recent call last):
>   File "/usr/bin/pycentral", line 2096, in <module>
>     main()
>   File "/usr/bin/pycentral", line 2090, in main
>     rv = action.run(global_options)
>   File "/usr/bin/pycentral", line 1386, in run
>     pkg.read_version_info()
>   File "/usr/bin/pycentral", line 804, in read_version_info
>     raise PyCentralError, "package has no field Python-Version"
> __main__.PyCentralError: package has no field Python-Version
> dpkg: 作下列清理工作时发生错误:
>  子进程 post-installation script 返回了错误号 1
> 在处理时有错误发生:
>  /var/cache/apt/archives/python-ropemacs_0.6c2-4_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> -- 
> Best Regards


Reply to: