Package fails to download

I am trying to use the manjaro-arm-installer and this package keeps failing:

:: Retrieving packages...
 xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz failed to download
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirrors.gigenet.com : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from muug.ca : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirror.0xem.ma : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirror.koddos.net : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from manjaro.dcc.uchile.cl : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from repo.skni.umcs.pl : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirror1.cl.netactuate.com : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirror.easyname.at : Given file does not exist
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from manjaro.kyberorg.fi : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from ftp.nluug.nl : Maximum file size exceeded
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

Same occurs if I try to use pacman -Sw xsel.

That package has not been updated in ages. I wonder why it suddenly complains about its size.

I downloaded a copy from an Arch Arm repo and copied it to the arm installer package cache, hoping the installer does not require a .sig file.

Trying to do an i3 install, if you are wondering what is trying to pull this package.

Edit: Yes, it fails without the .sig file. So I downloaded it and trying again, thinking it will work this time.

Yeah, I think only the i3 actually uses that package, so maybe @oberon can enlighten us, if the package overlay is still needed?

Nope, no dice.

(643/643) checking package integrity                                                                                               [################################################################################] 100%
error: xsel: signature from "Bernhard Landauer <oberon@manjaro.org>" is invalid
:: File /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Hm. Xsel is not in the i3 profile… So it seems to be a dependency of something.

Oh hey, I was just able to use wget to download it and the .sig from a Manjaro repo. Maybe it works now… trying again.

wget will download the package and .sig, but when copied to the installer’s cache, they fail the integrity check.

(643/643) checking package integrity                                                                                               [################################################################################] 100%
error: xsel: signature from "Bernhard Landauer <oberon@manjaro.org>" is invalid
:: File /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)

Edit: I downloaded from the arm-stable repo and no difference between arm-stable and arm-unstable files, weird. Maybe it is a symlink.

The download issue still exists.

Edit: I am going to try starting with the 20.10 i3 image… but that may be doomed from the start.

Edit 2: It seems starting with the old image is still viable. It has xsel installed but no update of xsel was required.

Still unable to download the file.

$ sudo pacman -Sw xsel

resolving dependencies...

Packages (1) xsel-1.2.0.20190821-1

Total Download Size:  0.02 MiB

:: Proceed with download? [Y/n] y
:: Retrieving packages...
 xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz failed to download
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirrors.gigenet.com : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirrors.sonic.net : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirrors.ocf.berkeley.edu : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirror.math.princeton.edu : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from repo.ialab.dsu.edu : Maximum file size exceeded
error: failed retrieving file 'xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz' from mirror.clarkson.edu : Maximum file size exceeded
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

Have you tried other mirrors?

Looks like those are a subset (maybe US based) mirrors.

When first reported the error, it was from the installer and it used worldwide mirrors.

I downloaded the file from the Arch ARM repo via https and then downloaded the file from a Manjaro repo with wget, the files are exactly the same.

I then set SigLevel = Never and removed the .sig file from the cache and then tried to install the package:

$ sudo pacman -S xsel
resolving dependencies...
looking for conflicting packages...

Packages (1) xsel-1.2.0.20190821-1

Total Installed Size:  0.04 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                              [##########################################] 100%
(1/1) checking package integrity                                            [##########################################] 100%
:: File /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (checksum))
Errors occurred, no packages were upgraded.

So now a checksum error.

This could be a pacman issue.

If I run pacman -U --debug it passes the integrity test.

:: Proceed with installation? [Y/n] y
debug: using cachedir: /var/cache/pacman/pkg/
checking keyring...
checking package integrity...
loading package files...

But pacman -S --debug it fails.

:: Proceed with installation? [Y/n] y
debug: using cachedir: /var/cache/pacman/pkg/
debug: found cached pkg: /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz
checking keyring...
checking package integrity...
debug: found cached pkg: /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz
debug: sha256sum: 38bde74baaee3b1e91aac7832e11a2e7d62945c435b1996d6f366c4d559bcf25
debug: checking sha256sum for /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz
debug: returning error 36 from _alpm_pkg_validate_internal (../lib/libalpm/be_package.c: 329) : invalid or corrupted package (checksum)
:: File /var/cache/pacman/pkg/xsel-1.2.0.20190821-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).

I downloaded the PKGBUILD and built the package, copied it to the cache and still get the error. So thinking this is a pacman bug.

Edit: Anyone else have errors with sudo pacman -S xsel

Same here. Even with pamac (PGP error).

Works fine for me


sudo pacman -S xsel
[sudo] password for gumbo: 
resolving dependencies...
looking for conflicting packages...

Packages (1) xsel-1.2.0.20190821-1

Total Download Size:   0.02 MiB
Total Installed Size:  0.04 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 xsel-1.2.0.20190821-1-...    18.2 KiB  2.38 KiB/s 00:08 [##############################] 100%
(1/1) checking keys in keyring                           [##############################] 100%
(1/1) checking package integrity                         [##############################] 100%
(1/1) loading package files                              [##############################] 100%
(1/1) checking for file conflicts                        [##############################] 100%
(1/1) checking available disk space                      [##############################] 100%
:: Processing package changes...
(1/1) installing xsel                                    [##############################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...


What is your manjaro branch and manjaro version ?

@0n0w1c I wad thinking about a PGP Key revoked or expired

http://pgp.mit.edu/pks/lookup?search=oberon@manjaro.org&op=vindex&fingerprint=on

@Strit Are the keyring package differents on each branch ?

Currently running stable


[gumbo@manjaro ~]$ cat /etc/lsb-release
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.2.2
DISTRIB_CODENAME=Qonos
DISTRIB_DESCRIPTION="Manjaro Linux"

Ok mine is on unstable. What are you keyring package version ?
Mine are:

$ pamac list -i | grep -i keyring
archlinux-keyring 20220118-1 core 1,5 Mo
archlinuxarm-keyring 20140119-1 core 35,8 ko
manjaro-arm-keyring 20210807-1 core 16,7 ko
manjaro-keyring 20210910-2 core 184,2 ko