Sponsored Content
Special Forums IP Networking Proxy Server Installation JDK in the LXC container - Host behind Proxy Post 302929877 by chercheur111 on Sunday 28th of December 2014 11:07:12 AM
Old 12-28-2014
Installation JDK in the LXC container - Host behind Proxy

Hello,

The host on which i work is a remote machine behind a proxy.
I have installed the jdk like that and it works well: (I access the remote machine via ssh)

Code:
   http_proxy=http://proxy:3128 && https_proxy=http://proxy:3128
     sudo apt-get install openjdk-7-jre-headless
     :~# java
            Usage: java [-options] class [args...]
           (to execute a class)
            or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
           where options include:
           -d32      use a 32-bit data model if available
           -d64      use a 64-bit data model if available
           -server      to select the "server" VM

I'd like to install the JDK inside the container. I proceeded as follows:

Code:
ubuntu@worker:~$ http_proxy=http://proxy:3128 &&              
      https_proxy=http://proxy:3128
      ubuntu@worker:~$ sudo apt-get install openjdk-7-jre-headless
                       Reading package lists... Done
                       Building dependency tree      
                       Reading state information... Done
                       The following extra packages will be installed:
                       ca-certificates ca-certificates-java fontconfig-config fonts-
                       dejavu-core
                       java-common libasyncns0 libavahi-client3 libavahi-common-data
                       libavahi-common3 libcups2 libflac8 libfontconfig1 libfreetype6 
                       libglib2.0-0
                       libglib2.0-data libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 
                       libnss3
                       libnss3-nssdb libogg0 libpcsclite1 libpulse0 libsndfile1  
                       libvorbis0a
                       libvorbisenc2 libxau6 libxcb1 libxdmcp6 libxml2 openssl sgml-base
                       shared-mime-info tzdata-java xml-core
                       ............................
                      Err Index of /ubuntu trusty/main java-common all 
                      0.51
                      Cannot initiate the connection to archive.ubuntu.com:80  
                     (2001:67c:13......). - connect (101: Network is unreachable)  
                      [IP: 2001:67c:13....... 80]

Have you an idea please ?

Thanks a lot.
Best Regards.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

JDK Installation

I'm trying to install JDK (Java Development tools) and i get this: WARNING: The <SUNWj6dev> package "JDK 6.0 Dev. Tools (1.6.0)" is a prerequisite package and should be installed. WARNING: The <SUNWj6rtx> package "JDK 6.0 64-bit Runtime Env. (1.6.0)" is a prerequisite package and should be... (0 Replies)
Discussion started by: idan_cn
0 Replies

2. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

3. Red Hat

jdk installation question

hi, i just "yum install jdk*.i386" and installation was complete without any error. however, i tried to #javac helloworld " and javac is not found in the $PATH. i tried to locate it and didn't find it. would anyone shed some light on where the "yum install" installed my jdk to? where can i find... (0 Replies)
Discussion started by: k2k
0 Replies

4. Solaris

Solaris SPARC 10 64Bit -JDK Installation 1.6.05

In Sun Solaris 10, not able to create the key. JDK 1.6 Installed & PATH & JAVA_HOME both are referred to jdk 1.6. It is showing the belwo error Error: wrap() failed java.security.InvalidKeyException: wrap() failed at sun.security.pkcs11.P11RSACipher.engineWrap(P11RSACipher.java:395) at... (10 Replies)
Discussion started by: saktiviji
10 Replies

5. Solaris

jdk installation - update environment?

Hi, i have installed jdk 1.6 successfully but when i issue command java -version it shows me old version how to handle it. kindly help (4 Replies)
Discussion started by: malikshahid85
4 Replies

6. Red Hat

Apache,php,mysql, and jdk 1.6 update 20 installation on RHEL 5.5

I want to install Apache (version 2.2.X), php (version 5.3.X),mysql (version 5.5.X) on RHEL 5.5. Guide re. site address for download all rpm. X = latest version. Thanks in advance. (1 Reply)
Discussion started by: vasdaax
1 Replies

7. Ubuntu

Ping a container LXC

Hello, Please, I try to do ping 10.0.3.8 (ip of LXC container) from VMB but it didn't work ! Have you an idea please ? Here is an explanation of what I want do: (red arrow) http://imgur.com/2IzJvXO imgur: the simple image sharer Thanks a lot. Best Regards. (0 Replies)
Discussion started by: chercheur111
0 Replies

8. IP Networking

SSH to remote host using SOCK5 proxy

I am trying to connect to a remote host C from my node host A. HostA <====> HostB <====> HostC A tunnel has already been formed using SOCKS5 between HostA and HostC. Now I want to SSH from A to C. The SOCKS5 IP us 142.133.132.161 and port 1082. The command I am using is : ssh -L... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

9. IP Networking

iptables setup for two different lxc containers inside the same host

Hello out there. A month ago I started to deal with this problem and until now I couldn't cope with it. The quick story is that I'm trying to setup two different lxc containers inside the same host machine running debian linux. One of the containers is running a VPN server, while the second one is... (0 Replies)
Discussion started by: netpumber
0 Replies

10. Solaris

JDK installation. An awesome challenge.

Hello guys, I've tried to install more recent version of JDK (1.8.0_161), SVR4 package. Everything went succesfully except one thing. The OS persistenly refuses to recognize newest java version. :( There should be 1.8.0_161 instead. I've done everything that is described for SVR4 packages,... (2 Replies)
Discussion started by: wolfgang
2 Replies
APPROX(8)						      System Manager's Manual							 APPROX(8)

NAME
approx - proxy server for Debian archive files SYNOPSIS
approx [OPTION]... DESCRIPTION
approx responds to HTTP requests made by apt-get(8). It maintains a cache of Debian archive files that have been previously downloaded, so that it can respond with a local copy when possible. If a file not in the cache is requested, approx will download it from a remote Debian repository and deliver the contents to the client, simultaneously caching it for future use. Over time, the approx server cache will grow to contain multiple, unneeded versions of Debian packages. The approx-gc(8) program removes these from the cache. OPTIONS
-c file, --config file Specify an additional configuration file. May be used multiple times. USAGE
approx is invoked by inetd(8). EXAMPLES
Suppose that a client machine's /etc/apt/sources.list file contains the following lines: deb http://apt:9999/debian testing main deb http://apt:9999/security testing/updates main deb-src http://apt:9999/debian unstable main In this example, apt is the hostname of the approx server machine on the local network. Each distribution, such as "debian" or "security", is mapped to a remote repository in the approx server's configuration file. For example, the approx.conf file on the approx server might contain the lines debian http://ftp.debian.org/debian security http://security.debian.org The mapping scheme is very simple. If the approx.conf file contains the line repository http://remote-host/initial/path then any request to the approx server of the form http://approx-server/repository/rest/of/URL is rewritten to http://remote-host/initial/path/rest/of/URL when there is a "cache miss", and that file is cached as /var/cache/approx/repository/rest/of/URL (Note that the repository name on the left-hand side is not included in the rewritten URL unless it is explicitly mentioned in the right- hand side's initial path.) FILES
/etc/approx/approx.conf Configuration file for approx and related programs. /var/cache/approx Default cache directory for archive files. SEE ALSO
approx.conf(5), inetd(8), approx-import(8), approx-gc(8), apt-get(8), sources.list(5) AUTHOR
Eric Cooper <ecc@cmu.edu> May 2011 APPROX(8)
All times are GMT -4. The time now is 04:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy