By AndyKw
I’m trying to migrate all the distro and python packages I have on an AWS ubuntu server , to my newly created DO server
Please find below my DO and AWS Distro’s release
I listed all the distro and python packages I have from my AWS server, with the following commands
sudo dpkg --get-selections > dpkglist.txt
pip freeze > freeze.lst
Then on my DO server, I did the following
dpkg --set-selections < dpkglist.txt
pip install -U -r freeze.lst #to restore the python packages
pip3 install -U -r freeze.lst #to restore the python packages
Yet, there were many errors during this reinstall.
I had to uninstall one package ppp for the dpkg to have everything working properly for the dependances.
For pip , I had to text edit the freeze.lst , manually removing some of the packages to have everything sorted.
The experience was messy, confusing and definitely not clean, IMO.
Questions are the following:
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You’re definitely on the right track, but the errors are most likely because you’re attempting to upgrade from 14.04 to 16.04 at the same time you’re migrating over from AWS to DO. And you’re attempting to do so by installing the same exact packages as you had on 14.04.
Ubuntu made a lot of changes between 14.04 and 16.04. Most of the packages have been upgraded, while some are simply no longer available. For instance, Ubuntu made the big switch from upstart to systemd, which is a huge change in and of itself.
If your source machine is 14.04, you’re going to have an easier time migrating to a Droplet running 14.04. You shouldn’t get any errors that way. You could then upgrade that Droplet to 16.04 at your leisure, or keep it on 14.04 until you’re ready to make the move to a clean 16.04 install.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.