Debian-11 template fails to upgrade

upgrade.log (3.6 KB)
When I try to upgrade the debian-11 template, or another template derived from it, I get an error message, which includes the following. Full error in attached file.
Does anyone have a solution? This has been failing for a couple of days.
Error on updating debian-11: Command ‘[‘sudo’, ‘qubesctl’, ‘–skip-dom0’, ‘–targets=debian-11’, ‘–show-output’, ‘state.sls’, ‘update.qubes-vm’]’ returned non-zero exit status 20.
Failed to return clean data

1 Like

I have the same issue on debian and whonix templates. Fedora seems to update fine.

I resolved the same issue a couple of days ago,

apt-get update && apt-get upgrade

after that the update is working fine.
did you check if it’s enough place in your HD

See here:

1 Like

Generally speaking this specific error indicates that the update process
has produced some output that salt cannot understand. (Salt is used by
the GUI tool in 4.1)

As has been suggested, you can often “clear” the error by manually
updating the template - open a terminal in the template, get root, and
use the relevant update command.
For debian-11, you want sudo apt update; sudo apt upgrade
If the update is successful, afterwards you will be able to use the GUI
tool again.

There is a separate issue affecting use of salt generally if you have
changed the management disposable to use one of the recent templates.
Again, you have been pointed at a relevant thread.

I never presume to speak for the Qubes team.
When I comment in the Forum or in the mailing lists I speak for myself.

Changing template of default-mgmt-dvm from fedora-38 to debian-11 solved the issue for me.

Manually upgrading fixes the problem, until the next upgrade.
Is there a way to fix the problem on a more permanent basis.
Currently, I get a warning that an upgrade is available, which is good.
But I have to upgrade manually, which is workable, but not great.

1 Like

And the upgrades started working again.
No need to file a bug report now.
Also, I have moved to Debian-12, which seems to upgrade fine.

Bug report was already filed and has already been fixed (see above).

1 Like