trying to overwrite `/usr/bin/keditfiletype’, which is also in package kcontrol

来自http://tunps.com/trying-to-overwrite-usrbinkeditfiletype-which-is-also-in-package-kcontrol

因为前几天硬盘出现故障,老是进不了windows,没办法,开始不知道,傻傻的以为是系统问题,就安装了debian 5.02,也就是最新的debian/linux稳定版lenny。结果安装的时候也提示install failed , 昨天跑到白市一街上买了根sata数据线,结果机子尽然可以用了,难道真的是数据线的问题? 不过可以用就行了,不怕找不到娱乐工具了。

我安装的是debian 5.02 amd64的基本系统,以前一直用gnome,现在想换换胃口就安装了kde,主要是被kde4的华丽丽的界面给征服鸟。

找任意一个编辑器把一下内容写入/etc/apt/sources.list ,我重庆电信的,这个源是中国科大的,贼快哦。

deb http://211.86.156.210/debian/ unstable main non-free contrib
deb http://211.86.156.210/debian-multimedia/ unstable main
deb http://211.86.156.210/debian-security/ testing/updates main

debian 和 debian-multimedia 库都是用的unstable版本,因为只有unstable的kde版本才是最新的4.3 ,debian-security用来打安全补丁。

运行
apt-get update
apt-get install x-window-system kde
apt-get dist-upgrade
直接startx kde4.3就安装好了。

--------------------华丽丽分割现---------------

其实本来安装是没有这样的顺利的,本来开始用的是mirrors.163.com这个源,但是在apt-get dist-upgrade后,出现了下面的错误:

Preparing to replace kdebase-runtime 4:4.2.4-2 (using .../kdebase-runtime_4%3a4.3.0-1_amd64.deb) ...
Unpacking replacement kdebase-runtime ...
dpkg: error processing /var/cache/apt/archives/kdebase-runtime_4%3a4.3.0-1_i386.deb (--unpack):
 trying to overwrite `/usr/bin/keditfiletype', which is also in package kcontrol

看字面意思来解释,应该是kdebase-runtime_4:4.3.0-1_amd64.deb这个包和之前安装的kcontrol发生了冲突。google了半天,发现这个是个bug:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540009
修复的方法是:
cd /var/lib/dpkg/info
rm -rf kdebase-runtime.*
rm -rf kcontrol.*
apt-get -f install

然后换成科大的源,重新下载安装。 查看了kdebase-runtime_4.3.0-2的changlog,这个bug已经修正了:

   +++ Changes by Modestas Vainius:

   * Merge kdebase-runtime-data-common to kdebase-runtime-data.
   * Merge kdebase-runtime-bin-kde4 to kdebase-runtime.
   * kdebase-runtime conflicts with kcontrol. (Closes: #540009).
   * Urgency medium due to RC bugfix.
   * Add build depend on libslp-dev.

我后来查看了mirrors.163.com的套件库,已经修正的包是存在的:

kdebase-runtime_4.3.0-2_amd64.deb                  06-Aug-2009 00:03             2466466

但是我们用apt-get update 下载下来163的包索引文件:

Packages.bz2                                       05-Aug-2009 16:15             6028664

并没有及时的更新,日期是8月5日生成不信可以抓下来bzip2 -d -v Packages.bz2 然后 less Packages 搜索Filename: pool/main/k/kdebase-runtime 发现版本还是4.3.0-1。


[   ] Packages.bz2 11-Aug-2009 22:27 5.8M

上面这个是科大的,8月11日生成,这个:Wed, 05 Aug 2009 13:30:30 +0200 是bug修复的日期,可见及时更新Packages包索引是多么的重要啊。

snap-kde43

About tunpishuang

just 4 fun·····
This entry was posted in 未分类 and tagged . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>