VSWSL/Arch-WSL

Cannot install yay/pakku as AUR helper in WSL1

Closed this issue · 16 comments

Hi
I tried to install aur helper. But, it does not work. What do you think?
image
image

hold on, So, this problem only happens on WSL1. is that so?

seems like it, I was able to replicate it as well on WSL 1
image

Ok, that will be quite long and I want to make sure. So, to sum up the current workaround is:

  1. cd /tmp
  2. wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.31.orig.tar.gz
  3. ./bootstrap
  4. ./configure — prefix=/opt/fakeroot --libdir=/opt/fakeroot/libs --disable-static --with-ipc=tcp
  5. make
  6. sudo make install
  7. export PATH="/opt/fakeroot/bin:$PATH"
  8. git clone https://aur.archlinux.org/yay.git
  9. cd yay
  10. makepkg -si
  11. yay -Syu fakeroot-tcp
    Is that so?

You have to try that for yourself I mostly use Windows only on VMs these days so it would take too much time to validate it, so if you don't want to do the whole ordeal I guess you can download yay from my repo and just do the last step - https://github.com/vineelsai26/repo/tree/main/linux/arch/x86_64

Hold on, Sorry, what is the right command?

Sorry for multiple response. But, it seems it does not worked
image

You have to get it with raw link if you directly use GitHub link it will download a web page. use this link to download https://github.com/vineelsai26/repo/raw/main/linux/arch/x86_64/yay-12.2.0-1-x86_64.pkg.tar.zst

Yeah, I can install yay with that file. But, yay cannot install other aur helper and other cli apps with same error. What do you think?
Snipaste_2024-01-14_17-40-52
Snipaste_2024-01-14_17-30-53
Snipaste_2024-01-14_17-30-31

did you install fakeroot-tcp? if not try that, if that didn't work you have to install this version of fakeroot and then install fakeroot-tcp

Ok, that will be quite long and I want to make sure. So, to sum up the current workaround is:

  1. cd /tmp
  2. wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.31.orig.tar.gz
  3. ./bootstrap
  4. ./configure — prefix=/opt/fakeroot --libdir=/opt/fakeroot/libs --disable-static --with-ipc=tcp
  5. make
  6. sudo make install
  7. export PATH="/opt/fakeroot/bin:$PATH"
  8. git clone https://aur.archlinux.org/yay.git
  9. cd yay
  10. makepkg -si
  11. yay -Syu fakeroot-tcp
    Is that so?

Hi
I did it for fakeroot-tcp with pacman. But, since it is not pacman. I tried it on AUR for fakeroot-tcp. But, the fakeroot-tcp is not working well.
Snipaste_2024-01-14_20-29-27
Snipaste_2024-01-14_20-25-45

then I guess try the steps mentioned in the issue

Jguer/yay#1227 try this

any reason why you are not using WSL 2?

Yeah I did that workaround. and I got new error again. The reason I stick to WSL 1 because it use hyper v and it is interrupt my virtualisation programs.
Snipaste_2024-01-14_22-33-50
Snipaste_2024-01-14_22-34-19

Ok, that will be quite long and I want to make sure. So, to sum up the current workaround is:

  1. cd /tmp
  2. wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.31.orig.tar.gz
  3. ./bootstrap
  4. ./configure — prefix=/opt/fakeroot --libdir=/opt/fakeroot/libs --disable-static --with-ipc=tcp
  5. make
  6. sudo make install
  7. export PATH="/opt/fakeroot/bin:$PATH"
  8. git clone https://aur.archlinux.org/yay.git
  9. cd yay
  10. makepkg -si
  11. yay -Syu fakeroot-tcp
    Is that so?

4th step is probably supposed to be ./configure --prefix=/opt/fakeroot --libdir=/opt/fakeroot/libs --disable-static --with-ipc=tcp not ./configure — prefix=/opt/fakeroot --libdir=/opt/fakeroot/libs --disable-static --with-ipc=tcp

Hi
I checked this issue and I found this (https://wsldl-pg.github.io/ArchW-docs/Known-issues/) I need to run this command
wget https://github.com/yuk7/arch-prebuilt/releases/download/18082100/fakeroot-tcp-1.23-1-x86_64.pkg.tar.xz
and sudo pacman -U fakeroot-tcp-1.23-1-x86_64.pkg.tar.xz
to make it work

So, I hope you can update faq. if the problem arises