Solved

Offline Ubuntu Package Installation

Posted on 2013-01-03
5
839 Views
Last Modified: 2013-01-03
I have an Ubuntu server that has firewall ports open for inbound web traffic as well as internal network SSH, but not for outbound server updates/upgrades. Unfortunately, I am unable to get the ports opened I need because of tight security restrictions. I need to install a VM on the machine and obviously cannot just use the sudo apt-get install virtualbox-ose command being that it can't get access out. My question is, if I download the virtualbox package on a secondary machine and transfer via USB drive or SSH, where would I upload it on the offline server in order to have the apt-get command find it and properly install it? Do I need to create a local repository for that to work?
0
Comment
Question by:dale_abrams
5 Comments
 
LVL 1

Expert Comment

by:Shizzo
ID: 38741016
Normally with the linux package there will be a readme file that contains all the information in it to install the package on the machine. Apt-get will not work in this instance. http://www.virtualbox.org/manual/ch02.html#idp5512464
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 38741201
If you can get a package (deb) file you can issue the following command

sudo dpkg -i package.deb

Open in new window


You can get the deb for your version of Ubuntu from the following site
https://www.virtualbox.org/wiki/Linux_Downloads
0
 
LVL 77

Expert Comment

by:arnold
ID: 38741265
Look at ssh tunneling/proxy.

Does this server have access to NFS shares

mkdir -p /mnt/repos
mount -t NFS 192.168.0.2:/location/of/downloads /mnt/repos
You can either point and/or aptitude or dpkg and other means to do it.
0
 
LVL 1

Author Closing Comment

by:dale_abrams
ID: 38741602
Thanks. This was quick and easy and worked perfectly!
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38741622
You are most welcome :)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
awk file 6 77
ignore other .htaccess 2 58
how to print sub line with  sed /awk /perl in bash file 11 48
Moving from Mcrypt to OpenSSL 18 45
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question