I'm running Debian not Ubuntu, but the absolute minimum they owe their users is an automatic upgrade path.
I'm running Debian not Ubuntu, but the absolute minimum they owe their users is an automatic upgrade path.
Do you have a support contract? If not, ask yourself about the complexity of what you feel entitled to — especially given that a system which will “take a month to get everything set up again” is far from a clean upgrade — and ask how much effort you've contributed to the project helping make that feature exist.
I even used to have a [minor] package I maintained there (it's gone now).
The feature almost exists, Debian can run both 32 and 64 bit versions of a package side-by-side.
How exactly do you purpose they perform an "automatic upgrade" on their user's hardware? You don't just patch or upgrade to go from 32 bit to 64 bit. You can't hotfix hardware like that.
Personally I would go for unpacking the 64bit userland+packages in a subdirectory, boot once into a rescue userland which just switches the directories around, then boot normally.
GRUB already has support for "boot once in this alternate configuration", so it's all there.
But shifting the packages from 32 bit to 64 bit is not supported automatically.
And that despite the ability to install both 32 and 64 bit packages side by side.
It's like they did all the hard part for the upgrade, and just didn't finish that last little bit (find 64 bit versions of existing 32 bit packages, and install them, then remove the 32 bit).
1. dpkg --get-selections 2. Backup global data (databases and such) 3. Backup global config (/etc, /use/local/etc) 4. Backup home directories 5. Reinstall and apply all to the new system.
This is a weekend job at most if it ends up being complicated.
I guess I should have clarified that I already have a 64 bit CPU, and 64 bit kernel, but my initial installation is 20 or more years old and has been updated since then, from that same initial installation. (It's even the same initial ext3 filesystem, since I used md raid to shift the installation to new hard disks over time, it used to be ext2, but that upgrade was automatic.)
Debian has the ability to have both 32 and 64 bit packages installed side-by-side.
I.e. they did the hard part. I just need some way to automatically shift each package to its 64 bit equivalent, then remove the 32 bit one, and eventually the libraries too once nothing depends on them.
https://wiki.debian.org/CrossGrading
as well as several articles linked and scripts available.
In dpkg, add the amd64 architecture. Install and boot a 64-bit kernel. Then carefully replace 32-bit packages with 64-bit packages. You'll hit a few bumps along the way, but it's possible to do without reinstalling from scratch.
That said, it'd likely be easier to install 64-bit, diff and copy across configuration files, and port over your installed package list (dpkg --get-selections) with a bit of care for packages whose names differ between 32-bit and 64-bit. I've done something similar when setting up new systems, and it's about a half-day's work, not a month.
With my latest PC I went with a clean install though.
It would still require setting everything up again, but at least once you've done that once you can put the settings in a git repository and be done with it forevermore. Reinstalling is a trivial operation.