Debian bootstrap installing
Posted: Thu Mar 06, 2025 6:29 am
Hi guys.
So today I tried the debootstrap utility to bootstrap a fresh Debian system install from scratch. I've been aware of this for a number of years but never actually tried it. The state of PPC declining in recent years didn't encourage me to try, but with wanting to setup up Debian on my X1000, I thought I could see how far I could get. Just for fun I tried this from Ubuntu MATE 2017 as I had already booted it with the latest 6.14 RC5 kernel in testing.
I don't know what other methods people use to install. I usually use an installer CD modified for the purpose booted with an X1000 kernel. I tend to use a full CD over a net installer, both for having all files already, as well as net installing easily becoming obsolete.
I followed this guide for installing Debian PPC 64:
https://wiki.debian.org/PPC64
First I needed the debian-ports-archive-keyring package installed locally. But the one in MATE packages is obsolete. The solution is easy and just involves downloading latest from here and installing which works fine on the older MATE:
https://packages.debian.org/sid/debian- ... ve-keyring
So I used GParted to create anew partition. Because of the quirks I had to make sure it was aligned to cylinder otherwise there are errors. The new partition was added to an RDB disk.
I used the MATE menu to easily mount the new volume. GParted or Disks could also have been used. But I found the mount options needed to be changed or the install fails. so needed to remount:
I then start the operation by issuing this command on the terminal:
The command then was able to download, validate and install new packages. Until I hit this. An error. From the log:
I wasn't sure but I suspected this could be because I am installing a 64 bit OS from a 32 bit user space. From dmesg both mktemp and apt had crashed. In any case I tried the easiest solution. Running debotstrap command again. It worked! 
Now the new Debian install is ready to boot. Though not mentioned in the guide I've read that debootstrap needs to run on the new install with a second stage option. Well my new Debian is ready to test, so I'll give it a boot, and I'll be back later with my part 2. -D
So today I tried the debootstrap utility to bootstrap a fresh Debian system install from scratch. I've been aware of this for a number of years but never actually tried it. The state of PPC declining in recent years didn't encourage me to try, but with wanting to setup up Debian on my X1000, I thought I could see how far I could get. Just for fun I tried this from Ubuntu MATE 2017 as I had already booted it with the latest 6.14 RC5 kernel in testing.

I don't know what other methods people use to install. I usually use an installer CD modified for the purpose booted with an X1000 kernel. I tend to use a full CD over a net installer, both for having all files already, as well as net installing easily becoming obsolete.
I followed this guide for installing Debian PPC 64:
https://wiki.debian.org/PPC64
First I needed the debian-ports-archive-keyring package installed locally. But the one in MATE packages is obsolete. The solution is easy and just involves downloading latest from here and installing which works fine on the older MATE:
https://packages.debian.org/sid/debian- ... ve-keyring
So I used GParted to create anew partition. Because of the quirks I had to make sure it was aligned to cylinder otherwise there are errors. The new partition was added to an RDB disk.
I used the MATE menu to easily mount the new volume. GParted or Disks could also have been used. But I found the mount options needed to be changed or the install fails. so needed to remount:
Code: Select all
sudo mount -i -o remount,exec,dev /media/amigaone/Debian/
Code: Select all
sudo debootstrap --arch=ppc64 --variant=buildd --keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg sid /media/amigaone/Debian/ https://deb.debian.org/debian-ports
Code: Select all
Setting up base-passwd (3.6.6) ...
Illegal instruction (core dumped)
dpkg: error processing package base-passwd (--install):
installed base-passwd package post-installation script subprocess returned error exit status 132
Errors were encountered while processing:
base-passwd

Now the new Debian install is ready to boot. Though not mentioned in the guide I've read that debootstrap needs to run on the new install with a second stage option. Well my new Debian is ready to test, so I'll give it a boot, and I'll be back later with my part 2. -D