I need to install openssh on my Ubuntu 32bit VM. However I cannot straight do
apt-get install openssh-server as it fails in resolving many required dependencies. Thanks to my companies super creepy proxy settings. Now I have all Windows machine here and one 64 bit Ubuntu with openssh installed. So I cannot copy paste .deb from this machine to my Ubuntu VM and install as my deb packages will have different architecture (32 bit vs 64 bit).
So I went on downloading 32 bit packages from this site (Thank god, my company's IS team has not discovered this website yet!!!). However I dont know what all packages will be required by openssh as its dependencies. I checked my Ubuntu 64 bit machine. By sorting
var\cache\apt\archive by date, I realised that on the day when I installed openssh on that machine, following packages were installed:
So here is what I did:
- I downloaded debs of 32 bit versions of the above from the site and ran
sudo dpkg -i *.deb. It said it requires
- I downloaded
ssh-import-idand again run above command again. It said "
ssh-import-idis not configured yet as it requires
- I downloaded that and ran the command. It said "
python-requestsis not configured yet as it requires
- So I downloaded
python-urllib3and ran the command. This time it said "
python-urllib3 (<< 1.9.1-3)and is installed"
I guess I installed wrong versions and also at each step when the installation failed, the some of the packages were installed, some were not and those which were installed are left ill-configured. So each time I ran
sudo dpkg -i, I should have uninstalled the packages I installed ealier.
I feel this is a lot of pain. Also it is very difficult to know and install correct versions of all dependencies. Is there any way by which I can:
- Capture list of currently installed packages on my VM,
- Upload it on some site,
- Specify what I want to install next and
- in return that website would tell me what all
.debpackages I will need
I would have downloaded all those manually from above site and then installed them.
Is there any such way? What other options I am left with?