Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose fails at install tzdata #20

Open
kpretz opened this issue Mar 16, 2021 · 5 comments
Open

Docker-compose fails at install tzdata #20

kpretz opened this issue Mar 16, 2021 · 5 comments

Comments

@kpretz
Copy link

kpretz commented Mar 16, 2021

Run docker-compose build from within gsflow-grass-docker folder and get the following error. Running Ubuntu 18.04.1. Could be a problem with my environment.

Building gsflow_grass
Step 1/17 : FROM ubuntu:18.10
 ---> 9dc19675e327
Step 2/17 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> 8876b44ce55c
Step 3/17 : USER root
 ---> Using cache
 ---> 1c4315854a5f
Step 4/17 : RUN useradd -m -s /bin/bash mezcla
 ---> Using cache
 ---> cb011c3a9dbf
Step 5/17 : RUN apt update && apt install tzdata
 ---> Running in 7e0b4361e56e

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Ign:1 http://security.ubuntu.com/ubuntu cosmic-security InRelease
Err:2 http://security.ubuntu.com/ubuntu cosmic-security Release
  404  Not Found [IP: 91.189.91.39 80]
Ign:3 http://archive.ubuntu.com/ubuntu cosmic InRelease
Ign:4 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu cosmic Release
  404  Not Found [IP: 91.189.88.142 80]
Err:7 http://archive.ubuntu.com/ubuntu cosmic-updates Release
  404  Not Found [IP: 91.189.88.142 80]
Err:8 http://archive.ubuntu.com/ubuntu cosmic-backports Release
  404  Not Found [IP: 91.189.88.142 80]
Reading package lists...
E: The repository 'http://security.ubuntu.com/ubuntu cosmic-security Release' do                                                                                                                                             es not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic Release' does not hav                                                                                                                                             e a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-updates Release' does                                                                                                                                              not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-backports Release' do                                                                                                                                             es not have a Release file.
ERROR: Service 'gsflow_grass' failed to build: The command '/bin/sh -c apt updat                                                                                                                                             e && apt install tzdata' returned a non-zero code: 100

@kpretz kpretz changed the title Docker-compose fails at Docker-compose fails at install tzdata Mar 16, 2021
@aandrovitsanea
Copy link
Collaborator

Ups!
I think my username slipped in there.
Try the following:

  • Change at file Dockerfile, insert your USER name at:

    - Line 5, RUN useradd -m -s /bin/bash USER
    
    - Line 20, ADD install_kit /home/USER/install_kit
    
    - Line 21, RUN chmod +x /home/USER/install_kit
    
    - Line 24, USER **USER**
    
    - Line 25, WORKDIR /home/USER
    
  • Change at file install_kit, insert your USER name at::

    - Line 6,  echo "" | grass74 -c EPSG:2100 /home/USER/grassdata
    
  • Rebuild

@kpretz
Copy link
Author

kpretz commented Mar 16, 2021

I made the changes and got the same error. Looks like I need root to run. I tried just installing tzdata and it worked with root.

@awickert
Copy link
Contributor

Glad you two figured this out! I'll leave open as a reminder to update the docs once I do the big overhaul.

@aandrovitsanea
Copy link
Collaborator

@kpretz glad you figured it out!
I think is a good idea to be root so that you can install all dependent packages smoothly.

@dgketchum
Copy link

dgketchum commented Jan 4, 2022

FYI, I got past this same error by changing the ubuntu release in the Dockerfile from 18.10 to 18.04. See https://superuser.com/a/1527268/643284. This is due to 18.04 having long-term service status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants