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

Problem installing OF 2.0.1 on Ubuntu 11.04

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 7, 2011, 15:12
Default Problem installing OF 2.0.1 on Ubuntu 11.04
  #1
New Member
 
Ricardo
Join Date: Sep 2011
Posts: 8
Rep Power: 5
rvmedina20 is on a distinguished road
greetings all,

I recently installed ubuntu 11.04 on my computer and i am trying to install OF, but i am getting some errors. Ive used ubuntu and OF, but i did not encounter any problems then. I am somewhat new to ubuntu/linux,

I am following the installation commands from here:
http://www.openfoam.com/download/ubuntu.php

After I run the >>sudo apt-get updates (it runs the update but at the end i get this message

W: Failed to fetch http://www.openfoam.com/download/ubu...-i386/Packages 404 Not Found

W: Failed to fetch http://www.openfoam.com/download/ubu...-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
>>~$ sudo apt-get install openfoam201
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openfoam201

I didnt ant to continue the installation commands, until i have fixed this. I would really appreciate it if someone can please, please help me. Thanks

-Ricardo
rvmedina20 is offline   Reply With Quote

Old   October 8, 2011, 08:22
Default
  #2
New Member
 
Join Date: Jun 2011
Location: Rotterdam, the Netherlands
Posts: 9
Rep Power: 6
Van de Leur is on a distinguished road
Ricardo,

For the first installation step, replace the term $VERS with natty, then the installation should work.

Enjoy!

Regards,

Kevin
Van de Leur is offline   Reply With Quote

Old   October 10, 2011, 19:50
Default
  #3
New Member
 
Ricardo
Join Date: Sep 2011
Posts: 8
Rep Power: 5
rvmedina20 is on a distinguished road
Thanks, Kevin.

Looks like i was successful in the installation of OF! Thanks a lot!!!
cheers,

-Ricardo

Quote:
Originally Posted by Van de Leur View Post
Ricardo,

For the first installation step, replace the term $VERS with natty, then the installation should work.

Enjoy!

Regards,

Kevin
rvmedina20 is offline   Reply With Quote

Old   May 22, 2012, 02:41
Question
  #4
New Member
 
Chen Xiaobing
Join Date: Aug 2011
Posts: 11
Rep Power: 6
xbchen168 is on a distinguished road
VERS=`lsb_release -cs`
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"

I have similar problems.

sorry, do u mean to replace "VERS" with "11.10" ? What should I input for this VERS?

I installed "Ubuntu Desktop 11.10 desktop i386" system.

thanks.




Quote:
Originally Posted by Van de Leur View Post
Ricardo,

For the first installation step, replace the term $VERS with natty, then the installation should work.

Enjoy!

Regards,

Kevin
xbchen168 is offline   Reply With Quote

Old   May 22, 2012, 16:01
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Chen,

Can you detail what is the exact problem?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 22, 2012, 21:13
Default
  #6
New Member
 
Chen Xiaobing
Join Date: Aug 2011
Posts: 11
Rep Power: 6
xbchen168 is on a distinguished road
thanks for the greetings.
HTML Code:
The problem is the same as following, 

" I am following the installation commands from here:
http://www.openfoam.com/download/ubuntu.php

After I run the >>sudo apt-get updates (it runs the update but at the end i get this message

W: Failed to fetch http://www.openfoam.com/download/ubu...-i386/Packages 404 Not Found

W: Failed to fetch http://www.openfoam.com/download/ubu...-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
>>~$ sudo apt-get install openfoam201
Reading package lists... Done
Building dependency tree 
Reading state information... Done
E: Unable to locate package openfoam201 "
Pls advice. thanks.




Quote:
Originally Posted by wyldckat View Post
Greetings Chen,

Can you detail what is the exact problem?

Best regards,
Bruno
xbchen168 is offline   Reply With Quote

Old   May 23, 2012, 07:15
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Chen,

OK, now I remember, run this modified command (in bold is the change):
Code:
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu natty main > /etc/apt/sources.list.d/openfoam.list"
This is because 2.0.1 doesn't exist for oneiric, so you have to try and use a version that was meant for another Ubuntu version.

But keep in mind that you might run into problems, since there might be some backwards compatibility issues, so you might have to build from source if those problems occur.

Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   May 26, 2012, 05:52
Default
  #8
New Member
 
Chen Xiaobing
Join Date: Aug 2011
Posts: 11
Rep Power: 6
xbchen168 is on a distinguished road
thanks. it works now.

nice weekend.



Quote:
Originally Posted by wyldckat View Post
Hi Chen,

OK, now I remember, run this modified command (in bold is the change):
Code:
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu natty main > /etc/apt/sources.list.d/openfoam.list"
This is because 2.0.1 doesn't exist for oneiric, so you have to try and use a version that was meant for another Ubuntu version.

But keep in mind that you might run into problems, since there might be some backwards compatibility issues, so you might have to build from source if those problems occur.

Good luck!
Bruno
xbchen168 is offline   Reply With Quote

Reply

Tags
openfoam 2.0.1, ubuntu natty 11.04

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2.0.1 istallation problem using icc fisch OpenFOAM Installation 2 October 9, 2011 10:17
OpenFOAM-1.6-ext on Ubuntu: frustrating problem marupio OpenFOAM Installation 0 March 10, 2011 12:28
Installing OpenFOAM 1.6 on Ubuntu 10.4 sda OpenFOAM Installation 5 May 27, 2010 20:19
Trouble with installing OpenFOAM on Ubuntu Milos OpenFOAM Installation 16 November 16, 2009 03:44
problem about installing FOAM linux freshman Main CFD Forum 6 November 4, 2004 11:59


All times are GMT -4. The time now is 12:08.