nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.24k stars 42 forks source link

When called from topgrade `cargo-install-update` under WSL fails to find some file or directory. #262

Open HenkPoley opened 4 months ago

HenkPoley commented 4 months ago

Topgrade is a tool that just batch-executes lots of package managers updaters. In this case it starts an Ubuntu Windows Subsystem for Linux container/VM, happens in WSL1 and WSL2. There it runs cargo-install-update, then the below log is shown.

When I tell topgrade to drop to shell, cargo-install-update install-update --all functions just fine. I'm wondering if some more diagnostics can be added in that area of the code. Currently I don't know what it didn't find.

The first line of the next log and the last line is by topgrade.

── (Ubuntu) 09:51:30 - Cargo ───────────────────────────────────────────────────
    Polling registry 'https://index.crates.io/'....

Package       Installed  Latest   Needs update
topgrade      v14.0.1    v15.0.0  Yes
cargo-update  v13.4.0    v13.4.0  No
fd-find       v10.1.0    v10.1.0  No
ripgrep       v14.1.0    v14.1.0  No

Updating topgrade
thread 'main' panicked at /home/henk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-update-13.4.0/src/main.rs:285:26:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
cargo failed:
   0: Command failed: `/home/henk/.cargo/bin/cargo-install-update install-update --git --all`
   1: `/home/henk/.cargo/bin/cargo-install-update` failed: exit status: 101

Location:
   /home/henk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/topgrade-14.0.1/src/steps/generic.rs:73
(Ubuntu) Retry? (y)es/(N)o/(s)hell/(q)uit

cargo-update-13.4.0/src/main.rs:285 scope is at https://github.com/nabijaczleweli/cargo-update/blob/bceb912584444b76d20a5053f01cbc09542e2746/src/main.rs#L228-L285

And on the topgrade side: https://github.com/topgrade-rs/topgrade/blob/07118fa0d25aba573c36a874375caea8c768cd33/src/main.rs#L353

https://github.com/topgrade-rs/topgrade/blob/07118fa0d25aba573c36a874375caea8c768cd33/src/steps/generic.rs#L40-L73

nabijaczleweli commented 4 months ago

Looks like it execs bin/cargo-install-update install-update -ag and I don't see any environment modifications. The only environment edits I see are

    for env in opt.env_variables() {
        let mut splitted = env.split('=');
        let var = splitted.next().unwrap();
        let value = splitted.next().unwrap();
        env::set_var(var, value);
    }

in main.rs but I'm assuming you'd post something here if you had something offensive in there.

The ENOENT means it couldn't run cargo. What does strace -fe execve $your-topgrade-invocation say?

HenkPoley commented 4 months ago

I've move the executable out of the way, placed wrapper bash script in between, and downgraded fd-find.

For reference:

henk@HENZ-LT17:/mnt/c/Users/henk$ which cargo
/home/henk/.cargo/bin/cargo

This is the output of strace -fe execve <..> under WSL when called from topgrade under Windows.

── (Ubuntu-22.04) 14:04:42 - Cargo ─────────────────────────────────────────────
execve("/home/henk/.cargo/bin/cargo-install-update.bak", ["/home/henk/.cargo/bin/cargo-inst"..., "install-update", "--git", "--all"], 0x7ffdce546cd8 /* 23 vars */) = 0
    Polling registry 'https://index.crates.io/'strace: Process 5888 attached
[pid  5888] +++ exited with 0 +++
......

Package       Installed  Latest   Needs update
fd-find       v10.0.0    v10.1.0  Yes
bat           v0.24.0    v0.24.0  No
cargo-update  v13.4.0    v13.4.0  No
grex          v1.4.5     v1.4.5   No
ripgrep       v14.1.0    v14.1.0  No
topgrade      v15.0.0    v15.0.0  No

Updating fd-find
strace: Process 5889 attached
[pid  5889] execve("/usr/local/sbin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/usr/local/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/usr/sbin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/usr/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/sbin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/usr/games/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/usr/local/games/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/usr/lib/wsl/lib/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/PowerShell/7/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/libnvvp/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/SqlCmd//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Python310/Scripts//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Python310//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Python39/Scripts//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Python39//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Windows/system32/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Windows/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Windows/System32/Wbem/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Windows/System32/WindowsPowerShell/v1.0//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Windows/System32/OpenSSH//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/ProgramData/chocolatey/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/tools/php80/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/NTP/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Pulse Secure/VC142.CRT/X64//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Pulse Secure/VC142.CRT/X86//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/system32/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/System32/Wbem/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/System32/OpenSSH//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/tools/php81/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/dotnet//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/gnupg/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/system32/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/System32/Wbem/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/WINDOWS/System32/OpenSSH//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/tools/php82/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Azure Data Studio/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Common Files/Pulse Secure/TNC Client Plugin//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/tools/php83/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/NVIDIA Corporation/Nsight Compute 2023.3.1//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Strawberry/c/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Strawberry/perl/site/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Strawberry/perl/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Git/cmd/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Go/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/PowerShell/7//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/GitHub CLI//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/nodejs//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/Programs/Python/Python311/Scripts//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/Programs/Python/Python311//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/scoop/shims/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Python310/Scripts//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Python310//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/.cargo/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/Microsoft/WindowsApps/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/Programs/Microsoft VS Code/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/JetBrains/Toolbox/scripts/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/gnupg/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/Microsoft/WindowsApps/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin//cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/users/henk/.local/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files/Azure Data Studio/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/Programs/Microsoft VS Code Insiders/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Local/GitHubDesktop/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/node_modules/.bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Roaming/cabal/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/tools/ghc-9.8.1/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Program Files (x86)/Nmap/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/go/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/tools/ghc-9.8.2/bin/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] execve("/mnt/c/Users/henk/AppData/Roaming/npm/cargo-binstall", ["cargo-binstall", "--roots", "/home/henk/.cargo", "--no-confirm", "--version", "=10.1.0", "--force", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5889] +++ exited with 127 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5889, si_uid=1000, si_status=127, si_utime=0, si_stime=1} ---
strace: Process 5890 attached
[pid  5890] execve("/usr/local/sbin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/usr/local/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/usr/sbin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/usr/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/sbin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/usr/games/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/usr/local/games/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/usr/lib/wsl/lib/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/PowerShell/7/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/libnvvp/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/SqlCmd//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Python310/Scripts//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Python310//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Python39/Scripts//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Python39//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Windows/system32/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Windows/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Windows/System32/Wbem/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Windows/System32/WindowsPowerShell/v1.0//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Windows/System32/OpenSSH//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/ProgramData/chocolatey/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/tools/php80/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/NTP/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Pulse Secure/VC142.CRT/X64//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Pulse Secure/VC142.CRT/X86//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/system32/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/System32/Wbem/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/System32/OpenSSH//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/tools/php81/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/dotnet//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/gnupg/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/system32/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/System32/Wbem/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/WINDOWS/System32/OpenSSH//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/tools/php82/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Azure Data Studio/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Common Files/Pulse Secure/TNC Client Plugin//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/tools/php83/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/NVIDIA Corporation/Nsight Compute 2023.3.1//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Strawberry/c/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Strawberry/perl/site/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Strawberry/perl/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Git/cmd/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Go/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/PowerShell/7//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/GitHub CLI//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/nodejs//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/Programs/Python/Python311/Scripts//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/Programs/Python/Python311//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/scoop/shims/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Python310/Scripts//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Python310//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/.cargo/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/Microsoft/WindowsApps/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/Programs/Microsoft VS Code/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/JetBrains/Toolbox/scripts/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/gnupg/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/Microsoft/WindowsApps/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin//cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/users/henk/.local/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files/Azure Data Studio/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/Programs/Microsoft VS Code Insiders/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Local/GitHubDesktop/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/node_modules/.bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Roaming/cabal/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/tools/ghc-9.8.1/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Program Files (x86)/Nmap/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/go/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/tools/ghc-9.8.2/bin/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] execve("/mnt/c/Users/henk/AppData/Roaming/npm/cargo", ["cargo", "install", "--root", "/home/henk/.cargo", "-f", "--version", "10.1.0", "--registry", "crates-io", "fd-find"], 0x55cd8a18c5d0 /* 25 vars */) = -1 ENOENT (No such file or directory)
[pid  5890] +++ exited with 127 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5890, si_uid=1000, si_status=127, si_utime=0, si_stime=1} ---
thread 'main' panicked at /home/henk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-update-13.4.0/src/main.rs:285:26:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
+++ exited with 101 +++
cargo failed:
   0: Command failed: `/home/henk/.cargo/bin/cargo-install-update install-update --git --all`
   1: `/home/henk/.cargo/bin/cargo-install-update` failed: exit status: 101

Location:
   /home/henk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/topgrade-15.0.0/src/steps/generic.rs:73
(Ubuntu-22.04) Retry? (y)es/(N)o/(s)hell/(q)uit
HenkPoley commented 4 months ago

It seems to try everything but the kitchensink, and /home/henk/.cargo/bin/cargo

But it does try /mnt/c/Users/henk/.cargo/bin/cargo

HenkPoley commented 4 months ago

For reference, the output of env just before the strace:

SHELL=/bin/bash
WSL2_GUI_APPS_ENABLED=1
WSL_DISTRO_NAME=Ubuntu-22.04
WT_SESSION=2f277578-f1dd-45b9-b52b-573ae9b9879a
NAME=HENZ-LT17
PWD=/mnt/c/Users/henk
LOGNAME=henk
_=/usr/bin/env
HOME=/home/henk
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/6931_interop
WAYLAND_DISPLAY=wayland-0
TOPGRADE_PREFIX=Ubuntu-22.04
TERM=xterm-256color
USER=henk
DISPLAY=:0
SHLVL=1
XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
WSLENV=WT_SESSION:WT_PROFILE_ID:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/PowerShell/7:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/bin:/mnt/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/libnvvp:/mnt/c/Program Files/SqlCmd/:/mnt/c/Python310/Scripts/:/mnt/c/Python310/:/mnt/c/Python39/Scripts/:/mnt/c/Python39/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/tools/php80:/mnt/c/Program Files (x86)/NTP/bin:/mnt/c/Program Files (x86)/Pulse Secure/VC142.CRT/X64/:/mnt/c/Program Files (x86)/Pulse Secure/VC142.CRT/X86/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/tools/php81:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files (x86)/gnupg/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/tools/php82:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files (x86)/Common Files/Pulse Secure/TNC Client Plugin/:/mnt/c/tools/php83:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/NVIDIA Corporation/Nsight Compute 2023.3.1/:/mnt/c/Strawberry/c/bin:/mnt/c/Strawberry/perl/site/bin:/mnt/c/Strawberry/perl/bin:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Go/bin:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files/GitHub CLI/:/mnt/c/Program Files/nodejs/:/mnt/c/Users/henk/AppData/Local/Programs/Python/Python311/Scripts/:/mnt/c/Users/henk/AppData/Local/Programs/Python/Python311/:/mnt/c/Users/henk/scoop/shims:/mnt/c/Python310/Scripts/:/mnt/c/Python310/:/mnt/c/Users/henk/.cargo/bin:/mnt/c/Users/henk/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/henk/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/henk/AppData/Local/JetBrains/Toolbox/scripts:/mnt/c/Program Files (x86)/gnupg/bin:/mnt/c/Users/henk/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/:/mnt/c/users/henk/.local/bin:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Users/henk/AppData/Local/Programs/Microsoft VS Code Insiders/bin:/mnt/c/Users/henk/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/henk/node_modules/.bin:/mnt/c/Users/henk/AppData/Roaming/cabal/bin:/mnt/c/tools/ghc-9.8.1/bin:/mnt/c/Program Files (x86)/Nmap:/mnt/c/Users/henk/go/bin:/mnt/c/tools/ghc-9.8.2/bin:/mnt/c/Users/henk/AppData/Roaming/npm
HOSTTYPE=x86_64
PULSE_SERVER=unix:/mnt/wslg/PulseServer
WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336}
HenkPoley commented 4 months ago

My normal logged-in PATH contains /home/henk/.cargo/bin (twice, sic) at the very beginning.

The above PATH by topgrade, does not.

I'll ask them how proceed. Though I guess .cargo/bin/cargo is a sensible place to look for the cargo executable🙊