apx icon indicating copy to clipboard operation
apx copied to clipboard

Yay not found on PATH

Open Durus-R opened this issue 1 year ago • 2 comments

apx --aur search and apx --aur install both don't work.


» apx install --aur nvim                                                                                    

Error: executable file `yay` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
Error: exit status 127
Usage:
  apx.use install [flags]

Examples:
apx install htop git

Flags:
  -y, --assume-yes     install.assumeYes
  -f, --fix-broken     install.fixBroken
      --no-export      install.noExport
      --sideload       install.sideload
      --allow-unfree   nixinstall.allowUnfree
      --apt            flags.apt
      --aur            flags.aur
      --dnf            flags.dnf
      --apk            flags.apk
      --zypper         flags.zypper
      --xbps           flags.xbps
      --nix            flags.nix
  -n, --name string    flags.name
  -h, --help           help for install

Global Flags:
  -v, --verbose   apx.verboseFlag

  ERROR   exit status 127

The container creation fails not.

Durus-R avatar Apr 20 '23 09:04 Durus-R

I'm encountering the same on Linux Mint (Ubuntu).

paladhammika avatar Apr 25 '23 03:04 paladhammika

I'm currently encountering the same problem in Fedora 38. Tried a lot of interactions with apx, but nothing really worked.

UPDATE:

I did manage to install the yay package inside the Arch container. It's a little stubborn process, but installing AUR packages with apx was back in order after it.

To do it, follow this steps:

  1. Before everything, clone the yay package outside the Arch container. (git clone https://aur.archlinux.org/yay.git)
  2. apx enter --aur.
  3. pacman -S --needed git base-devel.
  4. cd to the path where you cloned yay.
  5. makepkg -si.
  6. Exit the container and install software with the --aur flag!

cehidalgo avatar Apr 26 '23 15:04 cehidalgo