LinuxSir.cn,穿越时空的Linuxsir!

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

想用koffice2,加入experimental也装不了,怎么办?

[复制链接]
发表于 2009-9-29 17:39:42 | 显示全部楼层 |阅读模式
已加入anheng 的 experimental 源,具体信息如下:

====================================================

zhoutj@debian:~/software/h3c802.1xClient$ sudo aptitude -t experimental install koffice
Reading package lists... Done                                                         
Building dependency tree                                                               
Reading state information... Done                                                      
Reading extended state information                                                     
Initializing package states... Done                                                   
Reading task descriptions... Done                                                      
The following packages are BROKEN:                                                     
  kword                                                                                
The following NEW packages will be installed:                                          
  dcraw{a} karbon{a} kchart{a} koffice koffice-data{a} koffice-libs{a} kplato{a}      
  kpresenter{a} krita{a} krita-data{a} kspread{a} kthesaurus{a} kword-data{a}         
  latex-xft-fonts{a} libglew1.5{a} libgraphicsmagick3{a} libwpd8c2a{a}                 
  libwpg-0.1-1{a} ttf-lyx{a}                                                           
0 packages upgraded, 20 newly installed, 0 to remove and 60 not upgraded.              
Need to get 18.3MB of archives. After unpacking 56.8MB will be used.                  
The following packages have unmet dependencies:                                       
  kword: Depends: libwv2-3 which is a virtual package.                                 
The following actions will resolve these dependencies:                                 

Keep the following packages at their current version:
koffice [Not Installed]                              
kword [Not Installed]                                

Score is -9872

Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

zhoutj@debian:~/software/h3c802.1xClient$

==============================================

上面信息什么意思,“kword BROKEN“, 什么意思,难道源上的kword 包不完整?还是其它, 求达人解决一下! 谢谢。
发表于 2009-9-29 20:07:15 | 显示全部楼层
debian 的四级源结构中,只有 stable 是内部封闭的。也就是说 stable 的软件依赖的所有组件都能在 stable 中找到。而  testing  unstable  experimental  是向下封闭的,也就是说 testing 无 bug 的情况下绝对不会依赖 unstable 的组件,但是可能依赖 stable 的组件。

具体到你的例子,experimental 中的 kword 2.0.82 依赖 unstable 中的 libwv2-3。一般习惯上,使用某一高级别源时应同时添加其下的所有低级别源。源列表不应是 stable + experimental 的结构,而是 stable + testing + unstable + experimental,升级时可以把优先级设为 stable,这样特性和稳定性兼顾。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-29 21:43:57 | 显示全部楼层
原来是这么回事阿。按照debian官方手册的建议,我的debian主要用于桌面,故采用testing源。你说的”升级时可以把优先级设为 stable“,这个具体到命令怎么设置?
回复 支持 反对

使用道具 举报

发表于 2009-9-29 23:01:30 | 显示全部楼层
你说的”升级时可以把优先级设为 stable“,这个具体到命令怎么设置?

我之前只知道在新立得的图形界面中可以设置。至于命令行,没试过不能确定,可以参考下面的内容。

搜索 apt 中的  --target-release  参数。

/etc/apt/preferences 的升级策略

http://www.host01.com/article/se ... 621409214613513.htm
http://wiki.debian.org/AptPreferences

粗略看了一下,应该能做到维持日常的 testing 更新并单独追踪 experimental 的 koffice2。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-30 09:44:38 | 显示全部楼层
安装  KOFFICE 2 的问题解决了,十分感谢 AutoXBC ,非常感谢。

另外,我的 debian /etc/apt/ 目录下没有 preference 升级策略文件,能否提供模板参考一下,我想:

1. 采用 testing 源
2. 维护 iceweasel-3.5 和 koffice2 软件包。

我自己照楼上的链接《debian 软件包管理详解》写了一个文件,相关参数似懂非懂,不过我知道这个策略文件只能升级 testing 源的软件,如果想单独维护非 testing 源的软件包该如何增加安装升级策略?

自己的 策略文件 preference 内容如下:
=======================
Package:*
Pin:release a=testing
Pin-Priority:600

Package:*
Pin:release a=unstable
Pin-Priority:50

Package:*
Pin:release a=experimental
Pin-Priority:-1
=======================

sources.list 已经文件加了 testing , unstable , experimental  源。
回复 支持 反对

使用道具 举报

发表于 2009-9-30 18:25:38 | 显示全部楼层
  1. Package:*
  2. Pin:release a=experimental
  3. Pin-Priority:10

  4. Package:iceweasel
  5. Pin:release a=experimental
  6. Pin-Priority:700
复制代码

或许这样可以?
回复 支持 反对

使用道具 举报

发表于 2009-10-5 23:23:03 | 显示全部楼层
koffice2里的东西垃圾得很
稳定性差得要死
目前为止感觉完全不可用
回复 支持 反对

使用道具 举报

发表于 2009-10-6 00:59:36 | 显示全部楼层
希望你的回帖对大家有用要有建设性的内容,希望获得大家的帮助要有细节描述,这样上来打一棒子没什么意思。
回复 支持 反对

使用道具 举报

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

本版积分规则

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