R Debianのインストール - エラー

R Debianのインストール - エラー

仮想マシンからRをダウンロードしようとしていますが、何らかの理由で次のエラーが発生します。

~$ sudo apt install r-base
Reading package lists... Done
Building dependency tree       
Reading state information... 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.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.6.3-1~bustercran.0) but it is not going to be installed
      Depends: r-recommended (= 3.6.3-1~bustercran.0) but it is not going to be installed
      Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

実行すると、sudo nano /etc/apt/sources.list以下が表示されます。

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
deb https://cloud.r-project.org/bin/linux/debian buster-cran35/

実行すると、apt-cache policy r-base以下が表示されます。

r-base:
Installed: (none)
Candidate: 3.6.3-1~bustercran.0
Version table:
 3.6.3-1~bustercran.0 500
    500 https://cloud.r-project.org/bin/linux/debian buster-cran35/ Packages
 3.6.2-1~bustercran.0 500
    500 https://cloud.r-project.org/bin/linux/debian buster-cran35/ Packages
 3.6.1-2~bustercran.0 500
    500 https://cloud.r-project.org/bin/linux/debian buster-cran35/ Packages
 3.6.0-2~bustercran.0 500
    500 https://cloud.r-project.org/bin/linux/debian buster-cran35/ Packages
 3.6.0-1~bustercran.0 500
    500 https://cloud.r-project.org/bin/linux/debian buster-cran35/ Packages
 3.3.3-1 500
    500 http://deb.debian.org/debian stretch/main amd64 Packages

何が問題なのか知っていますか?

ベストアンサー1

/etc/apt/sources.list基本オペレーティングシステムのパッケージリポジトリはバージョンコード名を使用し、stretchRリポジトリ識別子には名前が含まれますbuster

2つの異なるDebianバージョン用のパッケージを混在させたい:Debian 9 "stretch"とDebian 10 "buster"。これはサポートしていないそして問題を引き起こすことが知られています。

Debian 9 は正規終了日である 2020 年 7 月 6 日を過ぎ、長期サポート状態にあり、2022 年に終了することが予想されます。 Debian 11 は新しい安定版になる予定なので、スムーズなアップグレードのためにはシステムを Debian 10 "buster" に完全にアップグレードする必要があります。アップグレードプロセスはDebian 10リリースノートに記載されています。アップグレードする前に注意深くお読みください。

Debian 11 がリリースされ、それぞれ新しいバージョンである Debian 10 と Debian 9 になると、stableリポジトリの切り替え時期があります。これにより、新しい状態が世界中の Debian リポジトリにミラーリングされている間に一時的な混乱が発生する可能性があります。このプロセス中は、からへのアップグレードを実行したくありません。oldstableoldoldstablestretchbuster

おすすめ記事