CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problem installing OF 2.0.1 on Ubuntu 11.04 (http://www.cfd-online.com/Forums/openfoam-installation/93203-problem-installing-2-0-1-ubuntu-11-04-a.html)

rvmedina20 October 7, 2011 15:12

Problem installing OF 2.0.1 on Ubuntu 11.04
 
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

Van de Leur October 8, 2011 08:22

Ricardo,

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

Enjoy!

Regards,

Kevin

rvmedina20 October 10, 2011 19:50

Thanks, Kevin.

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

-Ricardo

Quote:

Originally Posted by Van de Leur (Post 327152)
Ricardo,

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

Enjoy!

Regards,

Kevin


xbchen168 May 22, 2012 02:41

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 (Post 327152)
Ricardo,

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

Enjoy!

Regards,

Kevin


wyldckat May 22, 2012 16:01

Greetings Chen,

Can you detail what is the exact problem?

Best regards,
Bruno

xbchen168 May 22, 2012 21:13

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 (Post 362540)
Greetings Chen,

Can you detail what is the exact problem?

Best regards,
Bruno


wyldckat May 23, 2012 07:15

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 May 26, 2012 05:52

thanks. it works now.

nice weekend.



Quote:

Originally Posted by wyldckat (Post 362652)
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



All times are GMT -4. The time now is 21:04.