如果不安装 IBus 并删除 Ubuntu-desktop,则无法安装软件包

如果不安装 IBus 并删除 Ubuntu-desktop,则无法安装软件包

我有 Ubuntu Desktop 14.04 LTS。所以我试图解决 IntelliJ 抱怨 IBus 未更新到 1.5.11 的问题。所以我按照说明进行操作这里现在如果不删除 unity 我就无法安装任何软件包。apt-get告诉我运行,sudo apt-get install -f但它给了我这个:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libopencc1 libpyzy-1.0-0 python-ibus python-support
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  gnome-control-center gnome-control-center-data gnome-settings-daemon
  libgoa-backend-1.0-1
The following packages will be REMOVED:
  gir1.2-ibus-1.0 ibus ibus-pinyin ibus-table ubuntu-desktop
  unity-control-center unity-control-center-signon
  webaccounts-extension-common xul-ext-webaccounts
The following NEW packages will be installed:
  gnome-control-center gnome-control-center-data gnome-settings-daemon
  libgoa-backend-1.0-1
0 upgraded, 4 newly installed, 9 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 2,351 kB of archives.
After this operation, 2,876 kB of additional disk space will be used.
Do you want to continue? [Y/n]

apt-get 似乎希望我卸载 unity 并安装 gnome,但我不想这样做。我该如何解决这个问题?我有时会用其他语言输入,因此禁用 IBus 不是一个选择。我愿意安装类似的东西,scim但如果不执行此删除过程,我就无法安装任何东西。

如果我完成此操作,我可以重新安装 unity/ubuntu 桌面而不破坏我的安装吗?

答案1

ibus依赖于ubuntu-desktopunity-control-center。您的安装尝试可能会破坏它,导致 Ubuntu 需要删除ubuntu-desktopunity-control-center。如果您尝试删除sudo apt-get remove ibus,它还会告诉您:

The following packages will be REMOVED
ibus ibus-table ubuntu-desktop unity-control-center unity-control-center-signon

如果你检查依赖项列表ibus,你会看到它们

$ apt-cache rdepends ibus
ibus
Reverse Depends:
  ibus-mozc
    ibus:i386
  unity-settings-daemon
    ibus:i386
  ubuntu-gnome-desktop
    ibus:i386
  ibus-tegaki
    ibus:i386
  ibus-skk
    ibus:i386
  ibus-rime
    ibus:i386
  ibus-pinyin
    ibus:i386
  indicator-keyboard
  ibus-libthai
    ibus:i386
  ibus-kkc
    ibus:i386
  ibus-input-pad
    ibus:i386
  ibus-cangjie
    ibus:i386
  ibus-array
    ibus:i386
  gnome-control-center
    ibus:i386
  unity-settings-daemon
    ibus:i386
  unity-control-center
    ibus:i386
  unity-control-center
    ibus:i386
  ubuntu-desktop
    ibus:i386
  ibus-hangul
    ibus:i386
  ibus-unikey
    ibus:i386
  ibus-table
    ibus:i386
  ibus-m17n
    ibus:i386
  ibus-dbg
    ibus:i386
  ibus-anthy
    ibus:i386
  ibus-chewing
    ibus:i386
  gnome-settings-daemon
    ibus:i386

现在你别无选择,只能删除它们,然后通过启动命令重新安装unity

sudo apt-get install ubuntu-desktop

我确信一切都会恢复正常。

相关内容