CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Trouble installing OpenFoam 2.10 on Ubuntu 11.10 (http://www.cfd-online.com/Forums/openfoam-installation/96633-trouble-installing-openfoam-2-10-ubuntu-11-10-a.html)

LucasCG January 27, 2012 12:01

Trouble installing OpenFoam 2.10 on Ubuntu 11.10
 
Hi everybody,

I'm trying to install OpenFoam 2.10 on Ubuntu 11.10 but I've got stuck in a error and I'm not being able to find out any solution. Can someone help me, please?

The error message i get is this:

WARNING: The following packages cannot be authenticated!
openfoam210
Install these packages without verification [y/N]? y
Err http://www.openfoam.org/download/ubuntu/ oneiric/main openfoam210 i386 0-1
Got a single header line over 360 chars
Failed to fetch http://www.openfoam.org/download/ubu...0_0-1_i386.deb Got a single header line over 360 chars
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Can someone help me with that?

Thanks,
Lucas

zhernadi January 27, 2012 12:55

Hello Lucas,

Try manually downloading the .deb file. Move it to /var/cache/apt/archives/ (e.g. sudo mv openfoam210*.deb /var/cache/apt/archives/) then try again: sudo apt-get install openfoam210

Zoltan

Leech January 27, 2012 13:31

Hi,

i got the same problem. Just found this:http://changelog.complete.org/archiv...-authenticated
But it dodtn helped?

Any suggestions?

Leech January 27, 2012 13:42

Quote:

Originally Posted by LucasCG (Post 341538)
Hi everybody,

I'm trying to install OpenFoam 2.10 on Ubuntu 11.10 but I've got stuck in a error and I'm not being able to find out any solution. Can someone help me, please?

The error message i get is this:

WARNING: The following packages cannot be authenticated!
openfoam210
Install these packages without verification [y/N]? y
Err http://www.openfoam.org/download/ubuntu/ oneiric/main openfoam210 i386 0-1
Got a single header line over 360 chars
Failed to fetch http://www.openfoam.org/download/ubu...0_0-1_i386.deb Got a single header line over 360 chars
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Can someone help me with that?


Thanks,
Lucas



Hey! I found it!
Use the second link of the error message. Youll get the right .deb.
Move it to /var/cache.. just as posted. Then install again.
Worked!

LucasCG January 27, 2012 13:54

Hi Zoltan,

Thanks for answering my question, but i still have the same problem .
As you see below I tried to download the file and again it gave me an error message:

administrator@ubuntu:~$ sudo apt-get download openfoam210
Err Downloading openfoam210 0-1
Got a single header line over 360 chars


Is there any other way to download manually the .deb file?

Thanks,
Lucas

Leech January 27, 2012 13:55

Quote:

Originally Posted by LucasCG (Post 341560)
Hi Zoltan,

Thanks for answering my question, but i still have the same problem .
As you see below I tried to download the file and again it gave me an error message:

administrator@ubuntu:~$ sudo apt-get download openfoam210
Err Downloading openfoam210 0-1
Got a single header line over 360 chars


Is there any other way to download manually the .deb file?

Thanks,
Lucas

yes
use this link as i wrote before: http://www.openfoam.org/download/ubu...0_0-1_i386.deb
u download the file over your browser, then move it to the apt/archives folder and then type install

LucasCG January 27, 2012 14:20

Hi everybody,

The OpenFoam is working now.

Thanks for helping!

Krøllebølle January 28, 2012 15:12

Nevermind this post, I downloaded the wrong file. I'll leave for records in case anyone does the same. I downloaded this file:

http://sourceforge.net/projects/foam...se_mirror=kent

but this one worked for me:

http://sourceforge.net/projects/foam...se_mirror=garr




Quote:

Originally Posted by LucasCG (Post 341562)
Hi everybody,

The OpenFoam is working now.

Thanks for helping!

It still isn't working for me even though I have downloaded the deb packaged and put it in the /var/cache/.. directory. I use Ubuntu oneiric and the file openfoam.list in /etc/apt/sources.list.d/ contains "deb http://www.openfoam.org/download/ubuntu oneiric main".

I have tried to sudo apt-get update before using sudo apt-get install openfoam210, but I still get the error message:

After this operation, 452 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
openfoam210
Install these packages without verification [y/N]? y
Err http://www.openfoam.org/download/ubuntu/ oneiric/main openfoam210 amd64 0-1
Got a single header line over 360 chars
Failed to fetch http://www.openfoam.org/download/ubu..._0-1_amd64.deb Got a single header line over 360 chars
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I appreciate any comments you may have!

Leech January 28, 2012 17:43

Quote:

Originally Posted by Krøllebølle (Post 341666)
Nevermind this post, I downloaded the wrong file. I'll leave for records in case anyone does the same. I downloaded this file:

http://sourceforge.net/projects/foam...se_mirror=kent

but this one worked for me:

http://sourceforge.net/projects/foam...se_mirror=garr






It still isn't working for me even though I have downloaded the deb packaged and put it in the /var/cache/.. directory. I use Ubuntu oneiric and the file openfoam.list in /etc/apt/sources.list.d/ contains "deb http://www.openfoam.org/download/ubuntu oneiric main".

I have tried to sudo apt-get update before using sudo apt-get install openfoam210, but I still get the error message:

After this operation, 452 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
openfoam210
Install these packages without verification [y/N]? y
Err http://www.openfoam.org/download/ubuntu/ oneiric/main openfoam210 amd64 0-1
Got a single header line over 360 chars
Failed to fetch http://www.openfoam.org/download/ubu..._0-1_amd64.deb Got a single header line over 360 chars
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I appreciate any comments you may have!



http://www.openfoam.com/mantisbt/view.php?id=399

Bruno wrote an answer there. Hope this gets fixed soon.

wyldckat January 28, 2012 19:16

Greetings to all!

Quote:

Originally Posted by Leech (Post 341675)
http://www.openfoam.com/mantisbt/view.php?id=399

Bruno wrote an answer there. Hope this gets fixed soon.

I only wrote more debugging notes about this issue. Right now there is no quick fix, all thanks to Sourceforge.net having changed their mirror management system :(

Well, expect perhaps copy-pasting these lines of code (for installing OpenFOAM 2.1.0 and ParaView 3.12.0 that goes along with it):
Code:

sudo wget `apt-get -qq --print-uris install openfoam210 | sed "s='\(.*\)'.*=\1="` -P /var/cache/apt/archives/
sudo wget `apt-get -qq --print-uris install paraviewopenfoam3120 | sed "s='\(.*\)'.*=\1="` -P /var/cache/apt/archives/
sudo apt-get install openfoam210 paraviewopenfoam3120

It's not very pretty, but it does the trick ;) And when I say "copy-pasting", I do mean literally copy-pasting these lines, because if you mistype any character, it will not work :(

Best regards,
Bruno

jferrari January 28, 2012 23:59

Bruno,

Trying your method, but I'm getting the following error from the first command

wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.


Do you know what this means?

Leech January 29, 2012 04:21

Quote:

Originally Posted by wyldckat (Post 341679)
Greetings to all!


I only wrote more debugging notes about this issue.


yes, right :) sorry

wyldckat January 29, 2012 09:42

Greetings to all!
Quote:

Originally Posted by jferrari (Post 341691)
Bruno,

Trying your method, but I'm getting the following error from the first command

wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.


Do you know what this means?

Same happened to me, but only after I had already downloaded the packages. Try running these commands:
  • To see the URL that apt-get shows us:
    Code:

    apt-get -qq --print-uris install openfoam210
  • You can check if the packages are already present in the cache folder:
    Code:

    ls -l /var/cache/apt/archives/
Nonetheless, a (somewhat temporary) solution has been implemented. You should be able to use the official instructions without any problems... albeit perhaps a bit slow, depending on the country you're downloading from.

Quote:

Originally Posted by Leech (Post 341701)
yes, right :) sorry

No problem! Apparently your guess was right, because a solution has been put into effect thanks to my debugging :D

Best regards,
Bruno

WalshD January 26, 2013 15:14

Quote:

Originally Posted by zhernadi (Post 341543)
Hello Lucas,

Try manually downloading the .deb file. Move it to /var/cache/apt/archives/ (e.g. sudo mv openfoam210*.deb /var/cache/apt/archives/) then try again: sudo apt-get install openfoam210

Zoltan

I've been having a similar problem to the original poster so have downloaded the files. My problem now is that I can't put them into the folder mentioned above, I get a permission denied error message.

Would anyone know why this is? Or how to get around it?

I'm completely new to Ubuntu.

wyldckat January 26, 2013 15:19

Greetings David and welcome to the forum!

It would help if you could detail what exact version of Ubuntu you are using and which version of OpenFOAM are you trying to install!

Additionally, knowing what errors you're getting would also help.

Nonetheless, if you are using Ubuntu 12.10 and trying to install OpenFOAM 2.1.1, try following the first couple of options given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.10

Best regards,
Bruno

WalshD January 26, 2013 16:58

Hi Bruno, thanks for the welcome.

I've a windows operating system so have created a virtual machine that is now running Ubuntu 12.04 LTS (slowly) and I'm trying install OpenFOAM 2.1.1.

I've followed the first and second step on the Ubuntu Deb Pack Installation page but get the error:

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

E: Some index files failed to download. They have been ignored, or old ones used instead.

Now I have downloaded the openfoam211_0-1_amd64.deb and the paraviewopenfoam3120_0-1_amd64.deb files but I can't seem to move them from the download folder to the vars/cache/apt/archives folder.

I have tried a few other things today, been at it a couple of hours now, but none were successful.

Edit: Actually I just checked and it's Ubuntu 12.10 I've installed, so I've uninstalled it and I'm now installing v12.04 LTS

WalshD January 27, 2013 13:55

I un installed Ubuntu 12.10 and installed v12.04 LTS to which there was no problems installeding OpenFOAM 2.1.1.

wyldckat January 27, 2013 14:58

Hi David,

Quote:

Originally Posted by WalshD (Post 404357)
I un installed Ubuntu 12.10 and installed v12.04 LTS to which there was no problems installeding OpenFOAM 2.1.1.

:) Thanks for the feedback! I'm glad it's working. I was starting to get worried that there was another problem with the Sourceforge.net website...

Best regards,
Bruno


All times are GMT -4. The time now is 09:16.