Description of problem: When upgrading from Mageia 8 to Mageia 9/cauldron I see the following error messages: """ Failed to try-restart dnsmasq.service.service: Unit dnsmasq.service.service not found. warning: %post(dnsmasq-2.87-1.mga9.x86_64) scriptlet failed, exit status 5 ERROR: 'script' failed for dnsmasq-2.87-1.mga9.x86_64 """ Version-Release number of selected component (if applicable): dnsmasq-2.87-1.mga9.x86_64 How reproducible: Always. Steps to Reproduce: 1. Start with a Mageia 8 system with dnsmasq-2.85-4.mga8 installed. Other dnsmasq mga8 versions probably also produce the same result. 2. Upgrade the repositories to Mageia 9/cauldron using: urpmi.removemedia -a ; urpmi.addmedia --distrib MAGEIA_CAULDRON_REPOSITORY_URL. 3. Run: urpmi --auto-update
# rpm -q --scripts dnsmasq preinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-user dnsmasq $1 dnsmasq /dev/null /sbin/nologin postinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-service dnsmasq $1 dnsmasq preuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-service dnsmasq $1 dnsmasq.service postuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-user dnsmasq $1 dnsmasq Looks like the preuninstall scriplet should not have the ".service". Assigning to Julien, the registered maintainer. Problem is also present in Mageia 8, so the only way to avoid this during upgrade is update it in Mageia 8, which will trigger the error message there when the update is installed there.
CC: (none) => davidwhodginsAssignee: bugsquad => gouessej
I'm not the registered maintainer, it's probably a mistake.
Sorry, assigning to the correct Julien.
Assignee: gouessej => julien.moragny
Retesting upgrading from Mageia 8 to Mageia 9/cauldron. This issue is still present. # LANGUAGE=C urpmi dnsmasq http://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/release/dnsmasq-2.87-1.mga9.x86_64.rpm installing dnsmasq-2.87-1.mga9.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ############## 1/1: dnsmasq ############## Warning: Problems encountered when activating services. Please check and enable manually if necessary. Service units affected: dnsmasq.service.service # rpm -q dnsmasq dnsmasq-2.87-1.mga9 # rpm -q --scripts dnsmasq preinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-user dnsmasq $1 dnsmasq /dev/null /sbin/nologin postinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-service dnsmasq $1 dnsmasq.service preuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-service dnsmasq $1 dnsmasq.service postuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-user dnsmasq $1 dnsmasq
Hello, I just pushed dnsmasq 2.87-2 to cauldron which fix the issue with upgrading. for 8, it only impacts uninstallation where the service is not stopped when uninstalled. I'll submit an update to 8 if no other problem emerge with cauldron after some days. regards julien
This issue seems to be fixed in cauldron and no other issues found on the quick tests I did. # uname -a Linux vm-jupiter-mageia-9 6.0.8-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Fri Nov 11 15:23:14 UTC 2022 x86_64 GNU/Linux # urpmi dnsmasq $MIRRORLIST: media/core/release/dnsmasq-2.87-2.mga9.x86_64.rpm installing dnsmasq-2.87-2.mga9.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ############## 1/1: dnsmasq ############## # rpm -q dnsmasq dnsmasq-2.87-2.mga9 # rpm -q --scripts dnsmasq preinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-user dnsmasq $1 dnsmasq /dev/null /sbin/nologin postinstall scriptlet (using /bin/sh): /usr/share/rpm-helper/add-service dnsmasq $1 dnsmasq preuninstall scriptlet (using /bin/sh): /usr/share/rpm-helper/del-service dnsmasq $1 dnsmasq # urpme dnsmasq removing dnsmasq-2.87-2.mga9.x86_64 removing package dnsmasq-2.87-2.mga9.x86_64 1/1: removing dnsmasq-2.87-2.mga9.x86_64 ###############