LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 06-20-2024, 04:22 AM   #1
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354

Rep: Reputation: 4
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 ?
 
Old 06-20-2024, 04:52 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,923
Blog Entries: 1

Rep: Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885
Very much so. Add this line into Dockerfile:
RUN date
 
Old 06-20-2024, 05:37 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,636

Rep: Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525
I guess it is the case when the repo is just being refreshed. wait the suggested time and retry.
 
Old 06-20-2024, 06:32 AM   #4
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by NevemTeve View Post
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)
 
Old 06-20-2024, 06:33 AM   #5
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by pan64 View Post
I guess it is the case when the repo is just being refreshed. wait the suggested time and retry.
Same result now.
 
Old 07-20-2024, 12:27 PM   #6
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 354

Original Poster
Rep: Reputation: 4
solved - ntpd was blocked by firewall
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TW 64b.: phpdockerio/php:8.1-fpm: error getting credentials - err: exit status 1, out: `The connection is closed` MakeTopSite SUSE / openSUSE 2 11-04-2023 07:13 AM
LXer: How to compile and install PHP 7.4 as PHP-FPM & FastCGI for ISPConfig 3 on Ubuntu 18.04 LTS LXer Syndicated Linux News 0 12-01-2019 11:30 AM
LXer: Installing Lighttpd with PHP 7 (PHP-FPM) and MySQL 5.7 on Ubuntu 16.04 LTS LXer Syndicated Linux News 0 05-10-2016 09:51 PM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration