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

Cannot execute on NixOS (Linux) #43

Closed
poach3r opened this issue Nov 10, 2023 · 17 comments
Closed

Cannot execute on NixOS (Linux) #43

poach3r opened this issue Nov 10, 2023 · 17 comments
Assignees
Labels
bug Something isn't working linux

Comments

@poach3r
Copy link

poach3r commented Nov 10, 2023

Describe the bug
Attempting to execute the program using a bash shell fails with the following error:
bash: ./uad_gui-linux: cannot execute: required file not found

Attempting to execute the program using a zsh shell fails with the following error:
zsh: no such file or directory: ./uad_gui-linux

Expected behavior
UAD executes

Note: I have given the file execute permissions

@poach3r poach3r added the bug Something isn't working label Nov 10, 2023
@Frigyes06
Copy link
Member

Are you in the right directory?

@poach3r
Copy link
Author

poach3r commented Nov 12, 2023

Yes.
poacher@nixos ~ cd - ~/Downloads/
poacher@nixos ~/Downloads - ./uad_gui-linux
zsh: no such file or directory: ./uad_gui-linux

poacher@nixos ~/Downloads - ls
nixos-gnome-23.05.4738.41de143fda10-x86_64-linux.iso uad_gui-linux

@Skallwar
Copy link

You might be missing chmod +x uad_gui-linux if you downloaded it.

Can you do ls -lah and give us the output?

@poach3r
Copy link
Author

poach3r commented Nov 16, 2023

I already gave it execute permissions, I wrote this above.

drwxr-xr-x  2 poacher users 4.0K Nov 16 16:51 .
drwx------ 25 poacher users 4.0K Nov 16 16:51 ..
-rw-r--r--  1 poacher users 2.4G Nov  9 21:08 nixos-gnome-23.05.4738.41de143fda10-x86_64-linux.iso
-rwxr-xr-x  1 poacher users 9.8M Nov 12 13:43 uad_gui-linux

@Skallwar
Copy link

Are you running NixOS ?

@Frigyes06 Frigyes06 self-assigned this Nov 23, 2023
@poach3r
Copy link
Author

poach3r commented Nov 28, 2023

Yes

@Skallwar
Copy link

Skallwar commented Nov 29, 2023

Then I guess it's not about UAD itself but more about the fact that NixOS stores the dynamic linker in a non standard path. See https://nixos.wiki/wiki/Packaging/Binaries

Best to compile it from source and if you have time, submit a new package to nixpkgs

@Frigyes06
Copy link
Member

@poach3r Did this ever work out for you?

@markifi
Copy link

markifi commented Jan 17, 2024

i have the same issue.


[user@nixos:~]$ nix-env -iA nixos.android-tools
warning: name collision in input Nix expressions, skipping '/home/user/.nix-defexpr/channels_root/nixos'
suggestion: remove 'nixos' from either the root channels or the user channels
installing 'android-tools-34.0.4'
building '/nix/store/67jc3s8y5yasifi7f1i04gqmdzipz314-user-environment.drv'...

[...]

[user@nixos:~/Downloads/uad]$ chmod +x uad_gui-linux 

[user@nixos:~/Downloads/uad]$ ./uad_gui-linux 
bash: ./uad_gui-linux: cannot execute: required file not found

[user@nixos:~/Downloads/uad]$ ls -lah
total 9,4M
drwxr-xr-x 2 user users 4,0K jan   17 17.36 .
drwxr-xr-x 8 user users 116K jan   17 17.36 ..
-rwxr-xr-x 1 user users 9,3M 2022 júl    3 uad_gui-linux

[user@nixos:~/Downloads/uad]$ hostnamectl
     Static hostname: nixos
           Icon name: computer-laptop
             Chassis: laptop 💻
          Machine ID: b5dbfd0038954efdb040f240b1187598
             Boot ID: d9b1673ac3aa41d6ad91ab2d5ccfbb76
    Operating System: NixOS 23.11 (Tapir)             
      OS Support End: Sun 2024-06-30
OS Support Remaining: 5month 1w 5d
              Kernel: Linux 6.1.71
        Architecture: x86-64



@Frigyes06
Copy link
Member

@markifi Magyarok?

Also you'll have to compile from source, see above. NixOS weirdness

@Frigyes06 Frigyes06 changed the title Cannot execute on Linux Cannot execute on NixOS (Linux) Jan 17, 2024
@Skallwar
Copy link

A quick and dirty way that probably work for the binary is to use steam-run uad_gui-linux

@ilovethensa
Copy link

A quick and dirty way that probably work for the binary is to use steam-run uad_gui-linux

Couldnt do it

[nix-shell:~/Downloads]$ steam-run uad_gui-linux
/nix/store/i93vxva1m34ch2pq1790i4zzdfifl0q0-steam-run: line 21: exec: uad_gui-linux: not found

@ilovethensa
Copy link

Ill try to write a flake.nix for this project

@lavafroth
Copy link
Contributor

Hey everyone, please check out the nix-flake branch. You can run nix develop in the workdir to compile uad-ng.

@LudovicoPiero
Copy link

The universal-android-debloater is already available on nixpkgs. You can use it; however, it's still on version 0.6.2, though

nix-shell -p universal-android-debloater
uad_gui

@Frigyes06
Copy link
Member

The universal-android-debloater is already available on nixpkgs. You can use it; however, it's still on version 0.6.2, though

nix-shell -p universal-android-debloater
uad_gui

Maybe we can ping the maintainer to get up to date?

@Frigyes06
Copy link
Member

I pinged the nix maintainer, they'll bump version soon. Closing this issue now.

@Frigyes06 Frigyes06 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

No branches or pull requests

7 participants