[GH-ISSUE #87] ./unlock: 1: Syntax error: "(" unexpected on Debian 11 #67

Closed
opened 2026-03-02 03:58:15 +03:00 by kerem · 17 comments
Owner

Originally created by @earthmoon on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/DrDonk/unlocker/issues/87


IMPORTANT

Please note this is not a discussion forum for help on running macOS, finding the installation images etc.
Also please checkout the wiki https://github.com/DrDonk/unlocker/wiki as it may answer your question.


Describe the bug
.
When I run unlock script on Debian 11, it returns:

/unlock: 1: Syntax error: "(" unexpected

To Reproduce
Steps to reproduce the behavior:

  1. Go to folder extracted
  2. run commands: sudo sh ./unlock
  3. the error will show

Expected behavior
I hope it would unlock the vmware for macos

Screenshots
Screenshot from 2023-02-06 08-02-36

Desktop (please complete the following information):

  • Debian 11

Additional context
None

Originally created by @earthmoon on GitHub (Feb 6, 2023). Original GitHub issue: https://github.com/DrDonk/unlocker/issues/87 *** # IMPORTANT Please note this is not a discussion forum for help on running macOS, finding the installation images etc. Also please checkout the wiki https://github.com/DrDonk/unlocker/wiki as it may answer your question. *** **Describe the bug** . When I run **unlock** script on Debian 11, it returns: > /unlock: 1: Syntax error: "(" unexpected **To Reproduce** Steps to reproduce the behavior: 1. Go to folder extracted 2. run commands: sudo sh ./unlock 3. the error will show **Expected behavior** I hope it would unlock the vmware for macos **Screenshots** ![Screenshot from 2023-02-06 08-02-36](https://user-images.githubusercontent.com/45897471/216978628-936ad06b-fae9-4073-8b5f-b6b7992bd8a7.png) **Desktop (please complete the following information):** - Debian 11 **Additional context** None
kerem closed this issue 2026-03-02 03:58:15 +03:00
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

Try just:

sudo ./unlock

The unlocker is a Go compiled binary file not a shell script.

<!-- gh-comment-id:1419051932 --> @DrDonk commented on GitHub (Feb 6, 2023): Try just: `sudo ./unlock` The unlocker is a Go compiled binary file not a shell script.
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

Try just:

sudo ./unlock

The unlocker is a Go compiled binary file not a shell script.

sudo: ./unlock: command not found

<!-- gh-comment-id:1419055092 --> @earthmoon commented on GitHub (Feb 6, 2023): > Try just: > > `sudo ./unlock` > > The unlocker is a Go compiled binary file not a shell script. > sudo: ./unlock: command not found
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

What are the contents of the folder with the unzipped files?

<!-- gh-comment-id:1419066767 --> @DrDonk commented on GitHub (Feb 6, 2023): What are the contents of the folder with the unzipped files?
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

Try just:
sudo ./unlock
The unlocker is a Go compiled binary file not a shell script.

sudo: ./unlock: command not found

I download it from here

<!-- gh-comment-id:1419071367 --> @earthmoon commented on GitHub (Feb 6, 2023): > > Try just: > > `sudo ./unlock` > > The unlocker is a Go compiled binary file not a shell script. > > > sudo: ./unlock: command not found I download it from [here](https://github.com/DrDonk/unlocker/releases/tag/v4.2.4)
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

That's fine. Can you send me the list of files after you unzipped the download? Use terminal and ls command

<!-- gh-comment-id:1419073671 --> @DrDonk commented on GitHub (Feb 6, 2023): That's fine. Can you send me the list of files after you unzipped the download? Use terminal and ls command
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

That's fine. Can you send me the list of files after you unzipped the download? Use terminal and ls command

CHANGELOG.md iso LICENSE linux README.md templates windows

It seems right.

<!-- gh-comment-id:1419076578 --> @earthmoon commented on GitHub (Feb 6, 2023): > That's fine. Can you send me the list of files after you unzipped the download? Use terminal and ls command > CHANGELOG.md iso LICENSE linux README.md templates windows It seems right.
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

OK so do this please:

cd linux
ls -l

and send me the output

<!-- gh-comment-id:1419085684 --> @DrDonk commented on GitHub (Feb 6, 2023): OK so do this please: ``` cd linux ls -l ``` and send me the output
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

OK so do this please:

cd linux
ls -l

and send me the output

check cpuid hostcaps relock unlock

These

<!-- gh-comment-id:1419087910 --> @earthmoon commented on GitHub (Feb 6, 2023): > OK so do this please: > > ``` > cd linux > ls -l > ``` > > and send me the output > check cpuid hostcaps relock unlock These
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

No please run it exactly as I asked.

cd linux
ls -l

<!-- gh-comment-id:1419091552 --> @DrDonk commented on GitHub (Feb 6, 2023): No please run it exactly as I asked. cd linux ls -l
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

No please run it exactly as I asked.

cd linux ls -l

Sorry, Now I do as you asked:

total 9564
-rw------- 1 zeng zeng 2555170 Dec 21 11:35 check
-rw------- 1 zeng zeng 77360 Dec 21 11:35 cpuid
-rw------- 1 zeng zeng 2088148 Dec 21 11:35 hostcaps
-rw------- 1 zeng zeng 2318623 Dec 21 11:35 relock
-rw-rw-rw- 1 zeng zeng 2745387 Dec 21 11:35 unlock

<!-- gh-comment-id:1419094772 --> @earthmoon commented on GitHub (Feb 6, 2023): > No please run it exactly as I asked. > > cd linux ls -l Sorry, Now I do as you asked: > > total 9564 > -rw------- 1 zeng zeng 2555170 Dec 21 11:35 check > -rw------- 1 zeng zeng 77360 Dec 21 11:35 cpuid > -rw------- 1 zeng zeng 2088148 Dec 21 11:35 hostcaps > -rw------- 1 zeng zeng 2318623 Dec 21 11:35 relock > -rw-rw-rw- 1 zeng zeng 2745387 Dec 21 11:35 unlock
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

right the executable bit has somehow been removed. Type this in the terminal in the linux folder:

chmod +x *

the try running the command again:

sudo ./unlock

<!-- gh-comment-id:1419102211 --> @DrDonk commented on GitHub (Feb 6, 2023): right the executable bit has somehow been removed. Type this in the terminal in the linux folder: `chmod +x *` the try running the command again: `sudo ./unlock`
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

right the executable bit has somehow been removed. Type this in the terminal in the linux folder:

chmod +x *

the try running the command again:

sudo ./unlock

Thanks for your help.zip and rar can't save the executable bit. If save them as tar.gz, it would not have this error.

<!-- gh-comment-id:1419106753 --> @earthmoon commented on GitHub (Feb 6, 2023): > right the executable bit has somehow been removed. Type this in the terminal in the linux folder: > > `chmod +x *` > > the try running the command again: > > `sudo ./unlock` Thanks for your help.**zip** and **rar** can't save the executable bit. If save them as **tar.gz**, it would not have this error.
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

right the executable bit has somehow been removed. Type this in the terminal in the linux folder:

chmod +x *

the try running the command again:

sudo ./unlock

This way works well.

<!-- gh-comment-id:1419107294 --> @earthmoon commented on GitHub (Feb 6, 2023): > right the executable bit has somehow been removed. Type this in the terminal in the linux folder: > > `chmod +x *` > > the try running the command again: > > `sudo ./unlock` This way works well.
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

Actually the zip file does have the executable bits (I check each release) and I'm not sure what happened to your system. I don't use TGZ as 95%+ users as on Windows and it's a non-native format.

<!-- gh-comment-id:1419145879 --> @DrDonk commented on GitHub (Feb 6, 2023): Actually the zip file does have the executable bits (I check each release) and I'm not sure what happened to your system. I don't use TGZ as 95%+ users as on Windows and it's a non-native format.
Author
Owner

@earthmoon commented on GitHub (Feb 6, 2023):

Actually the zip file does have the executable bits (I check each release) and I'm not sure what happened to your system. I don't use TGZ as 95%+ users as on Windows and it's a non-native format.

How about make the Linux folder to .tar.gz? And still make the all files in a .zip or .rar file. The Linux users can use .tar.gz without any problem with the permission errors and the Windows users can unzip them as before.

<!-- gh-comment-id:1419154200 --> @earthmoon commented on GitHub (Feb 6, 2023): > Actually the zip file does have the executable bits (I check each release) and I'm not sure what happened to your system. I don't use TGZ as 95%+ users as on Windows and it's a non-native format. How about make the Linux folder to .tar.gz? And still make the all files in a .zip or .rar file. The Linux users can use .tar.gz without any problem with the permission errors and the Windows users can unzip them as before.
Author
Owner

@DrDonk commented on GitHub (Feb 6, 2023):

OK done for the next release.

<!-- gh-comment-id:1419447567 --> @DrDonk commented on GitHub (Feb 6, 2023): OK done for the next release.
Author
Owner

@earthmoon commented on GitHub (Feb 7, 2023):

OK done for the next release.

Thanks a lot.

<!-- gh-comment-id:1420085624 --> @earthmoon commented on GitHub (Feb 7, 2023): > OK done for the next release. Thanks a lot.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unlocker#67
No description provided.