opengisch / OSGeo4A

OSGeo4A is a build environment to cross-compile opensource GIS software for android devices
MIT License
30 stars 22 forks source link

libmagic-mgc_5.32-2ubuntu0.1_amd64.deb not found while building with Docker #47

Closed edips closed 5 years ago

edips commented 5 years ago

When I try to build OSGeo4A with Docker, I get the error:

Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libmagic-mgc amd64 1:5.32-2ubuntu0.1
  404  Not Found [IP: 91.189.91.23 80]
Err:2 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libmagic1 amd64 1:5.32-2ubuntu0.1
  404  Not Found [IP: 91.189.91.23 80]
Err:3 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 file amd64 1:5.32-2ubuntu0.1
  404  Not Found [IP: 91.189.91.23 80]
Fetched 179 kB in 1s (165 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/file/libmagic-mgc_5.32-2ubuntu0.1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/file/libmagic1_5.32-2ubuntu0.1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/file/file_5.32-2ubuntu0.1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install -y file python3-six zip' returned a non-zero code: 100
m-kuhn commented 5 years ago

On first sight this looks like a temporary error in ubuntu. Did this happen repeatedly?

edips commented 5 years ago

Yes I tried sudo docker build -t osgeo4a . and I got the error. I checked the link http://security.ubuntu.com/ubuntu/pool/main/f/file/libmagic-mgc_5.32-2ubuntu0.1_amd64.deb it was empty. I was able to build OSGeo4A with docker 2 months ago.

m-kuhn commented 5 years ago

Not sure what's going on. Are you aware of https://hub.docker.com/r/opengisch/qfield-sdk/tags where prebuilt docker images can be found?

edips commented 5 years ago

I didn't know about the link. I will try them. I tried this docker file.

m-kuhn commented 5 years ago

See this section here for more info https://github.com/opengisch/QField/#build (the tag in the script is outdated, replace it with a newer one)

edips commented 5 years ago

Thank you. It built a working apk for QField.