Cannot remove a program

Hi there, can someone tell me what is going on?
The screenshot says it all.

Running transaction
[1/2] Prepare transaction                                                         100% |   0.0   B/s |   1.0   B |  00m01s
>>> Running pre-uninstall scriptlet: sniffnet-0:1.3.0-1.x86_64                                                            
>>> Error in pre-uninstall scriptlet: sniffnet-0:1.3.0-1.x86_64                                                           
>>> Scriptlet output:                                                                                                     
>>> empty space is an invalid capability, did you mean -r?                                                                
>>>                                                                                                                       
>>> [RPM] %preun(sniffnet-0:1.3.0-1.x86_64) scriptlet failed, exit status 1                                               
Transaction failed: Rpm transaction failed.

That Sniffnet app does not appear on my Software app - I bet I found it there months ago and I installed to try, then I forget about this app. how to remove? I have already launched dnf autoremove and clean all

I am on classic fedora, not silverblue

This doesn’t look like it’s a package from the official Fedora package repositories?

If the package is really so broken that it prevents you from uninstalling it, you should be able to bypass the broken scriptlet(s) by using something like this to uninstall it:

sudo rpm --erase --noscripts sniffnet

HOWEVER, if the package does some cleanup in those scriptlets that are actually required for the software to get removed cleanly, those cleanup steps will not run if you do it this way.

Could you have install sniffnet from a copr repo? There is/was https://copr.fedorainfracloud.org/coprs/d-k-bo/sniffnet/, but that currently gives a 404 page not found.

Mmmh that might be. However on a side note, it is strange that the commands:

sudo dnf list installed

and

sudo dnf repolist all

both give an empty output.

So to list all the packages I had to use rpm -qa but I wonder what is broken on my system if those normal commands do not work anymore. I was trying to list my repos and check if there are repos to remove.

The first command try to list the package named “installed”. Try sudo list --installed.

Similar for the second command. sudo dnf repolist --all

1 Like

lol you’re right I totally missed the dashes.

But that program not being able to remove itself is an independent problem with respect to any extra working or not working repo I might have right?

1 Like

I would have expected that message number two had the solution to your problem.

You can inspect the uninstall scripts by running rpm -q --scripts sniffnet to see what it would have done if it had actually worked.

2 Likes