apt-get update

apt-get upgrade

reboot

apt install curl

curl https://install.yunohost.org | bash
service postgresql status
yunohost tools postinstall