Skip to content

Instantly share code, notes, and snippets.

@johnkerl
Created June 18, 2024 16:06
Show Gist options
  • Save johnkerl/651c12e9d9a2500b007c33d2291f7bb3 to your computer and use it in GitHub Desktop.
Save johnkerl/651c12e9d9a2500b007c33d2291f7bb3 to your computer and use it in GitHub Desktop.
ubuntu@larch[prod][][~]$ sudo apt install software-properties-common dirmngr -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dirmngr is already the newest version (2.2.27-3ubuntu2.1).
software-properties-common is already the newest version (0.99.22.9).
The following packages were automatically installed and are no longer required:
gfortran gfortran-11 libblas-dev libbz2-dev libgfortran-11-dev liblapack-dev liblzma-dev libpcre16-3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev
libpcre2-posix3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpng-dev libpng-tools libreadline-dev linux-aws-6.5-headers-6.5.0-1014
linux-headers-6.5.0-1014-aws linux-image-6.5.0-1014-aws linux-modules-6.5.0-1014-aws
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ubuntu@larch[prod][][~]$ wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBEy9tcUBCACnWQfqdrcz7tQL/iCeWDYSYPwXpPMUMLE721HfFH7d8ErunPKP
Iwq1v4CrNmMjcainofbu/BfuZESSK1hBAItOk/5VTkzCJlzkrHY9g5v+XlBMPDQC
9u4AE/myw3p52+0NXsnBz+a35mxJKMl+9v9ztvueA6EmLr2xaLf/nx4XwXUMSi1L
p8i8XpAOz/Xg1fspPMRhuDAGYDnOh4uH1jADGoqYaPMty0yVEmzx74qvdIOvfgj1
6A/9LYXk67td6/JQ5LFCZmFsbahAsqi9inNgBZmnfXO4m4lhzeqNjJAgaw7Fz2zq
UmvpEheKKClgTQMWWNI9Rx1L8IKnJkuKnpzHABEBAAG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BTdqV1gbwk+vZ6iEw1mqnYEbah1zPDl5o7mXkROMLWcdSMNSby6zdNXcBc
5qMCOC4a+kbcMqfH+Ca52swFVIAQTriR5/IGZJHrzfOReHD42BtMgP1dbU5KoT58
tB/RnNASiMx19gh5XxDmwwCZTcn0B2WnIOtlphGaKmGDDw9lMxqGHP+joHPunpWo
Dg1yavbbmee0iyNRTPSIrpOxo6L0qsXbdHD4gNQl5iR1VvAapq+AkbUAEQEAAYkB
PAQYAQoAJgIbDBYhBOKYo6glwNZd/VfLtlFxZhnghNq5BQJfdcYKBQkf4HjFAAoJ
EFFxZhnghNq5J2MH/13zMlB45Qire0mklv3z/Q0HVHTgV8QTRWNdb2GTOQAWQjJZ
rupkz/MlwmFejoSJo1uM/Dhb19PNnLyVQ7onHBd7+aeKJ+Tbzlw2dHkgjO3bkRVF
VBg0U2xg5a7NXlqSoaAzWi+py6bQR+Qj1AIbZNL9s24LSUfazPc2hO7TsNQoOUCG
BQ8zvot2oRXOe/4lOmjaYFTb13KXr5ozrKzkm66p07QM5lXmrdsgterKUDdf00+z
EXG+vo+j5qnz77TghahivkZip3FwW5APP+/8fWrQRSMzBToFWGZuLri4uef+P/7D
2jiqon7LxHKcTkL+MajTgwrtuH5bI7hL2445uew=
=xbQ3
-----END PGP PUBLIC KEY BLOCK-----
ubuntu@larch[prod][][~]$ gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
pub rsa2048 2010-10-19 [SCA] [expires: 2027-09-30]
E298A3A825C0D65DFD57CBB651716619E084DAB9
uid Michael Rutter <marutter@gmail.com>
sub rsa2048 2010-10-19 [E] [expires: 2027-09-30]
pub rsa2048 2010-10-19 [SCA] [expires: 2027-09-30]
E298A3A825C0D65DFD57CBB651716619E084DAB9
uid Michael Rutter <marutter@gmail.com>
sub rsa2048 2010-10-19 [E] [expires: 2027-09-30]
pub rsa2048 2010-10-19 [SCA] [expires: 2027-09-30]
E298A3A825C0D65DFD57CBB651716619E084DAB9
uid Michael Rutter <marutter@gmail.com>
sub rsa2048 2010-10-19 [E] [expires: 2027-09-30]
ubuntu@larch[prod][][~]$ sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
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.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-https_cloud_r-project_org_bin_linux_ubuntu-jammy.list
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_cloud_r-project_org_bin_linux_ubuntu-jammy.list
Found existing deb-src entry in /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
Hit:1 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]
Hit:4 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:5 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:6 http://us-east-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Fetched 129 kB in 1s (142 kB/s)
Reading package lists... Done
ubuntu@larch[prod][][~]$ sudo apt install -y r-base r-base-dev
Reading package lists... Done
Building dependency tree... Done
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.4.1-1.2204.0) but 4.1.2-1ubuntu2 is to be installed
Depends: r-recommended (= 4.4.1-1.2204.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
r-base-dev : Depends: r-base-core (>= 4.4.1-1.2204.0) but 4.1.2-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu@larch[prod][][~]$ lsb_release -cs
jammy
sudo apt install software-properties-common dirmngr -y
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt install -y r-base r-base-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment