【发布时间】:2021-04-21 13:02:04
【问题描述】:
我已经尝试了好几天了。我想升级到最新版本的 R。我已遵循此链接上的建议: Problem installing R4.0 on LInux Mint 19.3
但对我来说,问题仍然存在。 当我这样做时
echo -e "\ndeb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/" | sudo tee -a /etc/apt/sources.list
then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get install r-base
我明白了
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-base : Depends: r-recommended (= 4.0.5-1.1804.0) but it is not going to be installed
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
W: Target Translations (en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:7
E: Unable to correct problems, you have held broken packages.
如果有人知道如何解决这个问题,我将永远感激不尽。
【问题讨论】:
-
不确定这是否是主要问题,但您的
/etc/apt/sources.list中似乎有重复条目。如果它们被配置为类似的存储库但略有不同,我想知道它是否会引入冲突。仅供参考,我更喜欢在/etc/apt/sources.list.d/的单个文件中添加个人(每个站点)deb 包存储库,而不是主sources.list文件;它似乎更易于维护,并且可以很好地分开。 -
我怀疑“你持有破损的包裹”也是一个问题。我在处理损坏/不完整/持有的包裹方面不够熟练,但请查看
dpkg -l | grep -Ev '^(ii|rc)'看看是否有什么突出的地方。 -
检查 r2evans cmets 后,尝试这些说明cloud.r-project.org/bin/linux/ubuntu
-
哦,是的,我确实在 /etc/apt/sources.list 中有重复的条目我想我需要这个 deb cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ 但我同时拥有上述和前者是 deb cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
-
当我到达 ~$ apt install --no-install-recommends software-properties-common dirmngr 时,我确实尝试按照此处的说明进行操作 cloud.r-project.org/bin/linux/ubuntu software-properties-common 已经是最新版本(1.8.4)。 dirmngr 已经是最新版本(2.2.4-1ubuntu1.4)。 0 个已升级,0 个新安装,0 个要移除,19 个未升级。
标签: r linux ubuntu installation