You are not logged in.

#1 2023-09-24 18:33:32

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 194

Manage error: failed retrieving file 'pkgname.pkg.tar.zst' from mirror

In my Arch system, by reflector I got the following /etc/pacman.d/mirrorlist file:

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
# When:       2023-09-24 17:48:12 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2023-09-24 17:48:03 UTC
# Last Check: 2023-09-24 17:25:44 UTC

Server = https://mirror.ubrco.de/archlinux/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = rsync://archlinux.mailtunnel.eu/archlinux/$repo/os/$arch
Server = http://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = rsync://mirror.telepoint.bg/archlinux/$repo/os/$arch

When I upgrade the system or I try to install some packages, I get an error like:

error: failed retrieving file 'bc-1.07.1-4-x86_64.pkg.tar.zst' from mirror.ubrco.de 

Generally, I expect that pacman would consider the second mirror in case the first one is failing to retrieve a specific package. Instead, the download process stops and the system cannot be upgraded or package installed.

To solve this, of course it is enough to delete the first server line in mirrorlist file, but why this is not managed automatically by pacman?

Is there a way to manage this case automatically, also by a bash script?

Offline

#2 2023-09-24 18:53:55

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: Manage error: failed retrieving file 'pkgname.pkg.tar.zst' from mirror

The mirror looks sane and the file dowloads from there w/o any problems?
Please post the entire pacman output.

Offline

Board footer

Powered by FluxBB