Skip to content
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

Is the "ESSENTIAL" attribute really appropriate? #262

Open
Gabr-F opened this issue Jul 6, 2024 · 0 comments
Open

Is the "ESSENTIAL" attribute really appropriate? #262

Gabr-F opened this issue Jul 6, 2024 · 0 comments
Labels
apt Problem installing package via apt bug Something isn't working

Comments

@Gabr-F
Copy link

Gabr-F commented Jul 6, 2024

Problem description

Hello.
In a misguided attempt to fix a problem I tried installing glibc-repo (through termux's normal pkg command).

I later ran pkg upgrade and it told me to install a slew of *-glibc packages.

I unfortunately accepted to do so, and found my device's storage full (yes, I had little free space).

That was my fault, but when then I tried uninstalling those packages, I found myself entrenched in "Removing essential system-critical packages is not permitted" apt errors.

After a while, I found out the apt --allow-remove-essential flag, I recovered the list of glibc packages from apt's logs, and after a safety backup I managed to uninstall them all.

First of all, this aspect should probably be described in the glibc-packages documentation.

Second, is it really appropriate to set TERMUX_PKG_ESSENTIAL=true to so many packages (15), or to any at all?
Or it was maybe only included by accident when making their installation scripts?

Finally, I did not actually break anything by forcing their uninstallation, right?

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=18079
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
@Gabr-F Gabr-F added the bug Something isn't working label Jul 6, 2024
@Maxython Maxython added the apt Problem installing package via apt label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apt Problem installing package via apt bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants