-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I’ve switched to an in-house yay wrapper to use this collection, but I’m unable to get my existing installs running and am completely lost. I’m not sure if the issue is on my end (probably is)
I'm trying to install ghcup-hs-bin with the following config:
- name: Install ghcup from AUR
kewlfft.aur.aur:
name: ghcup-hs-bin
state: presentBut it always fails with:
[ERROR]: Task failed: Module failed: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 30387k 100 30387k 0 0 41188k 0 --:--:-- --:--:-- --:--:-- 41175k
==> WARNING: Skipping verification of source file PGP signatures.
ghcup-0.1.50.2-1-x86_64 ... Passed
ghcup-0.1.50.2-1-x86_64 ... Passed
==> WARNING: Using existing $srcdir/ tree
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
-> error installing: [/home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-0.1.50.2-1-x86_64.pkg.tar.zst /home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-debug-0.1.50.2-1-x86_64.pkg.tar.zst] - exit status 1
Origin: /home/ak/workspace/dotfiles/ansible/tasks/haskell.yml:2:3
1 ---
2 - name: Install ghcup from AUR
^ column 3
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "env LC_ALL=C LANGUAGE=C yay -S --noconfirm --needed --cleanafter ghcup-hs-bin", "msg": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 60 30387k 60 18526k 0 0 37291k 0 --:--:-- --:--:-- --:--:-- 37276k\r100 30387k 100 30387k 0 0 41188k 0 --:--:-- --:--:-- --:--:-- 41175k\n==> WARNING: Skipping verification of source file PGP signatures.\n ghcup-0.1.50.2-1-x86_64 ... Passed\n ghcup-0.1.50.2-1-x86_64 ... Passed\n==> WARNING: Using existing $srcdir/ tree\nsudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\nsudo: a password is required\n -> error installing: [/home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-0.1.50.2-1-x86_64.pkg.tar.zst /home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-debug-0.1.50.2-1-x86_64.pkg.tar.zst] - exit status 1", "rc": 1, "stderr": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 60 30387k 60 18526k 0 0 37291k 0 --:--:-- --:--:-- --:--:-- 37276k\r100 30387k 100 30387k 0 0 41188k 0 --:--:-- --:--:-- --:--:-- 41175k\n==> WARNING: Skipping verification of source file PGP signatures.\n ghcup-0.1.50.2-1-x86_64 ... Passed\n ghcup-0.1.50.2-1-x86_64 ... Passed\n==> WARNING: Using existing $srcdir/ tree\nsudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\nsudo: a password is required\n -> error installing: [/home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-0.1.50.2-1-x86_64.pkg.tar.zst /home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-debug-0.1.50.2-1-x86_64.pkg.tar.zst] - exit status 1\n", "stderr_lines": [" % Total % Received % Xferd Average Speed Time Time Time Current", " Dload Upload Total Spent Left Speed", "", " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0", " 60 30387k 60 18526k 0 0 37291k 0 --:--:-- --:--:-- --:--:-- 37276k", "100 30387k 100 30387k 0 0 41188k 0 --:--:-- --:--:-- --:--:-- 41175k", "==> WARNING: Skipping verification of source file PGP signatures.", " ghcup-0.1.50.2-1-x86_64 ... Passed", " ghcup-0.1.50.2-1-x86_64 ... Passed", "==> WARNING: Using existing $srcdir/ tree", "sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper", "sudo: a password is required", " -> error installing: [/home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-0.1.50.2-1-x86_64.pkg.tar.zst /home/ak/.cache/yay/ghcup-hs-bin/ghcup-hs-bin-debug-0.1.50.2-1-x86_64.pkg.tar.zst] - exit status 1"], "stdout": "AUR Explicit (1): ghcup-hs-bin-0.1.50.2-1\n:: \u001b[1m(1/1) Downloaded PKGBUILD: ghcup-hs-bin\u001b[0m\n 1 ghcup-hs-bin (Build Files Exist)\n==> Packages to cleanBuild?\n==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)\n==> \n 1 ghcup-hs-bin (Build Files Exist)\n==> Diffs to show?\n==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)\n==> \n==> Making package: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:29 2025)\n==> Retrieving sources...\n -> Downloading ghcup-0.1.50.2-1-x86_64...\n==> Validating source_x86_64 files with sha256sums...\n:: \u001b[1m(1/1) Parsing SRCINFO: ghcup-hs-bin\u001b[0m\n==> Making package: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:31 2025)\n==> Checking runtime dependencies...\n==> Checking buildtime dependencies...\n==> Retrieving sources...\n -> Found ghcup-0.1.50.2-1-x86_64\n==> Validating source_x86_64 files with sha256sums...\n==> Removing existing $srcdir/ directory...\n==> Extracting sources...\n==> Sources are ready.\n==> Making package: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:32 2025)\n==> Checking runtime dependencies...\n==> Checking buildtime dependencies...\n==> Entering fakeroot environment...\n==> Starting package()...\n==> Tidying install...\n -> Removing libtool files...\n -> Purging unwanted files...\n -> Removing static library files...\n -> Stripping unneeded symbols from binaries and libraries...\n -> Compressing man and info pages...\n==> Checking for packaging issues...\n==> Creating package \"ghcup-hs-bin\"...\n -> Generating .PKGINFO file...\n -> Generating .BUILDINFO file...\n -> Adding install file...\n -> Generating .MTREE file...\n -> Compressing package...\n==> Creating package \"ghcup-hs-bin-debug\"...\n -> Generating .PKGINFO file...\n -> Generating .BUILDINFO file...\n -> Generating .MTREE file...\n -> Compressing package...\n==> Leaving fakeroot environment.\n==> Finished making: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:33 2025)\n==> Cleaning up...\n", "stdout_lines": ["AUR Explicit (1): ghcup-hs-bin-0.1.50.2-1", ":: \u001b[1m(1/1) Downloaded PKGBUILD: ghcup-hs-bin\u001b[0m", " 1 ghcup-hs-bin (Build Files Exist)", "==> Packages to cleanBuild?", "==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)", "==> ", " 1 ghcup-hs-bin (Build Files Exist)", "==> Diffs to show?", "==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)", "==> ", "==> Making package: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:29 2025)", "==> Retrieving sources...", " -> Downloading ghcup-0.1.50.2-1-x86_64...", "==> Validating source_x86_64 files with sha256sums...", ":: \u001b[1m(1/1) Parsing SRCINFO: ghcup-hs-bin\u001b[0m", "==> Making package: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:31 2025)", "==> Checking runtime dependencies...", "==> Checking buildtime dependencies...", "==> Retrieving sources...", " -> Found ghcup-0.1.50.2-1-x86_64", "==> Validating source_x86_64 files with sha256sums...", "==> Removing existing $srcdir/ directory...", "==> Extracting sources...", "==> Sources are ready.", "==> Making package: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:32 2025)", "==> Checking runtime dependencies...", "==> Checking buildtime dependencies...", "==> Entering fakeroot environment...", "==> Starting package()...", "==> Tidying install...", " -> Removing libtool files...", " -> Purging unwanted files...", " -> Removing static library files...", " -> Stripping unneeded symbols from binaries and libraries...", " -> Compressing man and info pages...", "==> Checking for packaging issues...", "==> Creating package \"ghcup-hs-bin\"...", " -> Generating .PKGINFO file...", " -> Generating .BUILDINFO file...", " -> Adding install file...", " -> Generating .MTREE file...", " -> Compressing package...", "==> Creating package \"ghcup-hs-bin-debug\"...", " -> Generating .PKGINFO file...", " -> Generating .BUILDINFO file...", " -> Generating .MTREE file...", " -> Compressing package...", "==> Leaving fakeroot environment.", "==> Finished making: ghcup-hs-bin 0.1.50.2-1 (Wed Dec 3 00:17:33 2025)", "==> Cleaning up..."]}
yay usually doesn’t require sudo, but when I run yay -S --noconfirm --needed ghcup-hs-bin manually, it still prompts me for my password. Running the full yay with sudo fails because makepkg does not allow sudo.
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
[sudo] password for ak:
loading packages...
resolving dependencies...
looking for conflicting packages...
Package (2) New Version Net Change
ghcup-hs-bin 0.1.50.2-1 29.68 MiB
ghcup-hs-bin-debug 0.1.50.2-1 0.00 MiB
Total Installed Size: 29.68 MiB
:: Proceed with installation? [Y/n]
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing ghcup-hs-bin...
Any tips, feedback, or help is welcome <3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels