-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update of newer debian-based template fails because of dsa4371 check in qube-manager #6980
Comments
The 4371 check was removed last year, wasn't it? It doesn't seem to be
present in my templates.
Where did you get the Kali template you are using?
|
the check lives in dom0 (qubes-manager pkg) and is pushed to the VMs via qubes.VMshell service as needed.
the root cause here is clearly kali doing something silly that breaks a lot of things, but "i cant update my template through rightclick in qubes-manager" is one of the more annoying impacts. |
not sure about what "needs diagnosis" here tbh. what happens is ... the code that runs the dsa4371 check is this: the way it runs the check is L 611-616.
the last line of that is stderr, the rest is stdout. qubes-manager then compares the stdout to the expected results in lines 617 and 622, which fails because of that silly kali banner. (it is a really, really bad plan to have any kind of banners spew on non-interactive shells) because there is no match, it goes into the else branch in L 624, which raises an error that doesnt really point at the issue because it prints stderr (which is as expected), even though it failed because of stdout contents. the banner also points out how to disable it (once you get to see it), thats the workaround mentioned in the initial report. i stand by the suggestion to just remove the dsa4371 workaround entirely on 4.1 at this point though. i also just had a short talk with @fepitre about this on irc and suggested he just touches that .hushlogin file on the next kali build. |
and what i mean by the dsa4371 code in qubes-manager being fragile ... if i replace the contents of /etc/qubes-rpc/qubes.VMShell inside a VM by ...
(this makes the qubes.VMShell service in that VM print a binary 0xe2 on stderr and boo on stdout) if after that, i hit rightclick-update on that VM in qubes-manager ... qubes-manager just crashes. and there is a confusing artifact to this:
(it was printing the crash-backtrace after starting from a terminal when i was debugging the kali issue earlier, and i cant really figure out whats the difference now. it doesnt seem to be ENV related.) |
I should apologise for the fact that I completely missed your clear
statement that this was updating from Qube Manager.
This is a clear error - although there is also #6635 which would resolve
this by not having a completely separate mechanism from Manager.
|
another case: the focal-20210924 template by @unman can not be rightclick-updated because the DSA-4371 check cant figure out the installed apt version (looks like renamed packages). adjusted issue title. i would prefer to keep the "old" update path currently. there recently was a case where the salt update path was broken, and running the "old" update once made the salt updates (via updatetool) work again. unless someone sees a real reason to keep the DSA-4371 check, i will file a PR to remove it in the next days. |
I recently pulled the Kali community template, and it worked fine, but ran into the same issue being discussed here. So right now unable to update the qube due to this issue. |
On Wed, Nov 17, 2021 at 05:26:04PM -0800, David Thole wrote:
I recently pulled the Kali community template, and it worked fine, but ran into the same issue being discussed here. So right now unable to update the qube due to this issue.
You can, of course, open a terminal in the template and update it there.
|
Yeah, I'm aware. We were talking about the template in the irc chat room, and when I mentioned the issue, the link was given with a request to update. I'm aware of how to get around it, but we were primarily testing it in relation to dom0's space. I plan on patching out the check and updating it that way so I'm not running "apt-get update/upgrade" directly within the template. |
Qubes OS release
4.1
Brief summary
updating kali template from qubes manager fails because of dsa4371 check
Steps to reproduce
Expected behavior
working updates
Actual behavior
cryptic error message
root cause
the problem in this case turned out to be the "Message from the Kali developers" that newer kali versions show on each spawned shell. (which is bad in lots of other situations too, like rsync)
workaround
touch /root/.hushlogin
recommended solution
can we please get rid of the dsa4371 check in 4.1?
dsa4371 was 2019-01 and there never were any templates with this issue for 4.1.
and if you build your own lenny template, well, good luck with that on so many levels.
i dont think i have seen any qubes component fail in more different ways over the last years than the dsa4371 check...
The text was updated successfully, but these errors were encountered: