CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Install openFOAM from with proxy server (https://www.cfd-online.com/Forums/openfoam-installation/142737-install-openfoam-proxy-server.html)

Dhruval October 8, 2014 08:40

Install openFOAM from with proxy server
 
hallo,

i want to install openfoam and paraview in my Ubuntu 12.04 LTS, i have proxy server in my pc. so i couldnt install from deb pack via Terminal so i download and unpacked OpenFOAM and Third Party software folder in my HOME directory. now next step is

Dependent packages required for Ubuntu can be installed by executing the following command in a terminal:
apt-get install build essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev

i follow that to install dependent packages but didnt done.error messege poped up:

Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
zlib1g-dev is already the newest version.
zlib1g-dev set to manually installed.
libxt-dev is already the newest version.
libxt-dev set to manually installed.
build-essential is already the newest version.
libqt4-dev is already the newest version.
libqt4-dev set to manually installed.
qt4-dev-tools is already the newest version.
qt4-dev-tools set to manually installed.
gnuplot is already the newest version.
gnuplot set to manually installed.
The following packages were automatically installed and are no longer required:
  paraview-doc mpi-default-bin
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  cmake-data emacsen-common libbison-dev libfl-dev libreadline6-dev
  libtinfo-dev libxmlrpc-core-c3 m4
Suggested packages:
  bison-doc ncurses-doc
The following NEW packages will be installed:
  bison cmake cmake-data emacsen-common flex libbison-dev libfl-dev
  libncurses5-dev libreadline-dev libreadline6-dev libtinfo-dev
  libxmlrpc-core-c3 m4
0 upgraded, 13 newly installed, 0 to remove and 247 not upgraded.
Need to get 6,673 kB of archives.
After this operation, 19.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
  m4 libfl-dev flex libbison-dev bison libxmlrpc-core-c3 emacsen-common
  cmake-data cmake libtinfo-dev libncurses5-dev libreadline6-dev
  libreadline-dev
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ precise/main m4 amd64 1.4.16-2ubuntu1
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main m4 amd64 1.4.16-2ubuntu1
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main libfl-dev amd64 2.5.35-10ubuntu3
  407  Proxy Authorization Required
Err http://archive.ubuntu.com/ubuntu/ precise/main flex amd64 2.5.35-10ubuntu3
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main flex amd64 2.5.35-10ubuntu3
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main libbison-dev amd64 1:2.5.dfsg-2.1
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main bison amd64 1:2.5.dfsg-2.1
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main emacsen-common all 1.4.22ubuntu1
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise-updates/main cmake-data all 2.8.7-0ubuntu5
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise-updates/main cmake amd64 2.8.7-0ubuntu5
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main libtinfo-dev amd64 5.9-4
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main libncurses5-dev amd64 5.9-4
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main libreadline6-dev amd64 6.2-8
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise/main libreadline-dev amd64 6.2-8
  407  Proxy Authorization Required
Err http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libxmlrpc-core-c3 amd64 1.16.33-3.1ubuntu5.1
  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/m/m4/m4_1.4.16-2ubuntu1_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/f/flex/libfl-dev_2.5.35-10ubuntu3_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/f/flex/flex_2.5.35-10ubuntu3_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/x/xmlrpc-c/libxmlrpc-core-c3_1.16.33-3.1ubuntu5.1_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/e/emacsen-common/emacsen-common_1.4.22ubuntu1_all.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake-data_2.8.7-0ubuntu5_all.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake_2.8.7-0ubuntu5_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo-dev_5.9-4_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses5-dev_5.9-4_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/r/readline6/libreadline6-dev_6.2-8_amd64.deb  407  Proxy Authorization Required
Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/main/r/readline6/libreadline-dev_6.2-8_amd64.deb  407  Proxy Authorization Required
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

so please tell me what should i do ? can i get dependent software from other source ?
or without this software i can also work with OpenFOAM?
please share some idea..
thansk

wyldckat October 11, 2014 15:44

Greetings Dhruval,

According to your description, I would say that the problem is in that you first need to configure apt-get to work with the proxy server. This should be easily found online, by searching for:
Code:

Ubuntu apt-get use proxy server
My first hit was this page: https://help.ubuntu.com/community/Ap...e_a_http-proxy

I don't use a proxy server myself, so I have no way of easily testing if this works. Either way, you might want to check the Ubuntu forums for this particular issue.

Best regards,
Bruno

Dhruval October 14, 2014 08:10

thanks for your answer..i tried that . ist also not working :-(

wyldckat October 18, 2014 15:38

I've searched for "Ubuntu Proxy Authorization Required" and found that the following two threads should provide a solution:
In addition, before trying to install software with apt-get, run:
Code:

apt-get update
this will update apt-get's cache for knowing where to download from. If the proxy isn't properly configured for apt-get, it should complain right away when you call this update command.


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