APK - Can't update or upgrade packages from repository

3 posts / 0 new
Last post
#1 Tue, 2016-03-08 09:06
ChickPulp
  • ChickPulp's picture
  • Offline
  • Last seen: 2 years 3 weeks ago
  • Joined: 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? :)

Sun, 2016-03-13 11:14
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

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

Fri, 2017-06-09 02:33
nevernet
  • nevernet's picture
  • Offline
  • Last seen: 9 months 3 weeks ago
  • Joined: 2017-06-09

i got same error

~ # cat /etc/apk/repositories
http://dl-2.alpinelinux.org/alpine/v3.6/main
http://dl-2.alpinelinux.org/alpine/v3.6/community

error message:

fetch <a href="http://dl-2.alpinelinux.org/alpine/v3.6/main" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.6/main</a> /x86_64/APKINDEX.tar.gz
ERROR: <a href="http://dl-2.alpinelinux.org/alpine/v3.6/main" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.6/main</a> : temporary error (try again later)
WARNING: Ignoring APKINDEX.90a1be70.tar.gz: No such file or directory
fetch <a href="http://dl-2.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
ERROR:" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
ERROR:</a> <a href="http://dl-2.alpinelinux.org/alpine/v3.6/community:" rel="nofollow">http://dl-2.alpinelinux.org/alpine/v3.6/community:</a> temporary error (try again later)
WARNING: Ignoring APKINDEX.cb644157.tar.gz: No such file or directory
2 errors; 11 distinct packages available

Log in or register to post comments