LinuxSir.cn,穿越时空的Linuxsir!

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

update時的依賴問題

[复制链接]
发表于 2008-10-8 13:55:59 | 显示全部楼层 |阅读模式
今天update突然發現有許多包要安裝,很多都是我不需要的,比如libbonobo2-0,gnome-mime-data等,于是就查看了一下:

$ aptitude why libbonobo2-0
i   xorg           Depends  xterm | x-terminal-emulator
p   gnome-terminal Provides x-terminal-emulator        
p   gnome-terminal Depends  libbonobo2-0 (>= 2.15.0)   

$ aptitude why gnome-mime-data
i   xorg                Depends  xterm | x-terminal-emulator   
p   gnome-terminal      Provides x-terminal-emulator           
p   gnome-terminal      Depends  libgnomeui-0 (>= 2.17.1)      
p   libgnomeui-0        Depends  libgnomevfs2-0 (>= 1:2.17.90)
p   libgnomevfs2-0      Depends  libgnomevfs2-common (< 1:2.23)
p   libgnomevfs2-common Depends  gnome-mime-data               

發現這些包都是因為 gnome-terminal 的依賴,而gnome-terminal 是由于xorg的依賴。
可是xorg依賴的是 xterm 或 x-terminal-emulator,而我已經裝了 xterm,且由下面可知,我安裝了konsole,也就有了x-terminal-emulator:

$ aptitude show x-terminal-emulator
No current or candidate version found for x-terminal-emulator
Package: x-terminal-emulator
State: not a real package
Provided by: aterm, aterm-ml, eterm, gnome-terminal, konsole, konsole-kde4, kterm, mlterm, mlterm-tiny, mrxvt, mrxvt-cjk, mrxvt-mini,
             powershell, pterm, roxterm, rxvt, rxvt-beta, rxvt-ml, rxvt-unicode, rxvt-unicode-lite, rxvt-unicode-ml, terminal.app, tilda,
             wterm, wterm-ml, xfce4-terminal, xterm, xvt

可是為何還非要安裝gnome-terminal,導致多安裝那麽多包呢?
請教有方法解決嗎?
发表于 2008-10-8 15:25:12 | 显示全部楼层
你用了几个源?
回复 支持 反对

使用道具 举报

发表于 2008-10-8 18:57:01 | 显示全部楼层
可能有些是推荐的吧,不一定必须,我以前搜过:
可以将下面的代码写入15recommends,拷贝到/etc/apt/apt.conf.d目录下:
APT {
        Install-Recommends "false";
};
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-9 10:45:39 | 显示全部楼层
Post by fender010;1891740
你用了几个源?
這是我使用的源:
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

# KDE 4
deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-9 11:01:12 | 显示全部楼层
Post by simon22543;1891803
可能有些是推荐的吧,不一定必须,我以前搜过:
可以将下面的代码写入15recommends,拷贝到/etc/apt/apt.conf.d目录下:
APT {
        Install-Recommends "false";
};
我覺得這個原因的可能性大,因為我使用Adept查看各個term時,只有gnome-terminal前有“ubuntu”標志,而xterm, konsole前都沒有。
而且使用aptitude升級時,不會安裝這些包,使用Adept升級時,卻要安裝它們。
難道是Adept把Recommend當作Depend了?

請問gnome-terminal是哪個包Recommend的,如何看?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-9 11:22:02 | 显示全部楼层
我知道了,那些update不是由gnome-terminal引起的。

因為我的 gtk-qt-engine 要由qt3升級為qt4,增加了一個Depend: libbonoboui2-0,所有那些要新安裝的包都是libbonoboui2-0帶來的,依賴關係如下:

Dependency information will be shown.

The following NEW packages will be automatically installed:
  gnome-mime-data (D: libgnomevfs2-common) gnome-mount (R: libgnomevfs2-0) libavahi-glib1 (D: libgnomevfs2-0)
  libbonobo2-0 (D: libbonoboui2-0, D: libgnome2-0) libbonobo2-common (D: libbonobo2-0) libbonoboui2-common (D: libbonoboui2-0)
  libgail-common (D: libgnomecanvas2-0) libgail18 (D: libgail-common, D: libgnomecanvas2-0)
  libgnome2-0 (D: libbonoboui2-0, R: launchpad-integration, S: xdg-utils) libgnome2-common (D: libgnome2-0)
  libgnomecanvas2-0 (D: libbonoboui2-0) libgnomecanvas2-common (D: libgnomecanvas2-0)
  libgnomevfs2-0 (D: libbonoboui2-0, D: libgnome2-0, D: libgnomevfs2-extra, D: policykit-gnome)
  libgnomevfs2-common (D: libgnomevfs2-0, D: libgnomevfs2-extra) libgnomevfs2-extra (R: libgnomevfs2-0)
  libpolkit-gnome0 (D: policykit-gnome) policykit-gnome (D: gnome-mount, R: policykit)
The following packages have been kept back:
  gtk-qt-engine
The following NEW packages will be installed:
  gnome-mime-data gnome-mount libavahi-glib1 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libgail-common libgail18
  libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra
  libpolkit-gnome0 policykit-gnome
0 packages upgraded, 18 newly installed, 0 to remove and 1 not upgraded.
Need to get 2309kB of archives. After unpacking 25.1MB will be used.
Do you want to continue? [Y/n/?]


可惜奇怪的是,

$ aptitude why libbonoboui2-0
i   xorg           Depends  xterm | x-terminal-emulator
p   gnome-terminal Provides x-terminal-emulator        
p   gnome-terminal Depends  libgnomeui-0 (>= 2.17.1)   
p   libgnomeui-0   Depends  libbonoboui2-0 (>= 2.15.1)

還是顯示libgnomeui-0是由gnome-terminal依賴的,而不是由gtk-qt-engine依賴的。可見 aptitue why <packet> 這個命令不準確,誤導人啊
回复 支持 反对

使用道具 举报

发表于 2008-10-9 12:47:46 | 显示全部楼层
Post by davix;1891991
這是我使用的源:
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

# KDE 4
deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main


你时ubuntu吗?kde和上面的不是一个源吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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