Skip to content

pak install error in Docker ARM64 architecture running under emulation on AMD64 machine #830

@dmolitor

Description

@dmolitor

I'm running into a bit of a niche issue. I have a machine running Windows 11 on AMD64 architecture. I am attempting to build Docker images for ARM64 architectures for which Docker uses QEMU for emulation during the build process. However, when trying to install packages via pak during the build process, pak fails with the following error message:

Error in remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), :
Subprocess is busy or cannot start

To replicate this on Windows, do the following:

  • From the console (e.g. Command Prompt) run an R-based ARM64 image under emulation:
    docker run -it --rm --platform linux/arm64 posit/r-base:4.5.2-noble
  • Next, install pak binary per the usual:
    install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))
    
  • Then attempt to install any package with pak:
    > pak::pkg_install("renv")
    Error in remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...),  :
      Subprocess is busy or cannot start
    

I have a gut feeling that this is related to running R/pak under emulation because I've experienced some weird behavior in the past as a result of emulation. However, I want to confirm whether or not this is the case; any help would be appreciated!

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