Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-20-2024, 04:22 AM
|
#1
|
Member
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354
Rep:
|
Ubuntu 20.04.6 LTS: Can't run web server in docker container (phpdockerio/php:8.1-fpm)
Code:
> [php-fpm 9/9] RUN apt-get update && apt-get upgrade -y && apt-get install -y nodejs && npm install -g npm:
3.102 Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease
3.102 Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
3.179 Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
3.200 Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
3.504 Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
3.994 Reading package lists...
4.739 W: http://ppa.launchpad.net/ondrej/php/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
4.739 E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 1h 24min 35s). Updates for this repository will not be applied.
4.739 E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 1h 25min 47s). Updates for this repository will not be applied.
------
failed to solve: process "/bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y nodejs && npm install -g npm" did not complete successfully: exit code: 100
There was no problem until today. Could it please be caused by wrong computer time ?
|
|
|
06-20-2024, 04:52 AM
|
#2
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,923
|
Very much so. Add this line into Dockerfile:
RUN date
|
|
|
06-20-2024, 05:37 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,636
|
I guess it is the case when the repo is just being refreshed. wait the suggested time and retry.
|
|
|
06-20-2024, 06:32 AM
|
#4
|
Member
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354
Original Poster
Rep:
|
Quote:
Originally Posted by NevemTeve
Very much so. Add this line into Dockerfile:
RUN date
|
It shows UTC time 9:28. (And it's wrong. It should be 11:28 UTC or 13:28 local time)
|
|
|
06-20-2024, 06:33 AM
|
#5
|
Member
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
I guess it is the case when the repo is just being refreshed. wait the suggested time and retry.
|
Same result now.
|
|
|
07-20-2024, 12:27 PM
|
#6
|
Member
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354
Original Poster
Rep:
|
solved - ntpd was blocked by firewall
|
|
|
All times are GMT -5. The time now is 03:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|