Closed Drjacky closed 10 months ago
Replace pkg with apt
This is actually intentional to save you from significant amounts of pain.
Yes you can run apt as root, but any package installed as root won't be accessible to a regular user and running apt as root may potentially overwrite files unintentionally.
By default PRoot-Distro merges Termux environment with Debian, so you have pkg
available in PATH. However due to numerous issues reported by rooted device owners, we had to restrict usage of apt/pkg when UID is 0 (root user).
So you can't use Termux apt
or pkg
under proot environment when the current user is root.
You need to use apt
instead. Due to PATH content structure, you'll always pick the apt
package manager from Debian rather than from Termux.
This issue is not a bug.
Problem description
What steps will reproduce the bug?
Run
pkg update
What is the expected behavior?
No response