CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   openfoam installation (http://www.cfd-online.com/Forums/openfoam/90996-openfoam-installation.html)

javad814 July 27, 2011 10:59

openfoam installation
 
hello ! I am a bigginer in ubuntu
please help me
I wanted to install openfoam 2.00 but I got an error with ( sudo apt-get update )
this is the error:
E: Malformed line 61 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

then I typed the code :cat /etc/apt/sources.list
and below is the out put:
#deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ir.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://ir.archive.ubuntu.com/ubuntu/ natty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ir.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://ir.archive.ubuntu.com/ubuntu/ natty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ir.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://ir.archive.ubuntu.com/ubuntu/ natty universe
deb http://ir.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://ir.archive.ubuntu.com/ubuntu/ natty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ir.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://ir.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://ir.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://ir.archive.ubuntu.com/ubuntu/ natty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ir.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
deb http://www.openfoam.com/download/ubuntu maverick main
deb http://www.openfoam.com/download/ubuntu maverick main
deb http://www.openfoam.com/download/ubuntu main
deb http://www.openfoam.com/download/ubuntu maverick main
deb http://www.openfoam.com/download/ubuntu maverick main

now what shoud I do
thanks

jango July 29, 2011 03:14

Hi javad,

open a shell and become root by typing sudo -i. Then edit the file /etc/apt/sources.list with your favorite editor and remove all entries according to openfoam (the last five lines)--> close and save --> type:
apt-get update (the error should now disappear)
echo "deb http://www.openfoam.com/download/ubuntu maverick main">>/etc/apt/sources.list
apt-get update
apt-get install openfoam

javad814 July 29, 2011 09:24

hi jango
 
excuseme I am abigginer in ubuntu please explian how i can edit the file /etc/apt/sources.list and how to remove all entries according to openfoam .
how can i save it?
thanks a lot

lovecraft22 July 29, 2011 09:36

just type
gedit /etc/apt/sources.list
remove the entries about openfoam then save.

jango July 29, 2011 09:41

of installation
 
1 Attachment(s)
and see screenshot below how to open a console...
Have fun and a nice weekend,

Jan

wyldckat July 29, 2011 18:22

Greetings to all!

For the sake of completeness:
Quote:

Originally Posted by jango (Post 318044)
and see screenshot below how to open a console...

And then run:
Code:

gksu gedit /etc/apt/sources.list
It will ask you for your password so you can edit the file with root (= super user = administrator) permissions.

Best regards,
Bruno

javad814 August 2, 2011 06:10

hello friends
 
my problem is solved
thanks for your detailed helps
:)

Danille7 January 27, 2012 12:31

Thanks for this info!


All times are GMT -4. The time now is 13:54.