migration from 32-bit to 64-bit

Petter Adsen petter at synth.no
Thu Jul 9 09:02:04 UTC 2015


On Thu, 9 Jul 2015 10:18:58 +0200
Liam Proven <lproven at gmail.com> wrote:

> On 9 July 2015 at 09:01, Jasleen Kaur <jasleen.7956 at gmail.com> wrote:
> > I am using Ubuntu 14.04   32-bit. I hav just installed Android
> > studio and all its packages. But now I read about it, it demand
> > 64-bit Ubuntu 14.04. I have lots of software installed on it, which
> > I don't want to lose. How can I migrate to Ubuntu 14.04  64-bit ?
> 
> 
> If /home is not already on its own partition, move it to one.
> 
> Make a new partition for a new / filesystem.
> 
> Install a new 64-bit copy of 14.04 into the new / partition, pointing
> it at the same /home partition as the 32-bit installation.

If it is installed packages and so on you don't want to lose, I suggest
you take a look at apt-clone and dpkg-repack.

The first will take a snapshot of what packages are installed,
repositories added, keys, etc, and make an archive of that information
that you can later restore on another installation. That will give you
the exact same package state, *except* for any configuration you might
have changed under /etc.

apt-clone optionally calls dpkg-repack to include packages that were
not installed from the repos (if you have any), making packages from the
installed files. That would of course give you the 32-bit binaries, so
it might be better to just make a note of those (apt-clone will list
all of them) and install 64-bit versions manually.

You will also need to move across any changes you have made under /etc
and so on. User configuration and data lives under /home, so do as Liam
suggests and just move that to a separate partition or LVM volume.

There might also be some stuff under /var you don't want to lose, like
VM images, and mail if you are running a mail server. Take a *full*
backup of your root partition before reinstalling.

If you also have built things manually from source, then the best thing
is to rebuild those to get 64-bit binaries.

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150709/2aa68f53/attachment.sig>


More information about the ubuntu-users mailing list