Skip to content

Installation failure with 'pak' - invalid binary #416

@kenahoo

Description

@kenahoo

I'm getting a failure trying to install devtools on Ubuntu using pak, it points to an invalid binary httpuv package:

# /opt/R/4.0.5/bin/Rscript -e 'pak::pkg_install("devtools")'
v Loading metadata database ... done
 
> Will install 37 packages.
> All 37 packages (0 B) are cached.
+ Rcpp          1.0.14  
+ httpuv        1.6.16   + v make, v zlib1g-dev
+ pillar        1.10.2  
+ pkgbuild      1.4.7   
+ pkgconfig     2.0.3   
+ pkgdown       2.1.1    + v pandoc
+ pkgload       1.4.0   
+ praise        1.0.0   
+ prettyunits   1.2.0   
+ processx      3.8.6   
+ profvis       0.4.0   
+ promises      1.3.2   
+ ps            1.9.1   
+ ragg          1.4.0    + v libfreetype6-dev, v libjpeg-dev, v libpng-dev, v libtiff-dev
+ rcmdcheck     1.4.0   
+ remotes       2.5.0    + v git
+ rmarkdown     2.29     + v pandoc
+ roxygen2      7.3.2   
+ rversions     2.1.2   
+ sass          0.4.10   + v make
+ sessioninfo   1.2.3   
+ shiny         1.10.0  
+ sourcetools   0.1.7-1 
+ stringi       1.8.7    + v libicu-dev
+ stringr       1.5.1   
+ systemfonts   1.2.2    + v libfontconfig1-dev, v libfreetype6-dev
+ testthat      3.2.3   
+ textshaping   1.0.0    + v libfreetype6-dev, v libfribidi-dev, v libharfbuzz-dev
+ tibble        3.2.1   
+ tinytex       0.57    
+ urlchecker    1.0.1   
+ utf8          1.2.4   
+ waldo         0.6.1   
+ xfun          0.52    
+ xml2          1.3.8    + v libxml2-dev
+ xopen         1.0.1   
+ xtable        1.8-4   
v All system requirements are already installed.
  
i No downloads are needed, 37 pkgs are cached
v Got ragg 1.4.0 (x86_64-pc-linux-gnu-ubuntu-24.04) (431.17 kB)
v Got tinytex 0.57 (x86_64-pc-linux-gnu-ubuntu-24.04) (36.58 kB)
v Got ps 1.9.1 (x86_64-pc-linux-gnu-ubuntu-24.04) (168.75 kB)
v Got sass 0.4.10 (x86_64-pc-linux-gnu-ubuntu-24.04) (3.03 MB)
v Got httpuv 1.6.16 (x86_64-pc-linux-gnu-ubuntu-24.04) (1.90 MB)
v Installed pillar 1.10.2  (109ms)
v Installed pkgbuild 1.4.7  (157ms)
v Installed pkgconfig 2.0.3  (180ms)
Error: 
! error in pak subprocess
Caused by error in `verify_extracted_package(filename, pkg_cache)`:
! /tmp/Rtmp4yPD2c/file4621a206b85/src/contrib/x86_64-pc-linux-gnu-ubuntu-24.04/4.0/httpuv_1.6.16.tar.gz is not a valid binary, it is missing httpuv/Meta/package.rds.
---
Backtrace:
1. pak::pkg_install("devtools")
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$install()
 4. pkgdepends::install_package_plan(plan, lib = private$library, num_workers = nw, ...
 5. base::withCallingHandlers({ ...
 6. pkgdepends:::handle_events(state, events)
 7. pkgdepends:::handle_event(state, i)
 8. proc$get_result()
 9. processx:::process_get_result(self, private)
10. private$post_process()
11. pkgdepends:::install_extracted_binary(filename, lib_cache, pkg_cache, lib, ...
12. pkgdepends:::verify_extracted_package(filename, pkg_cache)
13. base::throw(pkg_error("{.path {filename}} is not a valid binary, it is missing {miss}.", ...
14. | base::signalCondition(cond)
15. global (function (e) ...
Execution halted

Looking at the .tar.gz file, it does indeed seem to be a source distribution instead of a binary, so I'm not sure whether this is a problem with the artifact itself or with pak. I did upgrade pak to version 0.8.0.2 and the problem persists, though.

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions