[Rpm-maint] [rpm-software-management/rpm] fg: no job control in post scriptlet (#574)

Miroslav Suchý notifications at github.com
Mon Oct 15 08:52:20 UTC 2018


I got and a mysterious 
  fg: no job control 
in post scriptlet. 

When running DNF I got:

```
  Běžící skriptlet: rtkit-0.11-19.fc29.x86_64                                                                                               62/62 
/var/tmp/rpm-tmp.QF7wjH: řádek 1: fg: žádné řízení úloh
chyba: provedení %preun(rtkit-0.11-19.fc29.x86_64) skripletu selhalo, návratový kód: 1
Error in PREUN scriptlet in rpm package rtkit
Error in PREUN scriptlet in rpm package rtkit
  Běžící skriptlet: gnome-shell-3.30.1-1.fc29.x86_64                                                                                        62/62 
chyba: rtkit-0.11-19.fc29.x86_64: erase failed
```
And I ended with two `rtkit`:

```
# rpm -q rtkit
rtkit-0.11-19.fc29.x86_64
rtkit-0.11-20.fc29.x86_64
```

And indeed the removal of the older ends up with:
```
# LC_ALL=C rpm -e rtkit-0.11-19.fc29.x86_64
/var/tmp/rpm-tmp.dbBZ6I: line 1: fg: no job control
error: %preun(rtkit-0.11-19.fc29.x86_64) scriptlet failed, exit status 1
error: rtkit-0.11-19.fc29.x86_64: erase failed
```

When I query rpm for the content of the script:
```
# rpm -q --scripts rtkit-0.11-19.fc29.x86_64
....
preuninstall scriptlet (using /bin/sh):
%systemd_preun rtkit-daemon.service
```
When I expand it:
```
# rpm --eval '%systemd_preun rtkit-daemon.service'

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable --now rtkit-daemon.service &>/dev/null || : 
fi 
```

Now, I am really puzzled. What can cause the error?

Happens with:
rpm-4.14.2-1.fc29.x86_64



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/574
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181015/345cf0b2/attachment-0001.html>


More information about the Rpm-maint mailing list