Adding a repository or PPA in Pop!_OS 20.10

How to add a repository, sometimes refered to as a personal package archive (PPA), to Pop OS has changed in version 20.10. Added to Pop!_OS 20.10 s support for the deb822 repository format, as part of this, /etc/apt/sources.list is now deprecated. Many projects have documentation for adding a ppa that utilizes the sources.list file to set the web address where the ppa is located.

To add the R ppa, I created a new file /etc/apt/sources.list.d/R-updates.list and instead added the location to this file. The process of adding a key (for apt-secure) is the same as before as per the CRAN documentation.

Running the following will add a file called R-updates.list

sudo touch /etc/apt/sources.list.d/R-updates.list

Then append the file with the ppa location

echo “deb https://cloud.r-project.org/bin/linux/ubuntu groovy-cran40/” | sudo tee /etc/apt/sources.list.d/R-updates.list

If you already have R installed, run

sudo apt update && sudo apt upgrade

If not run

sudo apt update && sudo apt install r-base r-recommended


Posted

in

, , ,

by

Tags:

Comments

Leave a Reply