You need the ubports tweak tool to put the file system into read write mode. Then you have to edit the file /usr/lib/python3/dist-packages/libertine/ChrootContainer.py (best done with vi) and add "self.run_in_container('apt remove -y makedev') " to line 86 of the file.
Before you do the following make sure all libertine containers are deletded.
The way to do the edit is like this:
download the ut tweak tool
open the app and select system
change the file system to read/write this time only
Then type vi +86 /usr/lib/python3/dist