From fe2ea1ec1adeedec954c4346f78fe4eb666f2c07 Mon Sep 17 00:00:00 2001 From: "yuri.kuit" Date: Sat, 23 May 2026 21:07:17 +0200 Subject: [PATCH] fix fedora terra repo --- v2/fedora-niri.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/v2/fedora-niri.sh b/v2/fedora-niri.sh index c6f158a..5a748aa 100755 --- a/v2/fedora-niri.sh +++ b/v2/fedora-niri.sh @@ -89,15 +89,16 @@ add_terra_repo() { if [ ! -f /etc/yum.repos.d/terra.repo ]; then say_yellow "Adding Terra repository for Noctalia Shell..." - # 1. Instruct DNF exactly where to find and import the GPG key during bootstrap - sudo dnf install -y \ - --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' \ - --setopt='terra.gpgkey=https://repos.fyralabs.com/terra$releasever/key.asc' \ - terra-release + # 1. Download the verified repo configuration directly from Fyra Labs' project source + sudo curl -fsSL https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo -o /etc/yum.repos.d/terra.repo - # 2. Explicitly force a metadata refresh and accept the keys automatically - say_yellow "Refreshing package metadata and importing keys..." - sudo dnf -y check-update || true + # 2. Force DNF to clear its expired/broken cache metadata + say_yellow "Clearing DNF cache to prevent checksum mismatches..." + sudo dnf clean metadata + + # 3. Securely import the repository GPG key into the system keyring hands-free + say_yellow "Importing Terra repository signing keys..." + sudo dnf -y --refresh check-update || true else say_gray "Terra repository already configured." fi