libraptor2-dev : Depends: libcurl4-gnutls-dev but it is not installable in r-lib/actions/setup-r-dependencies@v2

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.

I only glanced through it but the suggestion on the thread you linked was to
add ppa:cran/libgit2

This is an edge case that we will fix hopefully soon. For now see this issue for a possible workaround: R-CMD-check fails for ubuntu due to missing curl dependencies (again) ยท Issue #738 ยท r-lib/actions ยท GitHub

1 Like

Many thanks for the link @Gabor , I've been able to resolve my issue using the info in the issue. Is there something I can follow/ bookmark so I know when the fix has been applied?

For others with the same issue, I essentially followed the advice in the Github issue link, which involved editing my .yaml file as follows:

  1. Set PKG_SYSREQS env var to false, so that under env: I now have:
    env:
      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
      R_KEEP_PKG_SOURCE: yes 
      PKG_SYSREQS: false 
  1. Added a chunk to install the necessary dependencies since this is no longer being done automatically. This chunk went between the uses: r-lib/actions/setup-r@v2 and uses: r-lib/actions/setup-r-dependencies@v2 chunks:
      - uses: r-lib/actions/setup-r@v2
        with:
          use-public-rspm: true
          
      - name: dependencies on Linux
        if: runner.os == 'Linux'
        run: sudo apt-get install -y make pandoc git libssl-dev libgdal-dev gdal-bin libgeos-dev libproj-dev libsqlite3-dev libicu-dev libudunits2-dev librdf0-dev libxml2-dev libfreetype6-dev libjpeg-dev libpng-dev libtiff-dev libfontconfig1-dev libfribidi-dev libharfbuzz-dev libcurl4-gnutls-dev

      - uses: r-lib/actions/setup-r-dependencies@v2
        with:
          extra-packages: any::pkgdown, local::.
          needs: website

I found the list of dependencies I needed by looking at my previous failed pkgdown workflow runs in Github actions, and under the log for Run r-lib/actions/setup-r-dependencies@v2 you will find something like:
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
The dependencies are everything after make. I removed libcurl4-openssl-dev from the list and added ibcurl4-gnutls-dev to resolve the original problem!

Hope that helps newbies like me.

1 Like

You can follow this issue: Use `apt satisfy` on Ubunbu & Debian ยท Issue #591 ยท r-lib/pak ยท GitHub

1 Like

Excellent, many thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.