You are not logged in.

#1 2024-07-09 16:55:55

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

[SOLVED] Error when upgrading system

I get this regularly, it does not stop anything and only bothers me as it is an error, however could it be related the system freezing during updates?

No news to display.
:: Synchronising package databases...
 core                  119.3 KiB   100 KiB/s 00:01 [----------------------] 100%
 extra                   7.9 MiB  3.02 MiB/s 00:03 [----------------------] 100%
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) bluez-5.77-1  bluez-libs-5.77-1  ell-0.67-1  iwd-2.19-1

Total Download Size:   1.43 MiB
Total Installed Size:  4.57 MiB
Net Upgrade Size:      0.02 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 bluez-libs-5.77-...    91.4 KiB  92.6 KiB/s 00:01 [----------------------] 100%
 ell-0.67-1-x86_64     239.4 KiB   216 KiB/s 00:01 [----------------------] 100%
 bluez-5.77-1-x86_64   558.2 KiB   456 KiB/s 00:01 [----------------------] 100%
 iwd-2.19-1-x86_64     575.3 KiB   451 KiB/s 00:01 [----------------------] 100%
 Total (4/4)          1464.3 KiB  1016 KiB/s 00:01 [----------------------] 100%
(4/4) checking keys in keyring                     [----------------------] 100%
(4/4) checking package integrity                   [----------------------] 100%
(4/4) loading package files                        [----------------------] 100%
(4/4) checking for file conflicts                  [----------------------] 100%
(4/4) checking available disk space                [----------------------] 100%
:: Processing package changes...
(1/4) upgrading bluez                              [----------------------] 100%
warning: /etc/bluetooth/main.conf installed as /etc/bluetooth/main.conf.pacnew
(2/4) upgrading bluez-libs                         [----------------------] 100%
(3/4) upgrading ell                                [----------------------] 100%
(4/4) upgrading iwd                                [----------------------] 100%
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
 Invalid operation 'daemon-reload'
error: command failed to execute correctly
(2/5) Reloading system manager configuration...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Reloading system bus configuration...
(5/5) Removing old packages from pacman cache...
Removing old installed packages...
==> no candidate packages found for pruning
Removing old uninstalled packages...
==> no candidate packages found for pruning

Last edited by SimonJ (2024-07-10 06:14:58)


Rlu: 222126

Offline

#2 2024-07-09 17:01:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Error when upgrading system

That's odd. What does `pacman -Qikk systemd` show?

Offline

#3 2024-07-09 17:03:46

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

Hello, Thank you.

pacman -Qikk systemd
Name            : systemd
Version         : 256.2-1
Description     : system and service manager
Architecture    : x86_64
URL             : https://www.github.com/systemd/systemd
Licenses        : LGPL-2.1-or-later  CC0-1.0  GPL-2.0-or-later  MIT-0
Groups          : None
Provides        : nss-myhostname  systemd-tools=256.2  udev=256.2
Depends On      : systemd-libs=256.2  acl  libacl.so=1-64  bash  cryptsetup  libcryptsetup.so=12-64  dbus  dbus-units  kbd  kmod
                  hwdata  libcap  libcap.so=2-64  libgcrypt  libxcrypt  libcrypt.so=2-64  libidn2  lz4  pam  libelf  libseccomp
                  libseccomp.so=2-64  util-linux  libblkid.so=1-64  libmount.so=1-64  xz  pcre2  audit  libaudit.so=1-64  openssl
                  libcrypto.so=3-64  libssl.so=3-64
Optional Deps   : libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote
                  quota-tools: kernel-level quota management
                  systemd-sysvcompat: symlink package to provide sysvinit binaries [installed]
                  systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image
                  polkit: allow administration as unprivileged user [installed]
                  curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed]
                  gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed]
                  qrencode: show QR codes [installed]
                  iptables: firewall features [installed]
                  libbpf: support BPF programs [installed]
                  libpwquality: check password quality [installed]
                  libfido2: unlocking LUKS2 volumes with FIDO2 token
                  libp11-kit: support PKCS#11 [installed]
                  tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed]
Required By     : accountsservice  android-udev  at-spi2-core  base  chromium  colord  cups  gvfs  libcolord  libei  libgudev
                  libmbim  libpulse  mdadm  mkinitcpio  modemmanager  netctl  phodav  polkit  rtkit  systemd-sysvcompat  vte3
                  xdg-user-dirs
Optional For    : None
Conflicts With  : nss-myhostname  systemd-tools  udev
Replaces        : nss-myhostname  systemd-tools  udev
Installed Size  : 32.41 MiB
Packager        : Christian Hesse <eworm@archlinux.org>
Build Date      : Fri 05 Jul 2024 21:25:35 CEST
Install Date    : Sun 07 Jul 2024 00:38:30 CEST
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

backup file: systemd: /etc/systemd/sleep.conf (Modification time mismatch)
backup file: systemd: /etc/systemd/sleep.conf (Size mismatch)
backup file: systemd: /etc/systemd/sleep.conf (SHA256 checksum mismatch)
warning: systemd: /var/log/journal (GID mismatch)
systemd: 1541 total files, 1 altered file

Rlu: 222126

Offline

#4 2024-07-09 17:12:54

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,536
Website

Re: [SOLVED] Error when upgrading system

Could you maybe post the output of "grep 'daemon-reload' /usr/share/libalpm/scripts/systemd-hook"? Mabye the hook script is broken, hmmm

Offline

#5 2024-07-09 17:15:37

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

gromit wrote:

Could you maybe post the output of "grep 'daemon-reload' /usr/share/libalpm/scripts/systemd-hook"? Mabye the hook script is broken, hmmm

grep 'daemon-reload' /usr/share/libalpm/scripts/systemd-hook
  daemon-reload-system)
    /usr/bin/systemctl --system daemon-reload
  daemon-reload-user)

Rlu: 222126

Offline

#6 2024-07-09 17:35:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Error when upgrading system

Does `/usr/bin/systemctl --system daemon-reload` as root give the same error?

Offline

#7 2024-07-09 17:38:52

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

[simon@silex ~]$ sudo /usr/bin/systemctl --system daemon-reload
[sudo] password for simon: 
[simon@silex ~]$ 

No output which I guess is no error?


Rlu: 222126

Offline

#8 2024-07-09 18:52:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Error when upgrading system

hook complains about "Invalid operation 'daemon-reload'" but the two actions in the hook are daemon-reload-system and daemon-reload-user

grep -r Reload /{etc/pacman.d,usr/share/libalpm}/hooks/
pacman-conf

Offline

#9 2024-07-09 23:44:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Error when upgrading system

It calls the script with daemon-reload-system, which then runs `/usr/bin/systemctl --system daemon-reload`

SimonJ, it looks like the script runs in sh, have you changed that? What does `file /bin/sh` show? If that's bash, I would probably add 'set -x' right after the shebang in the script so we can see what it's actually doing.

Offline

#10 2024-07-10 05:05:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Error when upgrading system

The error looks like it's the default case of the alpm script?

Offline

#11 2024-07-10 05:40:29

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

Says no file for both, is that right?

[simon@silex ~]$ grep -r Reload /{etc/pacman.d,usr/share/libalpm}/hooks/pacman-conf
grep: /etc/pacman.d/hooks/pacman-conf: No such file or directory
grep: /usr/share/libalpm/hooks/pacman-conf: No such file or directory

Rlu: 222126

Offline

#12 2024-07-10 05:44:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Error when upgrading system

Says "those are two commands, not a stray newline" tongue

Offline

#13 2024-07-10 05:50:26

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

Scimmia wrote:

It calls the script with daemon-reload-system, which then runs `/usr/bin/systemctl --system daemon-reload`

SimonJ, it looks like the script runs in sh, have you changed that? What does `file /bin/sh` show? If that's bash, I would probably add 'set -x' right after the shebang in the script so we can see what it's actually doing.

lrwxrwxrwx 1 root root 4 Jul  3 22:22 /bin/sh -> bash

The update script I am using is bash, I will add the set -x and report back.

Thank you.


Rlu: 222126

Offline

#14 2024-07-10 05:53:01

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

seth wrote:

Says "those are two commands, not a stray newline" tongue

Oops, sorry

[simon@silex ~]$ grep -r Reload /usr/share/libalpm/hooks/
/usr/share/libalpm/hooks/30-systemd-daemon-reload.hook:Description = Reloading system manager configuration...
/usr/share/libalpm/hooks/gvfsd.hook:Description = Reloading GVFS config...
/usr/share/libalpm/hooks/30-systemd-daemon-reload-system.hook:Description = Reloading system manager configuration...
/usr/share/libalpm/hooks/30-systemd-daemon-reload-user.hook:Description = Reloading user manager configuration...
/usr/share/libalpm/hooks/dbus-reload.hook:Description = Reloading system bus configuration...
/usr/share/libalpm/hooks/30-systemd-udev-reload.hook:Description = Reloading device manager configuration...
[simon@silex ~]$ cat /etc/pacman.conf 
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   = linux linux-headers
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
ILoveCandy
# keyserver hkp://keyserver.ubuntu.com
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#SigLevel = Never
#SigLevel = Optional TrustAll
#SigLevel = TrustAll
#LocalFileSigLevel = TrustAll
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

#[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Rlu: 222126

Offline

#15 2024-07-10 05:56:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Error when upgrading system

/usr/share/libalpm/hooks/30-systemd-daemon-reload.hook:Description = Reloading system manager configuration...
/usr/share/libalpm/hooks/30-systemd-daemon-reload-system.hook:Description = Reloading system manager configuration...
pacman -Qo /usr/share/libalpm/hooks/30-systemd-daemon-reload*
stat /usr/share/libalpm/hooks/30-systemd-daemon-reload*

/usr/share/libalpm/hooks/30-systemd-daemon-reload-system.hook is from systemd, /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook from god knows where or when.

Edit: "pacman-conf" is btw. a real command that flattens the includes and filters yout comments (but there's no need for an extra hooks paths, the spurious file there sufficiently explains the condition)

Last edited by seth (2024-07-10 05:57:58)

Offline

#16 2024-07-10 06:01:59

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

[simon@silex ~]$ pacman -Qo /usr/share/libalpm/hooks/30-systemd-daemon-reload*
error: No package owns /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook
/usr/share/libalpm/hooks/30-systemd-daemon-reload-system.hook is owned by systemd 256.2-1
/usr/share/libalpm/hooks/30-systemd-daemon-reload-user.hook is owned by systemd 256.2-1
[simon@silex ~]$ stat /usr/share/libalpm/hooks/30-systemd-daemon-reload*
  File: /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook
  Size: 265       	Blocks: 8          IO Block: 4096   regular file
Device: 254,1	Inode: 3542752     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-07-09 11:14:15.087172062 +0200
Modify: 2023-11-13 09:32:55.000000000 +0100
Change: 2023-11-13 17:15:18.427548490 +0100
 Birth: 2023-11-13 17:15:18.427548490 +0100
  File: /usr/share/libalpm/hooks/30-systemd-daemon-reload-system.hook
  Size: 272       	Blocks: 8          IO Block: 4096   regular file
Device: 254,1	Inode: 3543647     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-07-09 11:14:15.092172090 +0200
Modify: 2024-07-05 21:25:35.000000000 +0200
Change: 2024-07-07 00:38:30.623176834 +0200
 Birth: 2024-07-07 00:38:30.623176834 +0200
  File: /usr/share/libalpm/hooks/30-systemd-daemon-reload-user.hook
  Size: 266       	Blocks: 8          IO Block: 4096   regular file
Device: 254,1	Inode: 3543648     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-07-09 11:14:15.092172090 +0200
Modify: 2024-07-05 21:25:35.000000000 +0200
Change: 2024-07-07 00:38:30.623176834 +0200
 Birth: 2024-07-07 00:38:30.623176834 +0200

I am guessing I should remove /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook

Last edited by SimonJ (2024-07-10 06:02:42)


Rlu: 222126

Offline

#17 2024-07-10 06:10:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Error when upgrading system

Yes, it's a stale file flying around since last November - iirc the action was split at some point, no idea why you'd have kept the file.

Offline

#18 2024-07-10 06:14:40

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

seth wrote:

Yes, it's a stale file flying around since last November - iirc the action was split at some point, no idea why you'd have kept the file.

Thank you, I am guessing I had the Nvidia crash when this update occurred so the process was completed in a chroot, I probably missed a step. Thank you all for your help I look forward to error free upgrading now.

I am on the Nvidia 535 now. ;-)


Rlu: 222126

Offline

#19 2024-07-10 06:15:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Error when upgrading system

What, exactly, is in that hook?

Offline

#20 2024-07-10 06:16:27

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 327
Website

Re: [SOLVED] Error when upgrading system

Scimmia wrote:

What, exactly, is in that hook?

[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib/systemd/system/*

[Action]
Description = Reloading system manager configuration...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/systemd-hook daemon-reload

Rlu: 222126

Offline

Board footer

Powered by FluxBB