You are not logged in.

#26 2023-08-31 17:51:21

seth
Member
Registered: 2012-09-03
Posts: 51,332

Re: pacman prioritize packages in system upgrades?

systemctl status archlinux-keyring-wkd-sync.timer
cat /etc/pacman.d/gnupg/gpg.conf
sudo pacman-key -r dvzrv@archlinux.org
sudo pacman-key --keyserver hkps://keyserver.ubuntu.com -r dvzrv@archlinux.org

Offline

#27 2023-08-31 17:54:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: pacman prioritize packages in system upgrades?

You were upgrading 507 packages in that transaction, I only have 380 packages total installed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#28 2023-09-01 05:55:28

Awebb
Member
Registered: 2010-05-06
Posts: 6,294

Re: pacman prioritize packages in system upgrades?

You have read the whole thread, I assume, and even returned to it after months and yet no mention of anything archlinux-keyring-wkd-sync.{service,timer} diagnostic-wise. This service/timer combo is supposed to fix the issue in many cases, so you could at least put some focus on it and at least mention that you've checked it, if it was fine.

After making sure the timer is up and the service is being executed on timer, the problem disappeared for me, with the exception of systemd-less WSL instances, but they aren't supported anyway and nobodies problem.

Offline

#29 2023-10-21 15:04:59

MicSpabo
Member
From: Germany
Registered: 2021-06-04
Posts: 3

Re: pacman prioritize packages in system upgrades?

The service / timer combo is enabled and running. Nevertheless  I had a dozen occurences where

# pacman -Sy archlinux-keyring && pacman -Su

was neccessary during the last two years.

To make my life a bit easier I now use a bash script named "updatesAvailable.sh" to check what mainenance task are waiting for me and to inform me if its neccessary to update the archlinux-keyring in advance.

#!/bin/bash
printf "."
UPDATES=$(checkupdates 2>/dev/null | wc -l)
#UPDATE_COUNT=$UPDATES
printf "."
KERNEL=$(checkupdates 2>/dev/null |\
  grep -c '^linux \|^linux-headers\|^linux-lts-headers\|^linux-zen-headers\|^linux-zen-docs\|^linux-lts\|^linux-zen')
printf "."
AUR_UPDATES=$(pikaur -Qua 2>/dev/null | wc -l)
printf "."
ORPHANS=$(pacman -Qdt | wc -l)
printf "."
REBUILD=$(checkrebuild | wc -l)
printf "."
PACNEW=$(updatedb && locate --existing --regex "\.pac(new|save)$" | wc -l)
printf "."
ARCH_KEYRING=$(checkupdates 2>/dev/null | cut -d' ' -f1 | grep "archlinux-keyring" | wc -l)
printf "."
# echo "  Arch: $((UPDATES - KERNEL))   Kernel: $KERNEL   AUR: $AUR_UPDATES   News: $(~/scripts/lastArchNewsIsFrom.sh)"
printf "\b\b\b\b\b\b\b\b  Arch: %d   Kernel: %d   AUR: %d   Orphans: %d   Rebuild: %d   PacNew: %d   News: %s\n" \
  $((UPDATES - KERNEL)) $KERNEL $AUR_UPDATES $ORPHANS $REBUILD $PACNEW $(~/scripts/lastArchNewsIsFrom.sh)

if [ "$ARCH_KEYRING" -eq "1" ]; then
  # As the Arch Linux Keyring is a pending update - just prevent most
  # signing errors during system upgrade by manually sync the package
  # database first and than upgrade the archlinux-keyring package.
  printf "\n  Please execute: pacman -Sy archlinux-keyring && pacman -Su\n"
  # This command is "not" considered a "partial upgrade" since it syncs
  #   the package database and upgrades the keyring package first. Both
  #   must be processed just before starting system upgrade to ensure
  #   signatures of all upgraded packages can be properly verified.
fi

# EOF

and "~/scripts/lastArchNewsIsFrom.sh"

#!/bin/bash

curl https://archlinux.org/news/ 2>/dev/null |\
  grep "<td>20" | head -n1 | cut -d'>' -f2- |\
  cut -d'<' -f1 | sort | tail -n1
# EOF

Arch is up to date if the output looks like:

# ~/scripts/updatesAvailable.sh 
  Arch: 0   Kernel: 0   AUR: 0   Orphans: 0   Rebuild: 0   PacNew: 0   News: 2023-09-22

Last edited by MicSpabo (2023-10-21 15:10:27)


Arch Linux   cool   Debian Testing

Offline

#30 2023-10-21 15:30:10

seth
Member
Registered: 2012-09-03
Posts: 51,332

Re: pacman prioritize packages in system upgrades?

UPDATES="$(checkupdates | cut -d' ' -f1)"
grep linux <<< $UPDATES
ARCH_KEYRING=$(checkupdates 2>/dev/null | cut -d' ' -f1 | grep "archlinux-keyring" | wc -l)

I'm sure you could find a way to add one or to cat's there tongue

Did you check the archlinux-keyring-wkd-sync statūs?
There's either sth. wrong or the timer never hits (eg. because you're rarely booting the system and only do so to update it?) or you're the unluckiest dude on the planet.

Offline

#31 2023-10-21 15:40:02

MicSpabo
Member
From: Germany
Registered: 2021-06-04
Posts: 3

Re: pacman prioritize packages in system upgrades?

seth wrote:

Did you check the archlinux-keyring-wkd-sync statūs?

Yes, I did.

I just guess, my habit to update the system directly after startup if more than ten updates are waiting could be the reason to face it that often.


Arch Linux   cool   Debian Testing

Offline

Board footer

Powered by FluxBB