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
Apt update fails #78
Comments
I know I'm online, etc $ telnet termux.net 80 HTTP/1.1 400 Bad Request
|
Do the problem remain? Can you visit http://termux.net/dists/stable/InRelease in the browser? |
Still having the problem. I see a pgp signed message and signature when I open in browser. |
When I grab that URL from within Termux, though, I get this. $ wget -O - http://termux.net/dists/stable/InRelease '#��2 |
@glitchphan The |
https://drive.google.com/file/d/0B-A2cTCaFGMNWV9SWDNKUHJ0OW8/view?usp=sharing I definitely get a different file on a different computer/network. Still need to test the phone on another network as well as another device tethered to the phone. |
Interesting! The file you receive is actually InRelease in gzipped format (seen by using Could you try to access the following two urls with wget and see if they return the gzipped data as well? 1: https://termux.net/dists/stable/InRelease |
The https link seems to be cleartext file but the second one gives a gzipped file again. I finally got a chance to do an apt update on another network over WiFi and it worked fine. That's how I was able to get curl to try https :). Very strange that the network matters. Maybe my data is going through some proxy, even though I don't have one set in APN settings. |
@glitchphan Which network is the one returning the gzipped resource? It would be helpful if you could run this and paste the output to see the http headers:
|
Also run once without the Accept-Encoding header:
|
I'm on AT&T MVNO for my phone service, and on that network when I'm getting the gzipped stuff. I did both of those commands and got slightly different sized gzipped files. $ curl -D- -O http://termux.net/dists/stable/InRelease 0 969 0 0 0 0 0 0 --:100 969 100 969 0 0 408 0 0:00:02 0:00:02 --:--:-- 426 0 0 0 0 0 0 0 0 --:100 988 0 988 0 0 1001 0 --:--:-- --:--:-- --:--:-- 1148 |
Thanks! Finally, can you try appending a parameter
|
Nope, still there. $ curl -D- -O http://termux.net/dists/stable/InRelease?t=1 100 970 100 970 0 0 381 0 0:00:02 0:00:02 --:--:-- 1750 |
Ok, could you try again with the same curl command as the last? I added the |
Same thing with all regular http tries. Content-Encoding: gzip |
Ok, let's try again if we can avoid
|
Success! :) $ curl -D- -O http://termux.net/dists/stable/InRelease?t=1 91 1472 91 1348 0 0 522 0 0:100 1472 100 1472 0 0 553 0 0:00:02 0:00:02 --:--:-- 580 |
Great :)! Does |
It does! Thank you! |
Not sure if I'm the only one with this problem.
$ apt update
Get:1 http://termux.net stable InRelease [965 B]
Err:1 http://termux.net stable InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Fetched 965 B in 4s (196 B/s)
Reading package lists... Done
W: Failed to fetch http://termux.net/dists/stable/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
The text was updated successfully, but these errors were encountered: