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

Can't use apt-get #34

Closed
Kronos256 opened this issue Jul 4, 2021 · 24 comments
Closed

Can't use apt-get #34

Kronos256 opened this issue Jul 4, 2021 · 24 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested

Comments

@Kronos256
Copy link

Kronos256 commented Jul 4, 2021

I have some problems when I try installing libgles-dev, or anything for that matter. Maybe I am doing something wrong since I am new to Termux.

I always get this error:

Reading package lists... Error!
E: Unable to determine file size for fd 6 - fstat (1: Operation not permitted)
E: The package lists or status file could not be parsed or opened.

Here is what I get:

~ $ hippo root@localhost:~# apt-get install libgles-dev Reading package lists... Error! E: Unable to determine file size for fd 6 - fstat (1: Operation not permitted) E: The package lists or status file could not be parsed or opened. root@localhost:~# apt-get autoremove Reading package lists... Error! E: Unable to determine file size for fd 6 - fstat (1: Operation not permitted) E: The package lists or status file could not be parsed or opened. root@localhost:~# sudo apt-get install libgles-dev sudo: unable to determine tty: Permission denied Reading package lists... Error! E: Unable to determine file size for fd 6 - fstat (1: Operation not permitted) E: The package lists or status file could not be parsed or opened. root@localhost:~# apt install libgles-dev Reading package lists... Error! E: Unable to determine file size for fd 6 - fstat (1: Operation not permitted) E: The package lists or status file could not be parsed or opened. root@localhost:~#

@Kronos256 Kronos256 added documentation Improvements or additions to documentation question Further information is requested labels Jul 4, 2021
@SaicharanKandukuri SaicharanKandukuri added the help wanted Extra attention is needed label Jul 4, 2021
@SaicharanKandukuri
Copy link
Member

Try to do
apt clean

@ghost
Copy link

ghost commented Jul 4, 2021

can you try apt update / apt-get update, seems problem is while writing to /tmp. removing and recreating should work

@SaicharanKandukuri SaicharanKandukuri added the bug Something isn't working label Jul 4, 2021
@SaicharanKandukuri
Copy link
Member

does apt clean worked

@SaicharanKandukuri
Copy link
Member

can you share output of termux-info

@Wtab
Copy link

Wtab commented Jul 4, 2021

I think because apt does not has any permission or other thing like tar and tigervnc, i have that issue to.

@Wtab
Copy link

Wtab commented Jul 4, 2021

I think this will help
sudo chmod 777 -R /

@Kronos256
Copy link
Author

I think this will help
sudo chmod 777 -R /

I already tried that but it didn't do anything,

@Kronos256
Copy link
Author

Kronos256 commented Jul 5, 2021

apt clean ; apt update ; pkg update they didn't help on armhf
Screenshot_20210705-141225

@SaicharanKandukuri
Copy link
Member

i look into this problem

@Wtab
Copy link

Wtab commented Jul 6, 2021

Maybe proot can't sanitize the binding /proc/self/fd/0

@SaicharanKandukuri
Copy link
Member

i made some 1st tests of armhf build
i didn't got any fd error😕
Screenshot_20210706-085039_Termux (1)

@SaicharanKandukuri
Copy link
Member

@Kronos256
Copy link
Author

Kronos256 commented Jul 6, 2021

Bruh

@Randomae
it's normal do nano /data/data/com.termux/files/usr/etc/proot-distro/hippo.sh
and remove # in front of those lines
Capture d’écran 2021-07-06 141652

@Allan-sketch
Copy link

Bro try :
$pkg install nano
$apt edit-sources main,root,X11,game,science

@SaicharanKandukuri
Copy link
Member

@Randomae can you do it like
in termux install strace

apt install strace

in hippo

touch trace.txt
strace -o trace.txt apt update

and share trace.txt file here or discord
this provides extra info on what really happening

@SaicharanKandukuri
Copy link
Member

I am dumping armhf build to ubuntu 20

@stale
Copy link

stale bot commented Jul 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale issue is inactive for long time label Jul 19, 2021
@stale stale bot removed the stale issue is inactive for long time label Jul 22, 2021
@SaicharanKandukuri
Copy link
Member

SaicharanKandukuri commented Jul 23, 2021

I am dumping armhf build to ubuntu 20

Look's like we need to accept the fact that termux and proot are still in active development!
and the issue in termux/proot is stale. so ubuntu 20 will be active for armhf until I get a fix

@SaicharanKandukuri SaicharanKandukuri pinned this issue Jul 31, 2021
@stale
Copy link

stale bot commented Aug 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale issue is inactive for long time label Aug 2, 2021
@SaicharanKandukuri
Copy link
Member

No don't

@stale stale bot removed the stale issue is inactive for long time label Aug 2, 2021
@stale
Copy link

stale bot commented Aug 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale issue is inactive for long time label Aug 12, 2021
@SaicharanKandukuri
Copy link
Member

.

@stale stale bot removed the stale issue is inactive for long time label Aug 12, 2021
@SaicharanKandukuri
Copy link
Member

looks like the problem is solved closing this issue
termux/proot#172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants