Closed USMortality closed 2 years ago
Please try again with a step of apt update
in between. This is used numerous times each day in automated fashion (i.e. GitHub Actions) as well as manually. If you use the available bspm
interface it is even easier:
edd@rob:~$ docker run --rm -ti eddelbuettel/r2u:22.04 bash
root@a44b714feef1:/# install.r ggplot2
Install system packages as root...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Ign https://r2u.stat.illinois.edu/ubuntu jammy InRelease
Get:1 https://r2u.stat.illinois.edu/ubuntu jammy Release [5713 B]
Get:2 https://r2u.stat.illinois.edu/ubuntu jammy Release.gpg [793 B]
Hit http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 https://r2u.stat.illinois.edu/ubuntu jammy/main all Packages [6760 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:6 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 Packages [2179 kB]
Get:7 https://ppa.launchpadcontent.net/c2d4u.team/c2d4u4.0+/ubuntu jammy InRelease [18.1 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [584 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [946 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [764 kB]
Get:12 https://ppa.launchpadcontent.net/edd/misc/ubuntu jammy InRelease [18.1 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [486 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [568 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [8097 B]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [903 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [7277 B]
Get:18 https://ppa.launchpadcontent.net/marutter/rrutter4.0/ubuntu jammy InRelease [17.5 kB]
Get:19 https://ppa.launchpadcontent.net/c2d4u.team/c2d4u4.0+/ubuntu jammy/main amd64 Packages [974 kB]
Get:20 https://ppa.launchpadcontent.net/edd/misc/ubuntu jammy/main amd64 Packages [5250 B]
Get:21 https://ppa.launchpadcontent.net/marutter/rrutter4.0/ubuntu jammy/main amd64 Packages [7604 B]
Fetched 14.6 MB in 0s (0 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Get:1 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-cli amd64 3.4.1-1.ca2204.1 [1162 kB]
Get:2 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-colorspace amd64 2.0-3-1.ca2204.1 [2499 kB]
Get:3 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-fansi amd64 1.0.3-1.ca2204.1 [295 kB]
Get:4 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-farver amd64 2.1.1-1.ca2204.1 [1420 kB]
Get:5 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-glue amd64 1.6.2-1.ca2204.1 [143 kB]
Get:6 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-gtable all 0.3.1-1.ca2204.1 [154 kB]
Get:7 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-isoband amd64 0.2.6-1.ca2204.1 [1821 kB]
Get:8 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-rlang amd64 1.0.6-1.ca2204.1 [1449 kB]
Get:9 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-lifecycle all 1.0.3-1.ca2204.1 [112 kB]
Get:10 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-labeling all 0.4.2-1.ca2204.1 [61.0 kB]
Get:11 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-munsell all 0.5.0-1.ca2204.1 [231 kB]
Get:12 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-r6 all 2.5.1-1.ca2204.1 [83.2 kB]
Get:13 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-rcolorbrewer all 1.1-3-1.ca2204.1 [54.0 kB]
Get:14 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-viridislite all 0.4.1-1.ca2204.1 [1296 kB]
Get:15 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-scales all 1.2.1-1.ca2204.1 [587 kB]
Get:16 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-magrittr amd64 2.0.3-1.ca2204.1 [199 kB]
Get:17 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-utf8 amd64 1.2.2-1.ca2204.1 [135 kB]
Get:18 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-vctrs amd64 0.5.0-1.ca2204.1 [1191 kB]
Get:19 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-pillar all 1.8.1-1.ca2204.1 [619 kB]
Get:20 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-pkgconfig all 2.0.3-1.ca2204.1 [18.9 kB]
Get:21 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 r-cran-tibble amd64 3.1.8-1.ca2204.1 [640 kB]
Get:22 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-withr all 2.5.0-1.ca2204.1 [222 kB]
Get:23 https://r2u.stat.illinois.edu/ubuntu jammy/main all r-cran-ggplot2 all 3.4.0-1.ca2204.1 [4051 kB]
Fetched 18.4 MB in 0s (0 B/s)
Selecting previously unselected package r-cran-cli.
(Reading database ... 21782 files and directories currently installed.)
Preparing to unpack .../00-r-cran-cli_3.4.1-1.ca2204.1_amd64.deb ...
Unpacking r-cran-cli (3.4.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-colorspace.
Preparing to unpack .../01-r-cran-colorspace_2.0-3-1.ca2204.1_amd64.deb ...
Unpacking r-cran-colorspace (2.0-3-1.ca2204.1) ...
Selecting previously unselected package r-cran-fansi.
Preparing to unpack .../02-r-cran-fansi_1.0.3-1.ca2204.1_amd64.deb ...
Unpacking r-cran-fansi (1.0.3-1.ca2204.1) ...
Selecting previously unselected package r-cran-farver.
Preparing to unpack .../03-r-cran-farver_2.1.1-1.ca2204.1_amd64.deb ...
Unpacking r-cran-farver (2.1.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-glue.
Preparing to unpack .../04-r-cran-glue_1.6.2-1.ca2204.1_amd64.deb ...
Unpacking r-cran-glue (1.6.2-1.ca2204.1) ...
Selecting previously unselected package r-cran-gtable.
Preparing to unpack .../05-r-cran-gtable_0.3.1-1.ca2204.1_all.deb ...
Unpacking r-cran-gtable (0.3.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-isoband.
Preparing to unpack .../06-r-cran-isoband_0.2.6-1.ca2204.1_amd64.deb ...
Unpacking r-cran-isoband (0.2.6-1.ca2204.1) ...
Selecting previously unselected package r-cran-rlang.
Preparing to unpack .../07-r-cran-rlang_1.0.6-1.ca2204.1_amd64.deb ...
Unpacking r-cran-rlang (1.0.6-1.ca2204.1) ...
Selecting previously unselected package r-cran-lifecycle.
Preparing to unpack .../08-r-cran-lifecycle_1.0.3-1.ca2204.1_all.deb ...
Unpacking r-cran-lifecycle (1.0.3-1.ca2204.1) ...
Selecting previously unselected package r-cran-labeling.
Preparing to unpack .../09-r-cran-labeling_0.4.2-1.ca2204.1_all.deb ...
Unpacking r-cran-labeling (0.4.2-1.ca2204.1) ...
Selecting previously unselected package r-cran-munsell.
Preparing to unpack .../10-r-cran-munsell_0.5.0-1.ca2204.1_all.deb ...
Unpacking r-cran-munsell (0.5.0-1.ca2204.1) ...
Selecting previously unselected package r-cran-r6.
Preparing to unpack .../11-r-cran-r6_2.5.1-1.ca2204.1_all.deb ...
Unpacking r-cran-r6 (2.5.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-rcolorbrewer.
Preparing to unpack .../12-r-cran-rcolorbrewer_1.1-3-1.ca2204.1_all.deb ...
Unpacking r-cran-rcolorbrewer (1.1-3-1.ca2204.1) ...
Selecting previously unselected package r-cran-viridislite.
Preparing to unpack .../13-r-cran-viridislite_0.4.1-1.ca2204.1_all.deb ...
Unpacking r-cran-viridislite (0.4.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-scales.
Preparing to unpack .../14-r-cran-scales_1.2.1-1.ca2204.1_all.deb ...
Unpacking r-cran-scales (1.2.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-magrittr.
Preparing to unpack .../15-r-cran-magrittr_2.0.3-1.ca2204.1_amd64.deb ...
Unpacking r-cran-magrittr (2.0.3-1.ca2204.1) ...
Selecting previously unselected package r-cran-utf8.
Preparing to unpack .../16-r-cran-utf8_1.2.2-1.ca2204.1_amd64.deb ...
Unpacking r-cran-utf8 (1.2.2-1.ca2204.1) ...
Selecting previously unselected package r-cran-vctrs.
Preparing to unpack .../17-r-cran-vctrs_0.5.0-1.ca2204.1_amd64.deb ...
Unpacking r-cran-vctrs (0.5.0-1.ca2204.1) ...
Selecting previously unselected package r-cran-pillar.
Preparing to unpack .../18-r-cran-pillar_1.8.1-1.ca2204.1_all.deb ...
Unpacking r-cran-pillar (1.8.1-1.ca2204.1) ...
Selecting previously unselected package r-cran-pkgconfig.
Preparing to unpack .../19-r-cran-pkgconfig_2.0.3-1.ca2204.1_all.deb ...
Unpacking r-cran-pkgconfig (2.0.3-1.ca2204.1) ...
Selecting previously unselected package r-cran-tibble.
Preparing to unpack .../20-r-cran-tibble_3.1.8-1.ca2204.1_amd64.deb ...
Unpacking r-cran-tibble (3.1.8-1.ca2204.1) ...
Selecting previously unselected package r-cran-withr.
Preparing to unpack .../21-r-cran-withr_2.5.0-1.ca2204.1_all.deb ...
Unpacking r-cran-withr (2.5.0-1.ca2204.1) ...
Selecting previously unselected package r-cran-ggplot2.
Preparing to unpack .../22-r-cran-ggplot2_3.4.0-1.ca2204.1_all.deb ...
Unpacking r-cran-ggplot2 (3.4.0-1.ca2204.1) ...
Setting up r-cran-rlang (1.0.6-1.ca2204.1) ...
Setting up r-cran-withr (2.5.0-1.ca2204.1) ...
Setting up r-cran-fansi (1.0.3-1.ca2204.1) ...
Setting up r-cran-glue (1.6.2-1.ca2204.1) ...
Setting up r-cran-cli (3.4.1-1.ca2204.1) ...
Setting up r-cran-lifecycle (1.0.3-1.ca2204.1) ...
Setting up r-cran-pkgconfig (2.0.3-1.ca2204.1) ...
Setting up r-cran-utf8 (1.2.2-1.ca2204.1) ...
Setting up r-cran-colorspace (2.0-3-1.ca2204.1) ...
Setting up r-cran-rcolorbrewer (1.1-3-1.ca2204.1) ...
Setting up r-cran-isoband (0.2.6-1.ca2204.1) ...
Setting up r-cran-gtable (0.3.1-1.ca2204.1) ...
Setting up r-cran-labeling (0.4.2-1.ca2204.1) ...
Setting up r-cran-farver (2.1.1-1.ca2204.1) ...
Setting up r-cran-viridislite (0.4.1-1.ca2204.1) ...
Setting up r-cran-r6 (2.5.1-1.ca2204.1) ...
Setting up r-cran-magrittr (2.0.3-1.ca2204.1) ...
Setting up r-cran-vctrs (0.5.0-1.ca2204.1) ...
Setting up r-cran-pillar (1.8.1-1.ca2204.1) ...
Setting up r-cran-munsell (0.5.0-1.ca2204.1) ...
Setting up r-cran-tibble (3.1.8-1.ca2204.1) ...
Setting up r-cran-scales (1.2.1-1.ca2204.1) ...
Setting up r-cran-ggplot2 (3.4.0-1.ca2204.1) ...
root@a44b714feef1:/#
You can do the same with apt
and installing r-cran-ggplot2
but you really need to make sure your apt indices are current and bspm
does that for you. If you want to be old school do
$ docker run --rm -ti eddelbuettel/r2u:22.04 bash
# apt update
# apt install r-cran-ggplot2
which will work the same way.
Thank you. That worked!
It's standard Debian / apt behavior -- it's makes the actual download and install (of possibly several packages) faster but it does require the preceding update step.
Yeah, I got it all working now. Thanks for making this package. Love blazing fast installs!
Yes, indeed.
And failsafe as it should never give you surprises of missing (system) libraries, plus via the apt
integration will never uninstall / update system libraries we have dependencies on from R. It really works well -- so I am trying to spread the word.
Some packages, e.g. ggplot2 fail to install:
Minimal example:
output: