1 Install system for RPi 3B+

Original link:current page


how to install Ubuntu for Raspberry Pi 3B+

These days I try to install Ubuntu for the RPi 3B+, but failed.

First, I got information from ubuntu wiki and download Official images, after installing the image to sdcard and insert to the RPi, the RPi can't boot up when power on.
The Steps is:

1. download the img.xz file
2. unxz img.xz

unxz ubuntu.img.xz

3. install to sdcard

sudo ddrescue -D -d --force ubuntu.img /dev/mmcblk0

4. chang bootloader

chang header of the config.txt at first partition of sdcard as follows(change kernel line, add inirtamfs line and comment out devicetreeaddress line):

initramfs initrd.img followkernel

5. update bootloader

get bootloader file

wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20180417-1_armhf.deb


dpkg-deb -x raspberrypi-bootloader_1.20180417-1_armhf.deb /tmp/pi-bootloader

copy to first partition of sdcard

sudo mount /dev/XXX1 /mnt
sudo cp /tmp/pi-bootloader/boot/* /mnt

Then I place the sdcard in my pi and turn on, and good, the system is failed when start network service, the log as follows:

[  OK  ] Started Load/Save RF Kill Swich Status.
[  OK  ] Reached target Bluetooth
[FAILED] Failed to start Wait for Network to be Configured.
See 'systemctl status systemd-networkd-wait-online.service' for details.
         Starting Initial cloud-init job (metadata service crawler)...
[FAILED] Failed to start Network Name Resolution.
See 'systemctl status systemd-resolved.service' for details.
[  OK  ] Stopped Network Name Resolution.
         Starting Network Name Resolution...
[  OK  ] Stopped Network Name Resolution.
         Starting Network Service...

then it loops with Start network and Stop network.
I try to fix this by changing the /etc/network/interface file, setting the eth0 to dhcp or static, but they don't work.
Not so much information on the internet about this and I don't know what to do, so I have to give up.

I had found another system for RPi – Ubuntu Mate.
Download the Ubuntu MATE image and install into SD Card.
First I install image on Windows, just like the Ubuntu MATE offically recommend:

when all finished, I put the SD Card in Pi and power on, monitor only show a color background, and nothing happened.
then I update the boot files, same as the previous chapter, and now the monitor show nothing, but the red and yellow led is both on.
I'm confused, there must be something wrong, but when, where, I am not aware.

  • the SD Card had been formatted before installing image
  • the Disk Imager showed Write OK

Everything looks good, but actually it doesn't.
I decide try again, this time, on Ubuntu, the command as follows:

install tools

sudo apt-get install gddrescue xz-utils


unxz ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img.xz


sudo ddrescue -D --force ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img /dev/sdx

after complition, put the SD Card into Pi again – it still not started.
then I update the boot file again, it doesn't make difference.

I'm more confused.
I decide to try again, this time, still on Ubuntu, but before install image, delete all the partitions on the SD Card. – Deletion of partitions is very dangerous, make sure the /dev/sdx is the SD Card

On Ubuntu, use tool fdisk

$ sudo fdisk /dev/sdx

Show partitions

$ p

Delete the partitions

$ d

Then input Enter, for the confirm line, input “1”, to delete the first partition
Next input another “d” to delete another partition

$ d

Save and quit

$ w

OK, now try again to install the image, and put the SD Card into pi, it didn't work.
And update the boot files, and try again…
After power on, some text like “resize file system” appeared on the monitor, but disappered soon, and then the familiar Ubuntu installation interface appeared on the monitor, I so glad.
After some simple configuration, the Ubuntu MATE was installed automatically.

Now you can do anything with the RPi.

After finishing the Ubuntu Mate 16.04, I realized that the network don't work, at first I thought it is about the configuration of network, I try to configure the network by editing the /etc/network/interface, but it still not work, when enter command

$ ifconfig

only devide lo show

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
      inet  netmask
      inet6 ::1  prefixlen 128  scopeid 0x10<host>
      loop  txqueuelen 1000  (Local Loopback)
      RX packets 223  bytes 21595 (21.0 KiB)
      RX errors 0  dropped 0  overruns 0  frame 0
      TX packets 223  bytes 21595 (21.0 KiB)
      TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

it seems the wlan or eth device is not valid.
I try to install the driver, but failed.
At last, I decided to install Raspbian instead of Ubuntu series system now, and swich back to Ubuntu something when new versions are released.

By the way, I find a way to resolve the Ubuntu Mate 16.04 boot failure by using a Raspberry Pi 3B1). Steps as follows:

  1. install the Ubuntu Mate 16.04 just like before, don't change anything
  2. put the SD Card into Raspberry Pi 3B, instead of the Raspberry Pi 3B+(which can't boot up), and finishing the Ubuntu Mate installation
  3. power off the Raspberry Pi 3B, take out the SD Card and put it into Raspberry Pi 3B+

You will see the system boot up normally.

It is so easy to install the Raspbian, what you need is to follow the offical website steps.
In short

  1. download img
  2. install the img like before
  3. put SD Card into pi
  4. power on
  5. configure


  • Last modified: 2018/12/22 15:03