You are not logged in.

#1 2024-01-20 04:43:42

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 296
Website

Signature files not downloaded when using XferCommand in pacman.conf

I'm following the example in section 3.1.2 from https://wiki.archlinux.org/title/Pacman/Tips_and_tricks on how to use wget as downloader for pacman packages and database files.

If I do this, pacman downloads the database files fine, but does not download database signature files (no signature files end up in /var/lib/pacman/sync).

When I set signatures to be required, pacman then fails to install anything as it cannot validate the signatures.

When I use the built-in default, it does download those signatures.

Is the XferCommand supposed to download both main file and associated signature and the wiki is wrong? But I don't think so, because it's easy enough to download %u and %u.sig, but %o.sig conflicts with the expected name for the signature (.part extension)

Or is this a regression?

Offline

#2 2024-01-20 05:07:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,808

Re: Signature files not downloaded when using XferCommand in pacman.conf

What database signatures? Arch doesn't sign the databases.

Offline

#3 2024-01-20 05:12:30

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 296
Website

Re: Signature files not downloaded when using XferCommand in pacman.conf

These are my custom repos, and I do sign the databases -- presumably pacman is supposed to support that because otherwise why would it download the signature files in default mode, and have the keywords in the config file?

Offline

#4 2024-01-20 06:48:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,439
Website

Re: Signature files not downloaded when using XferCommand in pacman.conf

XferCommand has been broken for years...

Offline

#5 2024-01-20 16:34:33

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 296
Website

Re: Signature files not downloaded when using XferCommand in pacman.conf

There's even a patch! https://gitlab.archlinux.org/pacman/pac … equests/79

Sadly not merged yet.

Offline

#6 2024-07-02 10:51:08

anayrat
Member
Registered: 2018-05-24
Posts: 9

Re: Signature files not downloaded when using XferCommand in pacman.conf

Hello,
I experiment same kind of issue with this XferCommand:

XferCommand = /usr/bin/aria2c --allow-overwrite=true --continue=true --file-allocation=none --log-level=error --max-tries=2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=2 --timeout=5 --dir=/ --out %o %u

It fails with all *.db.sig files :

07/02 12:48:54 [ERROR] CUID#7 - Download aborted. URI=https://archlinux.mailtunnel.eu/core/os/x86_64/core.db.sig
Exception: [HttpSkipResponseCommand.cc:221] errorCode=3 Resource not found

07/02 12:48:54 [NOTICE] Download GID#4ce8d42e1650d72f not complete: //var/lib/pacman/sync/core.db.sig.part

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
4ce8d4|ERR |       0B/s|//var/lib/pacman/sync/core.db.sig.part

Offline

#7 2024-07-02 11:41:02

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,439
Website

Re: Signature files not downloaded when using XferCommand in pacman.conf

No db are signed.

Offline

Board footer

Powered by FluxBB