I solved it by installing aptitude, running ‘aptitude install yunohost’, then running the install script again.