Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#71798 - [pacman] :: File /var/cache/pacman/pkg/*.pkg.tar.zst is corrupted

Attached to Project: Pacman
Opened by Grigory Vasilyev (nullik) - Wednesday, 11 August 2021, 14:08 GMT
Last edited by Allan McRae (Allan) - Tuesday, 31 August 2021, 23:32 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

pacman randomly breaks packages from local repository.
Somewhere about 1 time 5 occurs. FS not having errors.
packages from remote repositories not breaks.

:: File /var/cache/pacman/pkg/blblbla.pkg.tar.zst is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n]


Steps to reproduce:
local file repository or localhost webserver.
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 31 August 2021, 23:32 GMT
Reason for closing:  No response
Comment by Amin Vakil (aminvakil) - Wednesday, 11 August 2021, 14:22 GMT
I just executed this:

cd /var/cache/pacman/pkg
for i in s*.zst; do sudo pacman -U $i --noconfirm; done

and reinstalled all packages starting with 's' letter without a problem:)
Comment by Grigory Vasilyev (nullik) - Wednesday, 11 August 2021, 14:39 GMT
pacman -U works correctly.

local repositories in pacman.conf breaks packages.


In the second, I have a build script that builds multiple packages, pacman interrupts the script and the chroot cannot update. The packages themselves are intact!
Package in /var/cache/pacman/pkg intact too.
This is an incomprehensible error pacman and his file integrity check.

Also on the main system, when I switched from a remote repository to a local one, the same problem appeared.
Comment by Allan McRae (Allan) - Wednesday, 11 August 2021, 23:56 GMT
Please post some "--debug" output of this failing, and provide details of how you add this repository to your pacman.conf and how the repository was created.
Comment by Grigory Vasilyev (nullik) - Thursday, 12 August 2021, 07:20 GMT
[myrepo]
SigLevel = Never
Server = http://127.0.0.1:8000/blbla/

or

[myrepo]
SigLevel = Never
Server = file:///path/blbla/

repo-add "myrepo.db.tar.gz" "package"
Comment by Allan McRae (Allan) - Thursday, 12 August 2021, 08:16 GMT
And some output of this failing running pacman with "--debug" please. I can not replicate.

Loading...