Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to download Package #759

Open
jkylearmstrong opened this issue Mar 25, 2025 · 1 comment
Open

Failed to download Package #759

jkylearmstrong opened this issue Mar 25, 2025 · 1 comment

Comments

@jkylearmstrong
Copy link

> library('pak')
> pkg_install("curl")
 
→ Will update 1 package.
→ Will download 1 CRAN package (933.32 kB).
+ curl 6.2.1 → 6.2.2 [bld][cmp][dl] (933.32 kB)
? Do you want to continue (Y/n) y
ℹ Getting 1 pkg (933.32 kB)
✖ Failed to download curl 6.2.2 (source)                             
✖ Failed to download 1 package.                                      
Error: 
! error in pak subprocess
Caused by error: 
! Failed to download curl from `https://cloud.r-project.org/src/contrib/curl_6.2.2.tar.gz` and `https://cloud.r-project.org/src/contrib/Archive/curl/curl_6.2.2.tar.gz`.
Type .Last.error to see the more details.
> .Last.error
<callr_error/rlib_error_3_0/rlib_error/error>
Error: 
! error in pak subprocess
Caused by error: 
! Failed to download curl from `https://cloud.r-project.org/src/contrib/curl_6.2.2.tar.gz` and `https://cloud.r-project.org/src/contrib/Archive/curl/curl_6.2.2.tar.gz`.
---
Backtrace:
1. pak::pkg_install("curl")
2. pak:::remote(function(...) get("pkg_install_do_plan", asNamespace("pak"))(...), …
3. err$throw(res$error)
---
Subprocess backtrace:
1. base::withCallingHandlers(cli_message = function(msg) { …
2. get("pkg_install_do_plan", asNamespace("pak"))(...)
3. proposal$stop_for_download_error()
4. private$plan$stop_for_solution_download_error()
5. pkgdepends:::pkgplan_stop_for_solution_download_error(self, private)
6. pkgdepends:::stop(err)
7. | base::throw(add_class(args[[1]], c("rlib_error_3_0", "rlib_error"), …
8. | base::signalCondition(cond)
9. global (function (e) …
@gaborcsardi
Copy link
Member

This is most probably an issue specific to your machine or network. Are you behind a firewall?

> pak::pkg_install("curl")
✔ Updated metadata database: 3.14 MB in 8 files.Updating metadata database ... doneWill install 1 package.Will download 1 CRAN package (933.32 kB).
+ curl   6.2.2 [bld][cmp][dl] (933.32 kB) +libcurl4-openssl-dev, ✖ libssl-devWill install 2 system packages:
+ libcurl4-openssl-dev  - curl
+ libssl-dev            - curlGetting 1 pkg (933.32 kB)
✔ Got curl 6.2.2 (source) (933.32 kB)
✔ Downloaded 1 package (933.32 kB) in 1.3sInstalling system requirementsExecuting `sh -c apt-get -y update`Executing `sh -c apt-get -y install libcurl4-openssl-dev libssl-dev`Building curl 6.2.2Built curl 6.2.2 (2.4s)
✔ Installed curl 6.2.2  (27ms)
✔ 1 pkg: added 1, dld 1 (933.32 kB) [14.3s]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants