Skip to content

Instantly share code, notes, and snippets.

@empeje
Created February 13, 2023 00:45
Show Gist options
  • Save empeje/ac572f80b57d72c3e0bea67bc3be7fc0 to your computer and use it in GitHub Desktop.
Save empeje/ac572f80b57d72c3e0bea67bc3be7fc0 to your computer and use it in GitHub Desktop.
Fix install pacman / yay failed

So I tried to install elixir but I got this error

$ yay -S elixir
resolving dependencies...
looking for conflicting packages...

Packages (2) erlang-nox-25.2-1  elixir-1.14.0-1

Total Download Size:    44,38 MiB
Total Installed Size:  106,56 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 erlang-nox-25.2-1-x86_64.pkg.tar.zst failed to download
 Total (1/2)                                                                                                                                                     44,4 MiB  41,5 MiB/s 00:01 [#####################################################################################################################] 100%
error: failed retrieving file 'erlang-nox-25.2-1-x86_64.pkg.tar.zst' from ftp.icm.edu.pl : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
 -> error installing repo packages

To fix this issue what I did is to update the index by running

$ yay -Sy
:: Synchronizing package databases...
 core                                                                                                                                                           155,4 KiB  71,4 KiB/s 00:02 [#####################################################################################################################] 100%
 extra                                                                                                                                                         1737,2 KiB   953 KiB/s 00:02 [#####################################################################################################################] 100%
 community                                                                                                                                                        7,2 MiB  3,96 MiB/s 00:02 [#####################################################################################################################] 100%
 multilib                                                                                                                                                       164,5 KiB   292 KiB/s 00:01 [#####################################################################################################################] 100%
 blackarch

After that I can install as usual

yay -S elixir   
resolving dependencies...
looking for conflicting packages...

Packages (2) erlang-nox-25.2-2  elixir-1.14.0-1

Total Download Size:    48,76 MiB
Total Installed Size:  112,47 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 erlang-nox-25.2-2-x86_64                                                                                                                                        44,3 MiB  5,94 MiB/s 00:07 [#####################################################################################################################] 100%
 elixir-1.14.0-1-any                                                                                                                                              4,5 MiB  2,71 MiB/s 00:02 [#####################################################################################################################] 100%
 Total (2/2)                                                                                                                                                     48,8 MiB  4,80 MiB/s 00:10 [#####################################################################################################################] 100%
(2/2) checking keys in keyring                                                                                                                                                              [#####################################################################################################################] 100%
(2/2) checking package integrity                                                                                                                                                            [#####################################################################################################################] 100%
(2/2) loading package files                                                                                                                                                                 [#####################################################################################################################] 100%
(2/2) checking for file conflicts                                                                                                                                                           [#####################################################################################################################] 100%
:: Processing package changes...
(1/2) installing erlang-nox                                                                                                                                                                 [#####################################################################################################################] 100%
Optional dependencies for erlang-nox
    erlang-unixodbc: database support
    java-environment: for Java support [installed]
    lksctp-tools: for SCTP support
(2/2) installing elixir                                                                                                                                                                     [#####################################################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Generating Menu Items...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment