我正在尝试在 AWS 上的 arm64 ubuntu 服务器 (focal) 中安装 R4.0 包。我按照此网站上的安装说明进行操作,https://rtask.thinkr.fr/installation-of-r-4-0-on-ubuntu-20-04-lts-and-tips-for-spatial-packages/在 x86_64 ubuntu 服务器上安装 R4.0 时,一切顺利。我尝试了网上发布的潜在解决方案,但到目前为止都没有奏效。此时,我真的很感激任何解决这个问题的指示。
射击后我得到的错误sudo apt install r-base
如下;
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 (>= 4.0.3-1.2004.0) but it is not going to be installed
Depends: r-recommended (= 4.0.3-1.2004.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
AWS 系统信息
neofetch --stdout
ubuntu@ip-172-31-17-200
-----------------------
OS: Ubuntu 20.04.1 LTS aarch64
Host: a1.metal 1.0
Kernel: 5.4.0-1029-aws
Packages: 797 (dpkg), 5 (snap)
Shell: zsh 5.8
Terminal: /dev/pts/0
CPU: (16)
cat /etc/os-release
NAME="Ubuntu"
ERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
答案1
@Karel,我也是这么想的。我尝试手动编译 R 4.0.3,但遇到了一些问题。
我不是 100% 确定,但问题的罪魁祸首可能是r-api-4.0
,正如 aptitude 输出所示; r-cran-boot : Depends: r-api-4.0 which is a virtual package and is not provided by any available package
@NObert,这不是答案,但缓存策略输出对于注释来说太长,但以下是 apt cache-policy 的完整输出
apt-cache 策略
apt-cache policy r-base r-base-core r-base-dev r-recommended
r-base:
Installed: (none)
Candidate: 4.0.3-1.2004.0
Version table:
4.0.3-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.2-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.1-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.0-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
3.6.3-2 500
500 http://us-east-2.ec2.ports.ubuntu.com/ubuntu-ports
focal/universe arm64 Packages
r-base-core:
Installed: (none)
Candidate: 3.6.3-2
Version table:
3.6.3-2 500
500 http://us-east-2.ec2.ports.ubuntu.com/ubuntu-ports
focal/universe arm64 Packages
r-base-dev:
Installed: (none)
Candidate: 4.0.3-1.2004.0
Version table:
4.0.3-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.2-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.1-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.0-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
3.6.3-2 500
500 http://us-east-2.ec2.ports.ubuntu.com/ubuntu-ports
focal/universe arm64 Packages
r-recommended:
Installed: (none)
Candidate: 4.0.3-1.2004.0
Version table:
4.0.3-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.2-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.1-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
4.0.0-1.2004.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Packages
3.6.3-2 500
500 http://us-east-2.ec2.ports.ubuntu.com/ubuntu-ports
focal/universe arm64 Packages