簡體   English   中英

無法在 Linux Mint 19.1 Tessa 上安裝 R 4.0

[英]Unable to install R 4.0 on Linux Mint 19.1 Tessa

我已經嘗試了好幾天了。 我想升級到最新版本的 R。 我已遵循在此鏈接上找到的建議: Problem installed 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.

如果有人知道如何解決這個問題,我將永遠感激不盡。

W: Target Translations (en_US) 在 /etc/apt/sources.list:5 和 /etc/apt/sources.list:7 中配置了多次

刪除源中的重復條目(第 5 行和第 7 行):

sudo sed -i '7d' /etc/apt/sources.list

以下軟件包具有未滿足的依賴關系: r-base: Depends: r-recommended (= 4.0.5-1.1804.0) 但不會安裝

使用以下命令:

sudo apt update
sudo apt install --no-install-recommends r-base

這個帖子:

https://unix.stackexchange.com/a/612316/367012

說 Mint 在添加存儲庫方面與 Ubuntu 不同,並建議手動編輯存儲庫列表,

$ sudo xed /etc/apt/sources.list.d/additional-repositories.list

添加:

deb cloud.r-project.org/bin/linux/ubuntu bionic-cran40/

保存並退出編輯器,然后更新 package 列表:

$ sudo apt update

這篇文章: https://askubuntu.com/a/1113944/968912建議首先刪除所有以前版本的 R。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM