Anyone able to install libmagic?

4 posts / 0 new
Last post
#1 Wed, 2016-05-11 23:47
kazanz
  • kazanz's picture
  • Offline
  • Last seen: 1 year 10 months ago
  • Joined: 2016-05-11

I see it in the packages, but I am unable to build it.

Alpine 3.3.3
built from a docker container

I run update, etc.

Getting this error

apk add --update libmagic
fetch <a href="http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch</a> <a href="http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
ERROR:" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
ERROR:</a> unsatisfiable constraints:
  libmagic (missing):
    required by: world[libmagic]

Thu, 2016-05-12 19:01
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

i think libmagic is in the edge repository.
You'll need to update to edge, or wait until it makes it to a stable release.

Thu, 2016-05-12 19:12
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

Please post the content of /etc/apk/repositories

Can you install other packages and upgrade the system successfully?

EDIT: Oops, sorry @Scrumpyjack I crossposted with your answer :/

Fri, 2016-05-13 17:53
kazanz
  • kazanz's picture
  • Offline
  • Last seen: 1 year 10 months ago
  • Joined: 2016-05-11

You are right. Didn't know there was an "edge".

Added http://dl-3.alpinelinux.org/alpine/edge/main to /etc/apk/respositories then ran apk upgrade --update-cache --available and I was able to install libmagic no problem.

Thanks!

Log in or register to post comments