sagemathinc / cocalc-docker

DEPRECATED (was -- Docker setup for running CoCalc as downloadable software on your own computer)
https://cocalc.com
Other
398 stars 103 forks source link

Installing Latest R (using CRAN's instruction), Update VSCode to 4.8.3 #169

Closed tmrlvi closed 1 year ago

tmrlvi commented 1 year ago

R

According to https://cran.r-project.org/bin/linux/ubuntu/, CRAN provides the newest R in their own repository. I modified the R installation to follow their recommendation

VScode

The current VSCode version is quite old. I have updated the version to support integration of VSCode with github behind the proxy.

williamstein commented 1 year ago

I'll merge and test this. With R I may have to revert it since I've frequently had major issues with non-official R package repos.

williamstein commented 1 year ago

Here is how it fails on aarch64:

Reading package lists...
Repository: 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'
Description:
Archive for codename: jammy-cran40/ components: 
More info: https://cloud.r-project.org/bin/linux/ubuntu
Adding repository.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_cloud_r-project_org_bin_linux_ubuntu-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_cloud_r-project_org_bin_linux_ubuntu-jammy.list

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
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.2.2.20221110-1.2204.0) but it is not going to be installed
          Depends: r-recommended (= 4.2.2.20221110-1.2204.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt install -y --no-install-recommends software-properties-common dirmngr   && wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc    | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc   && add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"   && apt install -y --no-install-recommends r-base' returned a non-zero code: 100

real    0m8.728s
user    0m0.167s
sys     0m0.194s