在 debian 中安裝了 R 2.4 但未安裝 R 2.13

在 debian 中安裝了 R 2.4 但未安裝 R 2.13

我正在嘗試在新升級到 debian 的 NAS 中安裝 R,但出現瞭如下奇怪的情況:

NAS-01G:/home/nas01g# apt-get install r-base
Reading Package Lists... Done
Building Dependency Tree... Done
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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  r-base: Depends: r-base-core (>= 2.11.0-1~etchcran.0) but 2.4.0.20061125-1 is to be     installed
          Depends: r-recommended (= 2.11.0-1~etchcran.0) but 2.4.0.20061125-1 is to be installed
E: Broken packages
NAS-01G:/home/nas01g#

發生了什麼事?

答案1

您可能將錯誤的 CRAN 儲存庫新增至您的sources.list檔案。請按照以下說明進行操作

http://mirrors.softliste.de/cran/bin/linux/debian/README.html

用於您的 Debian 安裝。您可以透過查看以下內容來檢查您正在使用的 Debian 版本

cat /etc/debian_version

相關內容