M. *_*its 3 installation apt regex
我正在尝试安装当前位于 Ubuntu 存储库中的所有R 软件包,但其中一个除外:
但是,当我这样做时,sudo apt-get install 'r-cran-*'我收到一个错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-cran-mass : Conflicts: r-cran-vr
Run Code Online (Sandbox Code Playgroud)
好的,所以我想忽略这个冲突。 如何? 我看到了标志--ignore-missing,但这是冲突吗?我没有看到任何选项--ignore-conflicted?
computer:~> sudo apt-get install 'r-cran-*' --ignore-conflict
E: Command line option --ignore-conflict is not understood
computer:~> sudo apt-get install 'r-cran-*' --ignore-conflicted
E: Command line option --ignore-conflicted is not understood
Run Code Online (Sandbox Code Playgroud)
安装能力 ,启动全屏文本模式界面,然后选择所有r-cran-包。大多数 R 包都在该gnu-r部分中,+在部分标题上键入将安装该部分中的所有包。要获得更精确的匹配,请按l限制显示并输入正^r-cran-则表达式,然后按+“未安装的软件包”行。您将收到一个冲突通知,您可以通过按.几次然后!验证解决方案来解决该通知。
您也可以从命令行使用 aptitude。aptitude '~n^r-cran-.*'选择所有 r-cran- 软件包进行安装,然后选择您想要的冲突解决方案。
如果您不想使用 aptitude 或想要非交互式解决方案,则可以使用 生成软件包列表apt-cache r-cran-,因此:
apt-get install $(apt-cache r-cran- | grep -Fvx r-cran-vr)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4424 次 |
| 最近记录: |