使用 Ubuntu Focal,我在 /etc/apt/sources.list 中添加了一行:
deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
然后运行apt-get update
。
我想使用此存储库来安装 R 版本 4.3.1。apt list
显示版本可用:
root@51b8582cb4a0:/rcheology# apt list r-base-core
Listing... Done
r-base-core/focal-cran40 4.3.1-1.2004.0 amd64
r-base-core/focal 3.6.3-2 arm64
但apt-cache policy
不会:
root@51b8582cb4a0:/rcheology# apt-cache policy r-base-core
r-base-core:
Installed: (none)
Candidate: 3.6.3-2
Version table:
3.6.3-2 500
500 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages
如果我尝试安装 4.3.1 版本,系统找不到它:
root@51b8582cb4a0:/rcheology# apt install -y r-base-core/focal-cran40
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'focal-cran40' for 'r-base-core' was not found
root@51b8582cb4a0:/rcheology# apt install -y r-base-core=4.3.1-1.2004.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '4.3.1-1.2004.0' for 'r-base-core' was not found
我怎样才能让其识别并下载该版本?