Tailscale 1.78 dnf syntax error when updating to 1.92 (F44)

When updating tailscale today (Fedora 44) I got the following error:

[109/121] Removing tailscale-0:1.92.1-1.x86_64                                                                                       100% |   1.0   B/s |   5.0   B |  00m04s
>>> Running %preun scriptlet: tailscale-0:1.78.0-1.x86_64                                                                                                                    
>>> Error in %preun scriptlet: tailscale-0:1.78.0-1.x86_64                                                                                                                   
>>> Scriptlet output:                                                                                                                                                        
>>> /var/tmp/rpm-tmp.MRvjUg: line 3: $'\r': command not found                                                                                                                
>>> /var/tmp/rpm-tmp.MRvjUg: line 9: syntax error: unexpected end of file from `if' command on line 4                                                                        
>>>                                                                                                                                                                          
>>> [RPM] %preun(tailscale-0:1.78.0-1.x86_64) scriptlet failed, exit status 2                                                                                                
>>> Running %preun scriptlet: mullvad-vpn-0:2025.13-1.x86_64                                                                                                                 
>>> Finished %preun scriptlet: mullvad-vpn-0:2025.13-1.x86_64                                                                                                                
>>> Scriptlet output:                                                                                                                                                        
>>> Running before-remove.sh                                                                                                                                                 
>>>                                                                                                                                                                          
>>> [RPM] tailscale-0:1.78.0-1.x86_64: erase failed

There is a syntax error on the removal scriptlet from the previous (1.78) version.

Remove the old version, bypassing the faulty script, then install the new version:

sudo dnf remove tailscale --setopt=tsflags=noscripts
sudo dnf install tailscale

Interesting, what do those options do when applied to the package?

To ensure the integrity of the RPM database, you need to complete the transaction.
This requires to suppress the faulty script with the command provided above.

1 Like