CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Issues installing openfoam 6 on Ubuntu 18.04

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By rnburne

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2018, 11:33
Default Issues installing openfoam 6 on Ubuntu 18.04
  #1
Member
 
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13
rnburne is on a distinguished road
I'm upgrading to openfoam 6 on a newly installed Ubuntu 18.04.1
using the instructions at openfoam.org, which have worked well
in the past.

In response to the following commands.......


Code:
sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
I get..........

Code:
r@sys:~$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:2 http://archive.canonical.com/ubuntu bionic InRelease                     
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]   
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Get:4 http://dl.openfoam.org/ubuntu bionic InRelease [6,337 B]                 
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] 
Reading package lists... Done                                  
E: Release file for http://us.archive.ubuntu.com/ubuntu/...ates/InRelease is not valid yet (invalid for another 1h 50min 44s). Updates for this repository will not be applied.
E: Release file for http://dl.openfoam.org/ubuntu/dists/bionic/InRelease is not valid yet (invalid for another 2h 35min 9s). Updates for this repository will not be applied.
E: Release file for http://security.ubuntu.com/ubuntu/di...rity/InRelease is not valid yet (invalid for another 1h 50min 33s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/...orts/InRelease is not valid yet (invalid for another 1h 51min 9s). Updates for this repository will not be applied.
While not understanding the message, I went ahead and updated.......

Code:
r@sys:~$ sudo apt-get update
Hit:1 http://archive.canonical.com/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                     
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Hit:8 http://us.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:7 http://dl.openfoam.org/ubuntu bionic InRelease [6,337 B]                 
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]     
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]   
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Reading package lists... Done                                
E: Release file for http://security.ubuntu.com/ubuntu/di...rity/InRelease is not valid yet (invalid for another 1h 25min 1s). Updates for this repository will not be applied.
E: Release file for http://dl.openfoam.org/ubuntu/dists/bionic/InRelease is not valid yet (invalid for another 2h 9min 37s). Updates for this repository will not be applied.
E: Release file for http://security.ubuntu.com/ubuntu/di...rity/InRelease is not valid yet (invalid for another 1h 25min 39s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/...ates/InRelease is not valid yet (invalid for another 1h 25min 12s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/...orts/InRelease is not valid yet (invalid for another 1h 25min 38s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/...orts/InRelease is not valid yet (invalid for another 1h 27min 37s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/...ates/InRelease is not valid yet (invalid for another 1h 52min 46s). Updates for this repository will not be applied.
And tried the install command.........


Code:
r@sys:~$ sudo apt-get -y install openfoam6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openfoam6 : Depends: libreadline-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Can anyone figure this out?


Ron

Last edited by wyldckat; October 20, 2018 at 16:09. Reason: Added [CODE][/CODE] markers
rnburne is offline   Reply With Quote

Old   October 20, 2018, 16:12
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I've Google'd for:
Code:
ubuntu "Release file for"  "is not valid yet"
and it seems that the problem is that your machine clock is ahead of time for a few hours, hence the message that the release file is not valid yet...

As far as I can figure out, this is a safety measure to avoid machines using a repository that is still syncing up with another server.

Allegedly:
  • Either you change how the clock is defined in your machine, namely by telling it to use NTP (the option is named something like "automatically defined with Internet clock") or run the following command:
    Code:
    sudo timedatectl set-ntp on
  • Or you change the current clock time manually, install OpenFOAM et al and the set the clock back to the desired time.
__________________
wyldckat is offline   Reply With Quote

Old   October 20, 2018, 17:29
Default
  #3
Member
 
Ron Burnett
Join Date: Feb 2013
Posts: 42
Rep Power: 13
rnburne is on a distinguished road
That was indeed the case........I had the correct
local time but the wrong time zone.
The installation is working properly, thank you
for the help Bruno.

Ron
wyldckat likes this.
rnburne is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 JGadelho OpenFOAM Community Contributions 35 November 6, 2023 12:42
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 AHutchison OpenFOAM Installation 6 June 4, 2013 13:11
Installing OpenFOAM 1.6-ext on Ubuntu 11.10 immortality OpenFOAM Installation 17 May 6, 2013 18:43
Gettings started after installing OpenFOAM 2.1.1 in Ubuntu 12.10 yoddha24 OpenFOAM 7 November 22, 2012 12:46
Trouble with installing OpenFOAM on Ubuntu Milos OpenFOAM Installation 16 November 16, 2009 03:44


All times are GMT -4. The time now is 02:06.