Parch Linux Wiki

Resolving Pacman Update Errors and Mirror Issues

Guide to resolving Pacman update errors, 404 signature files, database locks, and GPG keyring issues in Parch Linux.

A comprehensive guide to troubleshooting common Pacman package manager errors, package signature (404 .sig) failures, repository synchronization, and GPG keyring issues in Parch Linux.

1. Package Signature (.sig) 404 Not Found Errors

Symptoms

When running sudo pacman -Syu, the process aborts with an error similar to:

error: failed retrieving file 'parch-wallpaper-neon.pkg.tar.zst.sig' from repo.parchlinux.com : The requested URL returned error: 404
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

Cause

This issue typically happens when:

  1. Local package database cache has become out of sync with remote mirrors.
  2. An upstream or Parch repository package was updated and old signature files were removed, but your local database index still points to the previous package build.

Step-by-Step Fix

Step 1: Clear Package Cache and Force Database Refresh

Clear cached downloaded archives and force Pacman to download fresh repository databases using -Syyu (double y forces a full redownload):

sudo rm -rf /var/cache/pacman/pkg/*
sudo pacman -Syyu

Step 2: Temporarily Ignore Problematic Package (Emergency Bypass)

If a non-critical package (such as an asset, wallpaper, or theme) is temporarily unavailable on mirrors and blocks urgent system upgrades, exclude it temporarily:

sudo pacman -Syu --ignore parch-wallpaper-neon

2. PGP / GPG Keyring Errors and Invalid Signatures

Symptoms

Solution

Step 1: Update Keyring Packages Directly

Before initiating a full system upgrade, update the core keyrings:

sudo pacman -Sy archlinux-keyring parch-keyring

Step 2: Re-initialize and Populate Pacman Keys

If corrupted local GPG keys persist, re-initialize the key directory:

sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux parch

Once re-initialized, run your system upgrade:

sudo pacman -Syu

3. Database Lock Error (db.lck)

Symptoms

error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
  if you're sure a package manager is not already running,
  you can remove /var/lib/pacman/db.lck

Cause

Pacman creates db.lck during transactions to prevent concurrent modifications. If a terminal session was abruptly terminated or power was interrupted, the lock file remains.

Solution

Check that no active package management processes are running:

pgrep pacman

If nothing is returned, safely remove the lock file:

sudo rm /var/lib/pacman/db.lck

4. Mirror Speed and Synchronization

If downloads fail due to network timeouts or unreachable hosts:

  1. Use mirrorman to rank and select the fastest active mirrors for Parch Linux.
  2. Inspect /etc/pacman.d/mirrorlist to verify that active, responsive mirrors are listed at the top.