You need a step to `sudo apt install libcurl4-openssl-dev` as the (quoted) error says.
This is a known achilles heel of the RSPM binaries (which lack full dependencies) which is preempted in some actions for CI but apparently not in your bookdown setup.
Jan 9, 2022 · 6:56 PM UTC
1

