FWIW, in my case, adding
to the app.yml didn’t help. What helped was simply
app.yml
sudo apt update sudo apt upgrade