Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am migrating my system to 64 bit and the debian wiki suggests to first debootstrap a 64bit into a directory, then collect all 64bit packages and install them but this doesn't work.

To install 64bit of a package they suggest to use package-name:amd64

"Upgrade your 32-bit system closest to the mini system In order to have your 32-bit system as much as compatible (from the configuration files POV) to your mini 64-bit system, upgrade all your packages you have installed in the 64-bit mini root."

but for instance apt-get install zlib1g:amd64 gives

E: Unable to locate package zlib1g

None of the package:arch works at all.

How do I install the amd64 port of a package?

Edit: It seems is outdated and the procedure has changed.

share|improve this question
You can't use 64 bit executables on a 32 bit kernel. You'd have to boot from a 64 bit kernel to have a chance of it working. I don't know if you can install a 64 bit kernel deb from a 32 bit kernel. Otherwise you'd have to just put 64 bit kernel and initrd with all required modules in a place where GRUB can get to them, and then start the 64 bit kernel manually from the command line. But other tricks are needed as well, because the 64 bit kernel won't help locate 64 bit packages. – kasperd May 21 '14 at 17:53
What guide are you trying to follow Jherek? What release are you currently running? Are you on wheezy? Or testing/unstable? Did you read the first bolded statement in the guide? These instructions do not work on current Debian stable with Multiarch. Stable = Wheezy. – Zoredache May 22 '14 at 0:47
@kasperd, installing a 64 bit kernel on a 32 bit system via multi-arch is actually pretty easy, and is supported. Upgrading the rest of the system to 64 bit is far more difficult. – Zoredache May 22 '14 at 0:49
BTW, I strongly suggest that you give up on this, and consider backing up your data, and re-installing with 64 bit media. It will almost certainly be easier to simply re-install. – Zoredache May 22 '14 at 0:50
@kasperd: I installed 64bit kernel, it's easy, you just need to install the apt-package and the deb for the kernel and that was it. It even boots and the kernel is backward compatible, so it can run most 32bit programs. But in order to keep the system consistency I should update the other packages too. – fdafgfdgfagfdagfdagfdagfdagfda May 22 '14 at 7:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.