Upgrading ubuntu 12.04 32 bit to 64 bit [duplicate]
I have recently installed ubuntu 12.04 LTS i686.I want upgrade it to 64 bit.How can I do it via terminal?
Let's solve the problem. :-)
Before doing anything check the system requirements for Ubuntu x64. You can't upgrade directly to 64 bit from 32.
The safest and cleanest procedure is to do a backup of your personal data and, after that, a new installation of Ubuntu over the existing one. It will not harm or wear out your computer but be aware that the 64 bit versions are in some cases less stable and have different packages and (obviously) different bugs.
If you want to run a server there is Ubuntu Server, which is done specifically for that.
Follow my instructions to install Ubuntu 64 bit without losing your current software configuration:
- In a terminal execute
sudo dpkg --get-selections > ~/softwarelist
. - Install the x64 Ubuntu over the existing one. If asked to preserve Home, say yes.
- Execute
sudo dpkg --set-selections < ~/softwarelist
. - Execute
sudo apt-get -f install
. You will have some errors, but all should be fine. - Reboot.
This procedure is valid for the 12.04, it can change with older/newer versions.
Please, press the UP arrow if I'm usefull and mark as best answer if you solve. Have a nice experience and comment down here for any issue, you'll be helped if possible.