Installing blackarch programs

My problem is confusing. I am aware there is the possibility of installing programs through blackarch. I am in college for cybersecurity so I do intend to learn the ins and outs of web application security. I am however running into an issue with installing even a single application at time. The most common error I run into is with installing a program like zaproxy. Pacman flags it as an invalid or corrupted package. I am aware there are similar issues to which I have attempted a few fixes. Some of which involved signing the gpg keys with pacman-key. Firstly, my issues output is as described in the preformatted text. I included my inxi. Any help would be greatly appreciated as I really enjoy using garuda linux. I have such a wonderful experience using the OS to do many things:


Enter a number (default=1): 
looking for conflicting packages...

Package (5)                    New Version  Net Change  Download Size

extra/java-environment-common  3-5            0.00 MiB       0.00 MiB
extra/java-runtime-common      3-5            0.01 MiB       0.00 MiB
extra/jdk-openjdk              23.0.1.u0-1  486.09 MiB     321.26 MiB
extra/libnet                   2:1.3-1        1.47 MiB       0.29 MiB
blackarch/zaproxy              2.15.0-1     253.83 MiB     198.18 MiB

Total Download Size:   519.73 MiB
Total Installed Size:  741.40 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 java-runtime-comm...     5.0 KiB  67.9 KiB/s 00:00 [--------------------------] 100%
 java-environment-...     2.6 KiB  34.2 KiB/s 00:00 [--------------------------] 100%
 libnet-2:1.3-1-x86_64  295.0 KiB   817 KiB/s 00:00 [--------------------------] 100%
 jdk-openjdk-23.0....   321.3 MiB  3.09 MiB/s 01:44 [--------------------------] 100%
 zaproxy-2.15.0-1-any   198.2 MiB   651 KiB/s 05:12 [--------------------------] 100%
 Total (5/5)            519.7 MiB  1706 KiB/s 05:12 [--------------------------] 100%
(5/5) checking keys in keyring                      [--------------------------] 100%
(5/5) checking package integrity                    [--------------------------] 100%
(5/5) loading package files                         [--------------------------] 100%
:: File /var/cache/pacman/pkg/zaproxy-2.15.0-1-any.pkg.tar.zst is corrupted (invalid or corrupted package).
Do you want to delete it? [Y/n]

My inxi is


System:
  Kernel: 6.11.6-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=4889e54b-9809-4d61-9637-d21da3f36cb2 rw rootflags=subvol=@
    quiet resume=UUID=368976cd-6193-4ad4-99b3-bbf926cf7d46 loglevel=3 ibt=off
  Desktop: Hyprland v: 0.44.1 with: waybar tools: avail: swayidle,swaylock
    vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
  Type: Desktop System: Micro-Star product: H310 Gaming Trident3 (MS-B920)
    v: 2.0 serial: <superuser required>
  Mobo: Micro-Star model: MS-B9201 v: 2.0 serial: <superuser required>
    part-nu: B920.9 uuid: <superuser required> UEFI: American Megatrends v: 9.30
    date: 04/30/2019
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: Intel Core i5-9400F bits: 64 type: MCP arch: Coffee Lake
    gen: core 9 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF8
  Topology: cpus: 1x dies: 1 clusters: 6 cores: 6 smt: <unsupported> cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 800 min/max: 800/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800
    bogomips: 34798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA TU117 [GeForce GTX 1650] vendor: Micro-Star MSI
    driver: nvidia v: 565.57.01 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-09; EOL~2026-12-xx) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-2022 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 3 speed: 8 GT/s ports: active: none
    off: DP-1,HDMI-A-1 empty: DVI-D-1 bus-ID: 01:00.0 chip-ID: 10de:1f82
    class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
    compositor: Hyprland v: 0.44.1 driver: X: loaded: nvidia
    unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
    gpu: nvidia,nvidia-nvswitch d-rect: 3840x1080 display-ID: 1
  Monitor-1: DP-1 pos: right model: 100027813 serial: <filter> built: 2021
    res: 1920x1080 hz: 60 dpi: 81 gamma: 1.2 scale: 1
    size: 609x348mm (23.98x13.7") diag: 690mm (27.2") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  Monitor-2: HDMI-A-1 pos: primary,left model: Acer ED320QR S
    serial: <filter> built: 2022 res: 1920x1080 hz: 60 dpi: 70 gamma: 1.2
    scale: 1 size: 609x348mm (23.98x13.7") diag: 801mm (31.5") ratio: 16:9
    modes: max: 1920x1080 min: 640x480
  API: Vulkan v: 1.3.295 layers: 6 device: 0 type: discrete-gpu
    name: NVIDIA GeForce GTX 1650 driver: nvidia v: 565.57.01
    device-ID: 10de:1f82 surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
    chip-ID: 8086:a2f0 class-ID: 0403
  Device-2: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  API: ALSA v: k6.11.6-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
    chip-ID: 8086:24fb class-ID: 0280
  IF: wlp3s0 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-9:4 chip-ID: 8087:0aa7
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.2
    lmp-v: 8 status: discoverable: no pairing: no class-ID: 6c0104
Drives:
  Local Storage: total: 931.51 GiB used: 50.94 GiB (5.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM049-2GH172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: SDM1 scheme: GPT
Partition:
  ID-1: / raw-size: 896.82 GiB size: 896.82 GiB (100.00%)
    used: 50.94 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 584 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 896.82 GiB size: 896.82 GiB (100.00%)
    used: 50.94 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 896.82 GiB size: 896.82 GiB (100.00%)
    used: 50.94 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 896.82 GiB size: 896.82 GiB (100.00%)
    used: 50.94 GiB (5.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 31.27 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 6 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 34.4 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.27 GiB used: 2.06 GiB (6.6%)
  Processes: 218 Power: uptime: 30m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.46 GiB services: upowerd Init: systemd
    v: 256 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1338 libs: 386 tools: pacseek,paru Compilers:
    gcc: 14.2.1 Shell: garuda-inxi default: fish v: 3.7.1 running-in: foot
    inxi: 3.3.36
Garuda (2.6.26-1):
  System install date:     2024-11-07
  Last full system update: 2024-11-08
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:            

Just use chaotic-aur

sudo pacman -S zaproxy
resolving dependencies...
:: There are 12 providers available for java-runtime:
:: Repository extra
1) jdk-openjdk  2) jdk11-openjdk  3) jdk17-openjdk  4) jdk21-openjdk  5) jre-openjdk  6) jre11-openjdk  7) jre17-openjdk
8) jre21-openjdk  9) jre8-openjdk
:: Repository chaotic-aur
10) jdk  11) jre  12) jre8

Enter a number (default=1): 10
looking for conflicting packages...

Package (4)                    New Version  Net Change  Download Size

extra/java-environment-common  3-5            0,00 MiB       0,00 MiB
extra/java-runtime-common      3-5            0,01 MiB       0,00 MiB
chaotic-aur/jdk                23-1         393,69 MiB     223,28 MiB
extra/zaproxy                  2.15.0-1     253,83 MiB     198,18 MiB

Total Download Size:   421,46 MiB
Total Installed Size:  647,52 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
java-runtime-common-3-5-any                               5,0 KiB  12,2 KiB/s 00:00 [-------------------------------------------------] 100%
java-environment-common-3-5-any                           2,6 KiB  5,23 KiB/s 00:00 [-------------------------------------------------] 100%
jdk-23-1-x86_64                                         223,3 MiB  18,1 MiB/s 00:12 [-------------------------------------------------] 100%
zaproxy-2.15.0-1-any                                    198,2 MiB  8,37 MiB/s 00:24 [-------------------------------------------------] 100%
Total (4/4)                                             421,5 MiB  17,6 MiB/s 00:24 [-------------------------------------------------] 100%
(4/4) checking keys in keyring                                                       [-------------------------------------------------] 100%
(4/4) checking package integrity                                                     [-------------------------------------------------] 100%
(4/4) loading package files                                                          [-------------------------------------------------] 100%
(4/4) checking for file conflicts                                                    [-------------------------------------------------] 100%
(4/4) checking available disk space                                                  [-------------------------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Rejecting pacman transaction if running in snapshot...
(2/2) Performing snapper pre snapshots for the following configurations...
==> root: 91
:: Processing package changes...
(1/4) installing java-environment-common                                             [-------------------------------------------------] 100%
(2/4) installing java-runtime-common                                                 [-------------------------------------------------] 100%
For the complete set of Java binaries to be available in your PATH,
you need to re-login or source /etc/profile.d/jre.sh
Please note that this package does not support forcing JAVA_HOME as former package java-common did
(3/4) installing jdk                                                                 [-------------------------------------------------] 100%
Optional dependencies for jdk
alsa-lib: for basic sound support [installed]
gtk2: for the Gtk+ 2 look and feel - desktop usage
gtk3: for the Gtk+ 3 look and feel - desktop usage [installed]
(4/4) installing zaproxy                                                             [-------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/9) Arming ConditionNeedsUpdate...
(2/9) Foreign/AUR package notification
(3/9) Orphaned package notification...
=> No orphans found.
(4/9) Checking for .pacnew and .pacsave files...
(5/9) Updating icon theme caches...
(6/9) Keep the last cache and the currently installed.
==> no candidate packages found for pruning
(7/9) Updating the desktop file MIME type cache...
(8/9) Performing snapper post snapshots for the following configurations...
==> root: 92
(9/9) Syncing all file systems...

Next time please, post also the command.

4 Likes

Yes, thank you. This helps me understand how the package management works in garuda much better. I can see that there may be many similar issues I may run into with blackarch on top of garuda but most will install with that and if I can’t get them to install with blackarch I can use either Blackman or pacman.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.