如何安装推荐的包

Pau*_*per 0 apt dependencies software-installation

在 Ubuntu 14.04 上

$ dpkg --get-selections  | grep ^aspell
$ apt-cache depends aspell
aspell
  Depends: libaspell15
  Depends: libc6
  Depends: libncursesw5
  Depends: libstdc++6
  Depends: libtinfo5
  Depends: dictionaries-common
  Suggests: aspell-doc
  Suggests: spellutils
 |Recommends: aspell-en
 |Recommends: <aspell-dictionary>
    aspell-ca
    aspell-am
    aspell-ar
    aspell-ar-large
    aspell-bg
    aspell-br
    aspell-cs
    aspell-cy
    aspell-de
    aspell-de-alt
    aspell-el
    aspell-en
    aspell-eo
    aspell-eo-cx7
    aspell-es
    aspell-et
    aspell-eu-es
    aspell-fa
    aspell-fo
    aspell-fr
    aspell-ga
    aspell-gl-minimos
    aspell-he
    aspell-hr
    aspell-hsb
    aspell-hu
    aspell-hy
    aspell-id
    aspell-is
    aspell-it
    aspell-kk
    aspell-ku
    aspell-lt
    aspell-lv
    aspell-nl
    aspell-pl
    aspell-pt-br
    aspell-pt-pt
    aspell-ro
    aspell-ru
    aspell-sk
    aspell-sl
    aspell-sv
    aspell-tl
    aspell-uk
    aspell-uz
  Recommends: <aspell6a-dictionary>
    aspell-da
    aspell-no
  Breaks: <aspell-bin>
  Breaks: <aspell-bin:i386>
  Replaces: <aspell-bin>
  Replaces: <aspell-bin:i386>
  Replaces: aspell-hi
  Replaces: <aspell-hi:i386>
  Replaces: aspell-mr
  Replaces: <aspell-mr:i386>
  Conflicts: aspell:i386
Run Code Online (Sandbox Code Playgroud)

然后

apt-get install --install-recommends aspell
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  aspell-en
Suggested packages:
  aspell-doc spellutils
The following NEW packages will be installed:
  aspell aspell-en
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 0 B/346 kB of archives.
After this operation, 711 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Run Code Online (Sandbox Code Playgroud)

为什么不安装推荐的软件包,例如aspell-ca?我需要做什么来安装这些?

Tho*_*ard 5

您误解了命令的输出。

它已经根据您的语言设置为您提供了推荐的安装包,以及您在“推荐:”行中看到的包类别中最有可能的包aspell-en,即英文词典。系统很可能不会为所有支持的不同语言安装所有词典(这无论如何都没有意义,因为您可能不会使用它们)。aspell


然而...

如果你想一些支持其他语言,你可能会需要单独安装它们,例如,如果你想en(英文)和es(西班牙),则:sudo apt-get install aspell-en aspell-es (这将安装aspell-en,如果没有安装它,而且在安装西班牙语字典aspell-es

如果你想要所有其他的,你可能必须用一个像这样的大命令来安装它们(请注意,这个命令目前没有经过测试,可能会引发冲突。我也不知道为什么你想要所有的所有不同语言的字典,因为想要安装所有您打算使用的语言疯狂的):

sudo apt-get install aspell-ca \
    aspell-am \
    aspell-ar \
    aspell-ar-large \
    aspell-bg \
    aspell-br \
    aspell-cs \
    aspell-cy \
    aspell-de \
    aspell-de-alt \
    aspell-el \
    aspell-en \
    aspell-eo \
    aspell-eo-cx7 \
    aspell-es \
    aspell-et \
    aspell-eu-es \
    aspell-fa \
    aspell-fo \
    aspell-fr \
    aspell-ga \
    aspell-gl-minimos \
    aspell-he \
    aspell-hr \
    aspell-hsb \
    aspell-hu \
    aspell-hy \
    aspell-id \
    aspell-is \
    aspell-it \
    aspell-kk \
    aspell-ku \
    aspell-lt \
    aspell-lv \
    aspell-nl \ 
    aspell-pl \
    aspell-pt-br \
    aspell-pt-pt \
    aspell-ro \
    aspell-ru \
    aspell-sk \
    aspell-sl \
    aspell-sv \
    aspell-tl \
    aspell-uk \
    aspell-uz \
    aspell-da \
    aspell-no
Run Code Online (Sandbox Code Playgroud)