-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: pkg: line 142: syntax error in expression (error token is "8 9 11 12 13 14 16") #10778
Comments
use apt instead pkg, maybe the developer typo at writing script |
f1a83c5#diff-926df3194e5f727be3fefbac2278032a4b2331fa147ddb70c3898602a23765a4R198 |
Ok, I see. I will fix it. |
I have to make other changes, will do it myself, no worries. |
I am using apt as replacement for now, it's just that I kinda like pkg's automatic mirror management. |
Yes, but also need to fix another error in pkg. This is related to the |
I assume that's for people who updated from very old |
So we can close now? |
Yes. |
…anagers and fix broken script Previously, the commands for the package managers were defined in a single array making code hard to read for which command would be executed for which case since reader would have to count indexes of the array for each command to understand the code. Now case statements are used to simply the code. Moreover, the `IFS` was not restored after setting it to `|`, which resulted in the `/data/data/com.termux/files/usr/bin/pkg: line 142: syntax error in expression (error token is...` error. That is fixed too since it won't be used anymore. Closes termux#10778
…anagers and fix broken script Previously, the commands for the package managers were defined in a single array making code hard to read for which command would be executed for which case since reader would have to count indexes of the array for each command to understand the code. Now case statements are used to simply the code. Moreover, the `IFS` was not restored after setting it to `|`, which resulted in the `/data/data/com.termux/files/usr/bin/pkg: line 142: syntax error in expression (error token is...` error. That is fixed too since it won't be used anymore. Closes termux#10778
This is currently not fixed. The |
…anagers and fix broken script Previously, the commands for the package managers were defined in a single array making code hard to read for which command would be executed for which case since reader would have to count indexes of the array for each command to understand the code. Now case statements are used to simply the code. Moreover, the `IFS` was not restored after setting it to `|`, which resulted in the `/data/data/com.termux/files/usr/bin/pkg: line 142: syntax error in expression (error token is...` error. That is fixed too since it won't be used anymore. Closes termux#10778
…anagers and fix broken script Previously, the commands for the package managers were defined in a single array making code hard to read for which command would be executed for which case since reader would have to count indexes of the array for each command to understand the code. Now case statements are used to simply the code. Moreover, the `IFS` was not restored after setting it to `|`, which resulted in the `/data/data/com.termux/files/usr/bin/pkg: line 142: syntax error in expression (error token is...` error. That is fixed too since it won't be used anymore. Closes termux#10778
…anagers and fix broken script Previously, the commands for the package managers were defined in a single array making code hard to read for which command would be executed for which case since reader would have to count indexes of the array for each command to understand the code. Now case statements are used to simply the code. Moreover, the `IFS` was not restored after setting it to `|`, which resulted in the `/data/data/com.termux/files/usr/bin/pkg: line 142: syntax error in expression (error token is...` error. That is fixed too since it won't be used anymore. Closes termux#10778
The https://packages.termux.org/apt/termux-main/pool/main/t/termux-tools/ |
I can't use this solution. When I try How do I come out of the dead loop, please? |
Mine is the latest version 0.118.0 and was installed from F-Droid in April or May. When I
How do I manually change the mirror address? Sorry. I just found out from here. |
Problem description
When I try to use pkg it shows following error:
What steps will reproduce the bug?
When mirrors aren't updated running
pkg upgrade
orpkg install [something]
orpkg update
. I haven't tested anything else.What is the expected behavior?
To complete job without error
System information
termux-info:
The text was updated successfully, but these errors were encountered: