How to fix the UI not starting after full system upgrade in Lomiri Alpha3 for Pinephone

Difficulty: ★★★☆☆

As everyone might have noticed, there hasn’t been a new alpha of Lomiri in a while.

If you do a full system upgrade with:

sudo pacman -Syu

lightdm will refuse to start.

The problem

The underling issue is not with lightdm, but with the mir display server package.

mir requires protobuf, in particular libprotobuf-lite.so.23 but upgrading with pacman bumps protobuf to a newer version that only has libprotobuf-lite.so.27
thus causing mir to fail and lightdm to not start.

The solution

The solution to this (as i’ve found, there might other ways to fix this) is to rebuild mir from source with the new protobuf-3.16.0-1 library and here’s what you need to do:

On a x86_64 Manjaro machine:

  1. Install the manjaro dev tools

    sudo pacman -S manjaro-arm-tools manjaro-tools-base
    
  2. clone this repo

    git clone https://gitlab.manjaro.org/manjaro-arm/packages/community/lomiri-dev/mir.git
    
  3. Build the package

    sudo buildarmpkg -p <PATH TO mir package> -b unstable -k
    
  4. Copy the package to the phone

    scp <PATH TO mir>/mir-1.8.1-1-aarch64.pkg.tar.zst manjaro@<PHONE IP>:/
    

Or, Alternatively:

  1. grab the file from here

Then on the phone:

  1. Install the package with pacman

    sudo pacman -U  mir-1.8.1-1-aarch64.pkg.tar.zst
    
  2. reboot the phone or restart lightdm

    sudo systemctl restart ligthdm
    

:+1:

1 Like

Hi @boogie666,

Thank you for this no doubt valuable guide and information. Please be so kind to edit your post according to the guidelines in Tutorial Content Creation Guide

1 Like