whoami
March 15, 2023, 1:32pm
#1
This issue is linked to this 2 year old issue:
When I try to update my debian or whonix templates using either qubes-update-gui or sudo qubesctl --show-output --skip-dom0 --targets=<mytemplate> state.sls update.qubes-vm, I get: “: ERROR (exception list index out of range)”.
I end up having to run the update manually.
This started about a week ago.
Is there a log with more information so I can debug this?
Thanks!
My setup (4.1) is based on minimal Debian 11 templates and apt-cacher for updates.
The graphical Qubes Update cannot update any templates. The log points to the qubes.SaltLinuxVM
Updating deb-11-m-signal
Error on updating deb-11-m-signal: Command '['sudo', 'qubesctl', '--skip-dom0',>
deb-11-m-signal:
/etc/qubes-rpc/qubes.SaltLinuxVM: line 46: salt-ssh: command not found
Open a root terminal and do the manual update: works.
Also the the graphical update via the QUbes Manager: works.
Did you try to update by right clicking on the VM in Qube Manager and choosing “Update qube”?
Checking the /etc/qubes-rpc/
directory, it misses the qubes.SaltLinuxVM
.
I thought this has been fixed
opened 07:18PM - 26 May 21 UTC
closed 01:21AM - 23 Jun 21 UTC
T: bug
C: mgmt
C: Whonix
C: Debian/Ubuntu
r4.0-dom0-stable
r4.0-stretch-stable
r4.0-buster-stable
P: default
r4.1-buster-stable
r4.0-bullseye-stable
r4.1-bullseye-stable
r4.1-fc31-stable
r4.1-dom0-stable
diagnosed
r4.0-fc32-stable
r4.1-fc32-stable
C: updates
r4.0-fc33-stable
r4.1-fc33-stable
r4.1-centos-stream8-cur-test
r4.0-centos-stream8-cur-test
r4.1-fc34-stable
r4.0-fc34-stable
**Qubes OS version**
R4.0 with latest updates applied
**Affected component(s… ) or functionality**
qubes-update-gui
qubesctl
**Brief summary**
`qubes-update-gui` and `qubesctl` fail to update debian-10 and whonix-15 templates, with obscure error.
**How Reproducible**
Always
**To Reproduce**
1. use `qubes-update-gui` to upgrade any debian or whonix template
OR
1. `sudo qubesctl --skip-dom0 --targets=debian-10-test --show-output state.sls update.qubes-vm`
**Expected behavior**
green check mark
**Actual behavior**
red cross
debian-10-test: ERROR (exception list index out of range)
**A workaround**
disp-mgmt console says:
~~~
user@disp-mgmt-debian-10-test:~$ sudo .journalctl -b | grep -i salt
May 26 11:27:07 disp-mgmt-debian-10-test qrexec-agent[504]: executed user:QUBESRPC qubes.SaltLinuxVM dom0 pid 584
May 26 11:27:07 disp-mgmt-debian-10-test sudo[585]: user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/etc/qubes-rpc/qubes.SaltLinuxVM
May 26 11:27:07 disp-mgmt-debian-10-test qubes.SaltLinuxVM-dom0[593]: sed: can't read /usr/lib/python3*/site-packages/salt/utils/jinja.py: No such file or directory
~~~
In disp-mgmt VM's /etc/qubes-rpc/qubes.SaltLinuxVM, there is a sed at the bottom that runs on jinga.py inside site-packages which doesn't exist in debian-10 and whonix-ws-15.
There's a dist-packages/ though, and if I replace "site-packages" by "dist-packages" in the sed, the upgrade seems to work.
Thanks to oush9 on qubes:matrix.org for troubleshooting help.
Why do I miss this salt?
Do I need to install it manually for minimal Debian?