ebourg / jsign

Java implementation of Microsoft Authenticode for signing Windows executables, installers & scripts
https://ebourg.github.io/jsign
Apache License 2.0
250 stars 107 forks source link

-bash: /usr/bin/jsign: /bin/sh^M: bad interpreter: No such file or directory #101

Closed MrAlex94 closed 1 year ago

MrAlex94 commented 2 years ago

Great tool - thank you for all the hard work!

Not sure if this is platform specific, but installing jsign via sudo apt install ./jsign_4.0_all.deb and then trying to run via jsign results in -bash: /usr/bin/jsign: /bin/sh^M: bad interpreter: No such file or directory.

There's an easy remedy: sed -i -e 's/\r$//' /usr/bin/jsign

Not sure if something is happening at the packaging stage or the way it's installed.

ebourg commented 2 years ago

Thank you for the report, that's a packaging issue. I'll get that fixed.

ebourg commented 2 years ago

The jsign_4.0_all.deb file is now fixed.

Mailaender commented 2 years ago

This is also a problem in the .rpm. It seems that the file on GitHub has the correct line endings.

rhartman93 commented 2 years ago

Confirming that I ran into the same when installing the rpm from: https://ebourg.github.io/jsign/ version 4.0-1.

ebourg commented 1 year ago

@Mailaender, @rhartman93 could you try again with Jsign 4.2 please?

rhartman93 commented 1 year ago

I should have a chance in the next week or so to give this a shot, will report back