我期望使用以下任一命令python-omniorb-omg
进行安装,但实际上并没有安装。该软件包是recommended
根据python-omniorbRaring 中的描述。
$ sudo apt-get install --reinstall python-omniorb
$ sudo apt-get install --reinstall --install-recommends python-omniorb
我清除python-omniorb
并运行了下面最简单的命令,然后安装了推荐的软件包。虽然
$ sudo apt-get install python-omniorb
我是否遗漏了选项中的某些错误--reinstall
?
(我不确定python-omniorb
之前是如何安装的,而它的一个推荐软件包还没有安装)。
答案1
从apt-get
手册页:
install
...
This is also the target to use if you want to upgrade one or more
already-installed packages without upgrading every package you have
on your system. Unlike the "upgrade" target, which installs the
newest version of all currently installed packages, "install" will
install the newest version of only the package(s) specified. Simply
provide the name of the package(s) you wish to upgrade, and if a
newer version is available, it (and its dependencies, as described
above) will be downloaded and installed.
...
--reinstall
Re-Install packages that are already installed and at the newest version.
如果您提供install
已安装的软件包的名称,它将连同其依赖项一起升级(如果需要)。请注意,推荐的软件包不是一种依赖。
此外,--reinstall
仅重新安装已安装的软件包。
--install-recommends
在这种情况下没有效果,因为不会安装任何软件包(仅升级)。我认为这是预期的行为。如果您选择不安装(或删除)推荐的软件包,则每次升级时您都不希望安装该软件包。
也许由于下载失败(或者其他原因)导致第一次没有安装推荐的包。