-
-
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 is not working anymore #10782
Comments
Try reloading termux, that is, close it completely and then open it |
i have the same error. Even though I completely deleted Termux and downloaded it, it didn't fix it... |
You misunderstood! |
still not working man. |
oh it's working now. but I don't fully understand. I'll let you know once it stops working. good day Sir. :) |
Nice! it works! I want to be a good programmer like you one day. nice to meet you man. have a nice day. 🥳 |
Tnx. Restarting Termux solved the problem. But still it's a bug, isn't it? |
If restarting Termux doesn't fix it, try replacing the login file(You need to install download tools such as wget -O /data/data/com.termux/files/usr/bin/login https://raw.githubusercontent.com/termux/termux-packages/master/packages/termux-tools/login Reopen Termux. |
This bug is the same as |
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#/2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
The https://packages.termux.org/apt/termux-main/pool/main/t/termux-tools/ |
Problem description
when I try to install or update packages using pkg, it show me the following error:-
/data/data/com.termux/files/usr/bin/pkg: line 197: TERMUX_MAIN_PACKAGE_FORMAT: unbound variable
Steps to reproduce the behavior.
All I found in the internet is to use apt instead of pkg.
What is the expected behavior?
It should install or update packages.
System information
The text was updated successfully, but these errors were encountered: