Published on

How to Fix Package Update Failures Caused by Mirror or Network Issues

Authors
  • avatar
    Name
    hwahyeon
    Twitter

During a full system upgrade on Manjaro, the following error message appeared:

jdk-openjdk-24.0.2.u12-1-x86_64.pkg.tar.zst konnte nicht heruntergeladen werden
konnte einige Dateien nicht übertragen
keine Pakete wurden aktualisiert

This message indicates that the jdk-openjdk package could not be downloaded properly,
causing the entire system upgrade to be aborted.

How to Fix It

1. Delete the broken cache file

sudo rm -f /var/cache/pacman/pkg/jdk-openjdk-24.0.2.u12-1-x86_64.pkg.tar.zst

2. Refresh mirror list and retry full upgrade

sudo pacman-mirrors --fasttrack 5
sudo pacman -Syyu

3. If it still fails, install the package manually

sudo pacman -S jdk-openjdk

This issue is caused by a failed download of the jdk-openjdk package, which causes the entire upgrade to roll back.
Clearing the cache and resetting the mirror list usually resolves the problem.