ish-app / ish

Linux shell for iOS
https://ish.app
Other
17.2k stars 910 forks source link

Repositories don’t work: Proposition to put this in /etc/apk/repositories #1217

Open 404oops opened 3 years ago

404oops commented 3 years ago

My 200mbps internet won't budge when it comes to downloading APKINDEX files, so these repos might be useful for future releases:

http://dl-cdn.alpinelinux.org/alpine/v3.13/main
http://dl-cdn.alpinelinux.org/alpine/v3.13/community
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community
saagarjha commented 3 years ago

We have no plans to change the default repositories in iSH at this time. That being said, we would very much like to hear more about APKINDEX not downloading: is this something that you can consistently reproduce? Are you behind a firewall or any other non-standard network connection?

404oops commented 3 years ago

I'm on an iPad, the connection is not limited, nor throttled via Xcode

bao3 commented 3 years ago

I could confirmed this issue ,but I “fixed” it

  1. I fellowed the wiki to add the repositories
    
    wangbaoshandeiPad:~# grep -v "file:///ish/apk/" /etc/apk/repositories | dd of=/etc/apk/repositories bs=4194304
    0+0 records in
    0+0 records out
    wangbaoshandeiPad:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.13/main >> /etc/apk/repositories
    wangbaoshandeiPad:~# echo https://dl-cdn.alpinelinux.org/alpine/v3.13/community >> /etc/apk/repositories
    wangbaoshandeiPad:~# 
    wangbaoshandeiPad:~# 
2. Then I run `apk update` 

wangbaoshandeiPad:~# apk update fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86/APKINDEX.tar.gz ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: Permission denied WARNING: Ignoring APKINDEX.32aecc44.tar.gz: No such file or directory fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86/APKINDEX.tar.gz ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: Permission denied WARNING: Ignoring APKINDEX.c77b2f80.tar.gz: No such file or directory 2 errors; 29 distinct packages available

3. I tried to run `apk search`

wangbaoshandeiPad:~# apk search ssh WARNING: Ignoring APKINDEX.32aecc44.tar.gz: No such file or directory WARNING: Ignoring APKINDEX.c77b2f80.tar.gz: No such file or directory


4. at the end I clear the contents in `/etc/apk/repositories` ,and added the repo mannually

wangbaoshandeiPad:~# vi /etc/apk/repositories wangbaoshandeiPad:~# apk update fetch http://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86/APKINDEX.tar.gz v3.13.0-127-g9cfb48d2a1 [http://dl-cdn.alpinelinux.org/alpine/v3.13/main] v3.13.0-136-g7cf49de2ec [http://dl-cdn.alpinelinux.org/alpine/v3.13/community] OK: 13572 distinct packages available



It’s successful.

5. `apk search ssh` as good.