APK - Can't update or upgrade packages from repository
#1
Tue, 2016-03-08 09:06
ChickPulp
-
- Offline
- 2 years 3 weeks ago
- 2016-03-08
Hello
I have installed Alpine 3.3 on a Asus Eee box (x86) it's running perfectly fine, but i am not able to update or upgrade packages from any repository.
Content of apk/repositories
#/media/usb/apks http://dl-2.alpinelinux.org/alpine/v3.3/main/x86/
I get the following warning when i try to update or upgrade:
srv1:/etc/apk# apk update fetch <a href="http://dl-2.alpinelinux.org/alpine/v3.3/main/x86/x86/APKINDEX.tar.gz ERROR:" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.3/main/x86/x86/APKINDEX.tar.gz ERROR:</a> <a href="http://dl-2.alpinelinux.org/alpine/v3.3/main/x86:" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.3/main/x86:</a> No such file or directory WARNING: Ignoring APKINDEX.dc3f5037.tar.gz: No such file or directory 1 errors; 36 distinct packages available srv1:/etc/apk# apk upgrade WARNING: Ignoring APKINDEX.dc3f5037.tar.gz: No such file or directory OK: 227 MiB in 36 packages srv1:/etc/apk# setup-apkrepos r) Add random from the above list f) Detect and add fastest mirror from above list e) Edit /etc/apk/repositores with text editor Enter mirror number (1-0) or URL to add (or r/f/e/done) [f]: r /sbin/setup-apkrepos: line 1: divide by zero
uname -a
Linux srv1 4.1.15-2-grsec #3-Alpine SMP Tue Jan 5 11:27:39 GMT 2016 i686 Linux
The FAQ states that if i get an warning on APKINDEX.xxxxx.tar.gz it's probably due to a repository pointing to /testing. i don't have any addresses pointing to */testing.
http://wiki.alpinelinux.org/wiki/Alpine_Linux:FAQ
I am able to download packages from the repository using wget, so i don't think it has anything to do with networking.
srv1:/etc/apk# wget <a href="http://dl-2.alpinelinux.org/alpine/v3.3/main/x86/aaudit-0.7.2-r1.apk Connecting" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.3/main/x86/aaudit-0.7.2-r1.apk Connecting</a> to dl-2.alpinelinux.org (208.74.141.33:80) aaudit-0.7.2-r1.apk 100% |*****************************************| 3112 0:00:00 ETA srv1:/etc/apk#
How do i fix this? :)
Remove the architecture path from the repo url, the package manager apk will fetch the right one. Also, add the community repo and run apk update
http://dl-2.alpinelinux.org/alpine/v3.3/main
http://dl-2.alpinelinux.org/alpine/v3.3/community
i got same error
error message: