Hi,
I'm new to package development and I am trying to use Github actions to build and deploy my package website using usethis::use_pkgdown_github_pages()
. The build website action fails with an error in "Run r-lib/actions/setup-r-dependencies@v2":
The following packages have unmet dependencies: libraptor2-dev : Depends: libcurl4-gnutls-dev but it is not installable E: Unable to correct problems, you have held broken packages.
When I build the package locally, I do not get this error (my machine is Linux Mint 21.2). The actions summary is here, and I'm copying the full log below.
This seems to be related to this issue, but that was on older versions of Ubuntu and Github action should be using the latest version if I understand correctly.
I can build the site locally and setup Github pages to look in /docs
, but it would be nice if the website automatically built! Any help appreciated.
log
Run r-lib/actions/setup-r-dependencies@v2
Run # Set site library path
Set site library path
Run # Install pak
Install pak
Run # Dependency resolution
Dependency resolution
Show Lockfile
Run actions/cache@v4
Cache not found for input keys: Ubuntu 22.04.3 LTS-R version 4.3.2 (2023-10-31)-1-5156e667cba92e1e66f5077fa46067852bc7c34152b35046e3518bc718729e11, Ubuntu 22.04.3 LTS-R version 4.3.2 (2023-10-31)-1-
Run # Install/Update packages
Install/update packages
โน Installing lockfile '.github/pkg.lock'
โ Will install 110 packages.
โ Will download 110 packages with unknown size.
+ askpass 1.2.0 [dl]
+ backports 1.4.1 [dl]
+ base64enc 0.1-3 [dl]
+ bit 4.0.5 [dl]
+ bit64 4.0.5 [dl]
+ brew 1.0-10 [dl]
+ brio 1.1.4 [dl]
+ bslib 0.6.1 [dl]
+ cachem 1.0.8 [dl]
+ callr 3.7.3 [dl]
+ checkmate 2.3.1 [dl]
+ classInt 0.4-10 [dl]
+ cli 3.6.2 [dl]
+ clipr 0.8.0 [dl]
+ commonmark 1.9.1 [dl]
+ crayon 1.5.2 [dl]
+ curl 5.2.0 [dl] + libcurl4-openssl-dev, libssl-dev
+ DBI 1.2.1 [dl]
+ desc 1.4.3 [dl]
+ diffobj 0.3.5 [dl]
+ digest 0.6.34 [dl]
+ downlit 0.4.3 [dl]
+ dplyr 1.1.4 [dl]
+ e1071 1.7-14 [dl]
+ ellipsis 0.3.2 [dl]
+ evaluate 0.23 [dl]
+ exactextractr 0.10.0 [dl] + libgeos-dev
+ fansi 1.0.6 [dl]
+ fastmap 1.1.1 [dl]
+ fontawesome 0.5.2 [dl]
+ fs 1.6.3 [dl] + make
+ generics 0.1.3 [dl]
+ glue 1.7.0 [dl]
+ highr 0.10 [dl]
+ hms 1.1.3 [dl]
+ htmltools 0.5.7 [dl]
+ httr 1.4.7 [dl]
+ httr2 1.0.0 [dl]
+ ISOcodes 2023.12.07 [dl]
+ jquerylib 0.1.4 [dl]
+ jsonlite 1.8.8 [dl]
+ knitr 1.45 [dl] + pandoc
+ lifecycle 1.0.4 [dl]
+ magrittr 2.0.3 [dl]
+ memoise 2.0.1 [dl]
+ mime 0.12 [dl]
+ mregions2 1.0.0 [bld][cmp][dl] (GitHub: a86a1d4)
+ NbClust 3.0.1 [dl]
+ oceandatr 0.1.0 [bld][dl]
+ openssl 2.1.1 [dl] + libssl-dev
+ pillar 1.9.0 [dl]
+ pkgbuild 1.4.3 [dl]
+ pkgconfig 2.0.3 [dl]
+ pkgdown 2.0.7 [dl] + pandoc
+ pkgload 1.3.4 [dl]
+ praise 1.0.0 [dl]
+ processx 3.8.3 [dl]
+ proxy 0.4-27 [dl]
+ ps 1.7.6 [dl]
+ purrr 1.0.2 [dl]
+ R6 2.5.1 [dl]
+ ragg 1.2.7 [dl] + libfreetype6-dev, libjpeg-dev, libpng-dev, libtiff-dev
+ rappdirs 0.3.3 [dl]
+ raster 3.6-26 [dl]
+ Rcpp 1.0.12 [dl]
+ rdflib 0.2.8 [dl]
+ readr 2.1.5 [dl]
+ redland 1.0.17-17 [dl] + librdf0-dev
+ rematch2 2.1.2 [dl]
+ remotes 2.4.2.1 [dl] + git
+ rlang 1.1.3 [dl]
+ rmarkdown 2.25 [dl] + pandoc
+ roxygen2 7.3.1 [dl]
+ rprojroot 2.0.4 [dl]
+ s2 1.1.6 [dl] + libssl-dev
+ sass 0.4.8 [dl] + make
+ sessioninfo 1.2.2 [dl]
+ sf 1.0-15 [dl] + libgdal-dev, gdal-bin, libgeos-dev, libproj-dev, libsqlite3-dev
+ sp 2.1-3 [dl]
+ spatialgridr 0.0.0.9000 [bld][cmp][dl] (GitHub: bad936f)
+ stringi 1.8.3 [dl] + libicu-dev
+ stringr 1.5.1 [dl]
+ sys 3.4.2 [dl]
+ systemfonts 1.0.5 [dl] + libfontconfig1-dev, libfreetype6-dev
+ terra 1.7-71 [dl] + libgdal-dev, gdal-bin, libgeos-dev, libproj-dev, libsqlite3-dev
+ testthat 3.2.1 [dl]
+ textshaping 0.3.7 [dl] + libfreetype6-dev, libfribidi-dev, libharfbuzz-dev
+ tibble 3.2.1 [dl]
+ tidyr 1.3.1 [dl]
+ tidyselect 1.2.0 [dl]
+ tinytex 0.49 [dl]
+ tzdb 0.4.0 [dl]
+ units 0.8-5 [dl] + libudunits2-dev
+ utf8 1.2.4 [dl]
+ vctrs 0.6.5 [dl]
+ vroom 1.6.5 [dl]
+ waldo 0.5.2 [dl]
+ whisker 0.4.1 [dl]
+ withr 3.0.0 [dl]
+ wk 0.9.1 [dl]
+ wrapr 2.1.0 [dl]
+ xfun 0.41 [dl]
+ xml2 1.3.6 [dl] + libxml2-dev
+ yaml 2.3.8 [dl]
โ Will install 21 system packages:
* gdal-bin - sf, terra
* git - remotes
* libcurl4-openssl-dev - curl
* libfontconfig1-dev - systemfonts
* libfreetype6-dev - ragg, systemfonts, textshaping
* libfribidi-dev - textshaping
* libgdal-dev - sf, terra
* libgeos-dev - sf, terra, exactextractr
* libharfbuzz-dev - textshaping
* libicu-dev - stringi
* libjpeg-dev - ragg
* libpng-dev - ragg
* libproj-dev - sf, terra
* librdf0-dev - redland
* libsqlite3-dev - sf, terra
* libssl-dev - s2, curl, openssl
* libtiff-dev - ragg
* libudunits2-dev - units
* libxml2-dev - xml2
* make - fs, sass
* pandoc - knitr, rmarkdown, pkgdown
โน Getting 104 pkgs with unknown sizes
โ Got oceandatr 0.1.0 (source) (4.10 kB)
โ Cached copy of class 7.3-22 (x86_64-pc-linux-gnu) is the latest build
โ Cached copy of codetools 0.2-19 (*) is the latest build
โ Cached copy of KernSmooth 2.23-22 (x86_64-pc-linux-gnu) is the latest build
โ Cached copy of MASS 7.3-60 (x86_64-pc-linux-gnu) is the latest build
โ Cached copy of lattice 0.21-9 (x86_64-pc-linux-gnu) is the latest build
โ Got base64enc 0.1-3 (x86_64-pc-linux-gnu-ubuntu-22.04) (26.09 kB)
โ Got ellipsis 0.3.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (33.57 kB)
โ Got R6 2.5.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (82.53 kB)
โ Got fastmap 1.1.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (61.81 kB)
โ Got glue 1.7.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (149.86 kB)
โ Got brio 1.1.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (34.22 kB)
โ Got mime 0.12 (x86_64-pc-linux-gnu-ubuntu-22.04) (33.13 kB)
โ Got rematch2 2.1.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (44.72 kB)
โ Got utf8 1.2.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (146.80 kB)
โ Got NbClust 3.0.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (120.31 kB)
โ Got pillar 1.9.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (646.56 kB)
โ Got magrittr 2.0.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (221.09 kB)
โ Got proxy 0.4-27 (x86_64-pc-linux-gnu-ubuntu-22.04) (174.07 kB)
โ Got waldo 0.5.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (102.86 kB)
โ Got backports 1.4.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (95.02 kB)
โ Got sessioninfo 1.2.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (183.85 kB)
โ Got vctrs 0.6.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.29 MB)
โ Got digest 0.6.34 (x86_64-pc-linux-gnu-ubuntu-22.04) (207.17 kB)
โ Got Rcpp 1.0.12 (x86_64-pc-linux-gnu-ubuntu-22.04) (2.15 MB)
โ Got testthat 3.2.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.87 MB)
โ Got bit 4.0.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.13 MB)
โ Got e1071 1.7-14 (x86_64-pc-linux-gnu-ubuntu-22.04) (589.71 kB)
โ Got withr 3.0.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (237.95 kB)
โ Got brew 1.0-10 (x86_64-pc-linux-gnu-ubuntu-22.04) (75.92 kB)
โ Got sp 2.1-3 (x86_64-pc-linux-gnu-ubuntu-22.04) (2.09 MB)
โ Got wrapr 2.1.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (704.62 kB)
โ Got cachem 1.0.8 (x86_64-pc-linux-gnu-ubuntu-22.04) (66.19 kB)
โ Got systemfonts 1.0.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (243.37 kB)
โ Got tidyr 1.3.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.17 MB)
โ Got vroom 1.6.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (928.21 kB)
โ Got checkmate 2.3.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (716.41 kB)
โ Got jquerylib 0.1.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (526.57 kB)
โ Got highr 0.10 (x86_64-pc-linux-gnu-ubuntu-22.04) (38.96 kB)
โ Got evaluate 0.23 (x86_64-pc-linux-gnu-ubuntu-22.04) (81.84 kB)
โ Got diffobj 0.3.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.01 MB)
โ Got htmltools 0.5.7 (x86_64-pc-linux-gnu-ubuntu-22.04) (349.66 kB)
โ Got DBI 1.2.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (892.48 kB)
โ Got pkgconfig 2.0.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (17.58 kB)
โ Got pkgbuild 1.4.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (198.23 kB)
โ Got pkgload 1.3.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (177.81 kB)
โ Got rprojroot 2.0.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (105.51 kB)
โ Got ps 1.7.6 (x86_64-pc-linux-gnu-ubuntu-22.04) (384.55 kB)
โ Got fontawesome 0.5.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.37 MB)
โ Got remotes 2.4.2.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (397.42 kB)
โ Got dplyr 1.1.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.47 MB)
โ Got sf 1.0-15 (x86_64-pc-linux-gnu-ubuntu-22.04) (3.54 MB)
โ Got xfun 0.41 (x86_64-pc-linux-gnu-ubuntu-22.04) (428.93 kB)
โ Got tidyselect 1.2.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (219.93 kB)
โ Got mregions2 1.0.0 (source) (483.49 kB)
โ Got tibble 3.2.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (671.88 kB)
โ Got commonmark 1.9.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (146.29 kB)
โ Got rlang 1.1.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.55 MB)
โ Got units 0.8-5 (x86_64-pc-linux-gnu-ubuntu-22.04) (354.95 kB)
โ Got sys 3.4.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (39.83 kB)
โ Got xml2 1.3.6 (x86_64-pc-linux-gnu-ubuntu-22.04) (272.83 kB)
โ Got httr2 1.0.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (535.38 kB)
โ Got downlit 0.4.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (111.19 kB)
โ Got tzdb 0.4.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (640.80 kB)
โ Got textshaping 0.3.7 (x86_64-pc-linux-gnu-ubuntu-22.04) (99.24 kB)
โ Got whisker 0.4.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (65.86 kB)
โ Got crayon 1.5.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (159.79 kB)
โ Got readr 2.1.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (825.64 kB)
โ Got ragg 1.2.7 (x86_64-pc-linux-gnu-ubuntu-22.04) (488.65 kB)
โ Got rdflib 0.2.8 (x86_64-pc-linux-gnu-ubuntu-22.04) (275.83 kB)
โ Got generics 0.1.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (76.24 kB)
โ Got praise 1.0.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (16.15 kB)
โ Got ISOcodes 2023.12.07 (x86_64-pc-linux-gnu-ubuntu-22.04) (309.30 kB)
โ Got memoise 2.0.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (47.64 kB)
โ Got stringr 1.5.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (305.29 kB)
โ Got purrr 1.0.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (488.55 kB)
โ Got jsonlite 1.8.8 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.09 MB)
โ Got tinytex 0.49 (x86_64-pc-linux-gnu-ubuntu-22.04) (137.03 kB)
โ Got clipr 0.8.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (50.15 kB)
โ Got stringi 1.8.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (3.27 MB)
โ Got spatialgridr 0.0.0.9000 (source) (1.81 MB)
โ Got hms 1.1.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (98.35 kB)
โ Got curl 5.2.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (764.72 kB)
โ Got httr 1.4.7 (x86_64-pc-linux-gnu-ubuntu-22.04) (468.66 kB)
โ Got wk 0.9.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.72 MB)
โ Got callr 3.7.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (428.28 kB)
โ Got desc 1.4.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (328.14 kB)
โ Got fansi 1.0.6 (x86_64-pc-linux-gnu-ubuntu-22.04) (307.81 kB)
โ Got lifecycle 1.0.4 (x86_64-pc-linux-gnu-ubuntu-22.04) (123.43 kB)
โ Got sass 0.4.8 (x86_64-pc-linux-gnu-ubuntu-22.04) (2.41 MB)
โ Got raster 3.6-26 (x86_64-pc-linux-gnu-ubuntu-22.04) (3.33 MB)
โ Got yaml 2.3.8 (x86_64-pc-linux-gnu-ubuntu-22.04) (114.11 kB)
โ Got askpass 1.2.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (21.57 kB)
โ Got cli 3.6.2 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.28 MB)
โ Got pkgdown 2.0.7 (x86_64-pc-linux-gnu-ubuntu-22.04) (732.62 kB)
โ Got exactextractr 0.10.0 (x86_64-pc-linux-gnu-ubuntu-22.04) (617.54 kB)
โ Got rappdirs 0.3.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (43.89 kB)
โ Got fs 1.6.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (288.29 kB)
โ Got openssl 2.1.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.31 MB)
โ Got bit64 4.0.5 (x86_64-pc-linux-gnu-ubuntu-22.04) (475.41 kB)
โ Got s2 1.1.6 (x86_64-pc-linux-gnu-ubuntu-22.04) (2.17 MB)
โ Got bslib 0.6.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (6.21 MB)
โ Got redland 1.0.17-17 (x86_64-pc-linux-gnu-ubuntu-22.04) (769.23 kB)
โ Got rmarkdown 2.25 (x86_64-pc-linux-gnu-ubuntu-22.04) (2.61 MB)
โ Got classInt 0.4-10 (x86_64-pc-linux-gnu-ubuntu-22.04) (497.59 kB)
โ Got processx 3.8.3 (x86_64-pc-linux-gnu-ubuntu-22.04) (436.55 kB)
โ Got knitr 1.45 (x86_64-pc-linux-gnu-ubuntu-22.04) (1.47 MB)
โ Got roxygen2 7.3.1 (x86_64-pc-linux-gnu-ubuntu-22.04) (712.46 kB)
โ Got terra 1.7-71 (x86_64-pc-linux-gnu-ubuntu-22.04) (4.24 MB)
โน Installing system requirements
โน Executing `sudo sh -c apt-get -y update`
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Hit:7 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Reading package lists...
โน Executing `sudo sh -c apt-get -y install make pandoc git libssl-dev libgdal-dev gdal-bin libgeos-dev libproj-dev libsqlite3-dev libicu-dev libudunits2-dev libcurl4-openssl-dev librdf0-dev libxml2-dev libfreetype6-dev libjpeg-dev libpng-dev libtiff-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev`
Reading package lists...
Building dependency tree...
Reading state information...
libfontconfig1-dev is already the newest version (2.13.1-4.2ubuntu5).
libfontconfig1-dev set to manually installed.
libicu-dev is already the newest version (70.1-2).
libicu-dev set to manually installed.
libjpeg-dev is already the newest version (8c-2ubuntu10).
libjpeg-dev set to manually installed.
libpng-dev is already the newest version (1.6.37-3build5).
libpng-dev set to manually installed.
make is already the newest version (4.3-4.1build1).
libfreetype6-dev is already the newest version (2.11.1+dfsg-1ubuntu0.2).
libfreetype6-dev set to manually installed.
libsqlite3-dev is already the newest version (3.37.2-2ubuntu0.3).
libtiff-dev is already the newest version (4.3.0-6ubuntu0.7).
libtiff-dev set to manually installed.
libxml2-dev is already the newest version (2.9.13+dfsg-1ubuntu0.3).
libxml2-dev set to manually installed.
git is already the newest version (1:2.43.0-0ppa1~ubuntu22.04.1).
pandoc is already the newest version (2.19.2-1).
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:
libraptor2-dev : Depends: libcurl4-gnutls-dev but it is not installable
E: Unable to correct problems, you have held broken packages.
Error:
! error in pak subprocess
Caused by error in `processx::run(sh, cmdline, stdout_callback = callback, stderr_to_stdout = TRUE)`:
! System command 'sudo' failed
---
Backtrace:
1. pak::lockfile_install(".github/pkg.lock")
2. pak:::remote(function(...) { โฆ
3. err$throw(res$error)
---
Subprocess backtrace:
1. base::withCallingHandlers(cli_message = function(msg) { โฆ
2. get("lockfile_install_internal", asNamespace("pak"))(...)
3. plan$install_sysreqs()
4. pkgdepends:::sysreqs_install(cmds, config)
5. base::lapply(cmds, function(cmd) { โฆ
6. local FUN(X[[i]], ...)
7. processx::run(sh, cmdline, stdout_callback = callback, stderr_to_stdout = โฆ
8. base::throw(new_process_error(res, call = sys.call(), echo = echo, โฆ
9. | base::signalCondition(cond)
10. global (function (e) โฆ
Execution halted
Error: Process completed with exit code 1.