Bug 2247913 - Error in POSTTRANS scriptlet in rpm package calibre
Summary: Error in POSTTRANS scriptlet in rpm package calibre
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 39
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-04 14:09 UTC by Brad Smith
Modified: 2024-07-10 02:22 UTC (History)
8 users (show)

Fixed In Version: calibre-7.3.0-3.fc39
Clone Of:
Environment:
Last Closed: 2024-07-10 02:22:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Brad Smith 2023-11-04 14:09:52 UTC
POSTRANS scriptlet in dnf upgrade resulted in:

ln: failed to create symbolic link '/usr/share/calibre/mathjax3': File exists
warning: %posttrans(calibre-6.28.1-2.fc39.x86_64) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package calibre


Reproducible: Didn't try

Steps to Reproduce:
1. Run sudo dnf upgrade on F39 workstation
2. Updated calibre to calibre-6.28.1-2.fc39.x86_64
3. Observe error message
Actual Results:  
ln: failed to create symbolic link '/usr/share/calibre/mathjax3': File exists
warning: %posttrans(calibre-6.28.1-2.fc39.x86_64) scriptlet failed, exit status 1



Expected Results:  
No warning or error message

Comment 1 Kevin Fenzi 2023-11-04 22:34:12 UTC
Can you provide the output of 'rpm -q mathjax3' and 'rpm -V mathjax3' ?

also: 'ls -l /usr/share/calibre/mathjax3'

Comment 2 Kendall Blake 2024-01-26 22:05:48 UTC
I just hit this today (fc39, calibre-7.3.0-1)

Running scriptlet: calibre-7.3.0-1.fc39.x86_64                      1042/1042 
ln: failed to create symbolic link '/usr/share/calibre/mathjax3': File exists
warning: %posttrans(calibre-7.3.0-1.fc39.x86_64) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package calibre


rpm -q mathjax3 outputs:
```
mathjax3-3.2.2-3.fc39.noarch
```

rpm -V mathjax3 outputs nothing:
```
```

ls -l /usr/share/calibre/mathjax3 outputs:
```
lrwxrwxrwx. 1 root root 14 Nov 22 18:08 /usr/share/calibre/mathjax3 -> mathjax-fedora
```

I'm also able to reproduce this by doing a `dnf reinstall calibre`

Comment 3 MicMor 2024-04-25 07:16:42 UTC
Hello

Same problem for me with Fedora 40

update: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c9a2438d21

installed Ok

then a


sudo dnf install calibre --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c9a2438d21

functionnal OK goal Scriptlet execution: calibre-7.9.0-5.fc40.x86_64 34/34 ln: cannot create symbolic link '/usr/share/calibre/mathjax3': File exists attention: %posttrans(calibre-7.9.0-5.fc40.x86_64) scriptlet failed, output state 1

Error in POSTTRANS scriptlet in rpm package calibre

Comment 4 Kevin Fenzi 2024-06-30 21:53:19 UTC
So, this was fixed in 7.10.0 (which f40 should have a newer one now).

I'll look at pushing a update for f39.

Comment 5 Fedora Update System 2024-07-01 00:32:55 UTC
FEDORA-2024-4b7bf4dc82 (calibre-7.3.0-3.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b7bf4dc82

Comment 6 Fedora Update System 2024-07-02 01:33:08 UTC
FEDORA-2024-4b7bf4dc82 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-4b7bf4dc82`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b7bf4dc82

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-07-10 02:22:20 UTC
FEDORA-2024-4b7bf4dc82 (calibre-7.3.0-3.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.