2

I am trying to install R4.0 package in the arm64 ubuntu server (focal) on th AWS. I followed the install instruction on this web site, https://rtask.thinkr.fr/installation-of-r-4-0-on-ubuntu-20-04-lts-and-tips-for-spatial-packages/ and worked without a hitch when installing R4.0 on the x86_64 ubuntu server. I tried potential solutions posted on the web but none has worked so far. At this point, I'd really appreciate any pointer to address this issue.

The error I get after firing sudo apt install r-base are as follows;

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 system info

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"

akh22
  • 191

1 Answers1

0

@Karel, That's what I thought. I tried manually compiple R 4.0.3 but am having some issues.

I am not 100% sure but a culprit of the issue may be r-api-4.0, as the aptitude output indicates; r-cran-boot : Depends: r-api-4.0 which is a virtual package and is not provided by any available package

@NObert, This is not the answer but the cache-policy output too long for the comment but a following is the entire output of apt cache-policy

apt-cache policy

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
akh22
  • 191