ubuntu openvz - can't install JAVA

offerlam

Renowned Member
Dec 30, 2012
218
0
81
Denmark
Just installed proxmomx 3.1 on my dell R300

I have had some problmes with out of memory issues on ubuntu servers running 64 bit 12.04 LTS so i though i would give openvz a try...

researching this i came to understand openvz i much more than "another way to make VMs"...

Well i downloaded the openvx ubuntu i386 image .. by the way why are there no amd64?.. anyways.. i got it installed with default settings and wanted to install java because i'm initially going to run openfire on this vm...

so i started by adding the repository by using add-apt-repository which didn't work. It did not work on the ubuntu vm i have allready so this was not new.. The fix for this is to install python software.. but thats when i hit my wall.. that didn't work either..
apt-get install python-software-properties
i figured maybe not the same repos were present as in a normal ubuntu and they were not. So i added the repos from a ubuntu vm and rebooted but still no luck...

what am i doing wrong?

THANKS

Casper
 
could someone at least tell me if im even suppose to be able to use apt-get in a openvz ubuntu template?
 
could someone at least tell me if im even suppose to be able to use apt-get in a openvz ubuntu template?

your post is a bit confused, therefore no-one answered so far.

do not mix CT and VM. we use CT for containers and VM for KVM virtual machines.

if you want amd64 templates, just download it manually to your storage. search this forum for howto.

apt can be used in containers, but you should tell in details what is not working. post the full command and the error log.
 
Hi sorry if i wasn't clear..

Im trying to install JAVA.. the guide I have suggest to run these commands in order to do so

Code:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
$ sudo update-java-alternatives -s java-7-oracle

The problem is in ubuntu that add-apt-repository does't work out of the box. I need to install python software properties for it to work..

So I run this command and i get:
Code:
root@test:~# apt-get install python-software-properties
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python-software-properties

I than compared the templates repo source list with a standard ubuntu servers repo source list and saw they were not the same. I add the repos in the "original" ubuntu server to the openvz ubuntu server but that didn't help..

what am i doing wrong here?

Hope this was more clear :)

THANKS

Casper
 
I just tested this here.

I am using this template http://download.openvz.org/template/precreated/ubuntu-12.04-x86_64.tar.gz

And I just checked this guide:
https://launchpad.net/~webupd8team/+archive/java

and added the following to my /etc/apt/sources.list:
Code:
[COLOR=#333333][FONT=Ubuntu Mono]
deb [/FONT][/COLOR][URL]http://ppa.launchpad.net/webupd8team/java/ubuntu[/URL] [COLOR=#333333][FONT=Ubuntu Mono]precise[/FONT][/COLOR][COLOR=#333333][FONT=Ubuntu Mono] main [/FONT][/COLOR]

then I imported the key and installed packages from there. no issues.

Please assign at least two cpu´s to the container (if you run java).
 
am I a complete moron for not being able to get this to work?!?!?!?!?

first i added the ppa to my source list:

Code:
root@64BitTest:~# vi /etc/apt/sources.list                                      deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu precise partner
deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main

than you say adding the key.. judging from the site that is something that happens when i add the repo.. but that didn't work

Code:
root@64BitTest:~# add-apt-repository ppa:webupd8team/java
-bash: add-apt-repository: command not found

Than i figured maybe now install of the pysthon software properties worked so i went and
Code:
root@64BitTest:~# apt-get install python-software-properties
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python-software-properties

How do i install the key manually.. it seem the sites doesn't describe that..

THANKS

Casper
 
Last edited:
there are plenty of ubuntu howto around the web, I am sure you will find the right one - just google!
 
just to add this pice of information

It seems with the ubuntu openVZ tempalte 64 bit and maybe all of them that i have to run apt-get update before i can install any software using apt-get install...

Its like the repos isn't loaded or something before you force the vm to register them or something.. i don't know..

just wanted to let you all know..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!