As soon as I execute a sudo dnf update to my template VM, it takes a little less than a second for it to go
"Failed to synchronize cache for repo 'updates'"
"Error: Failed to synchronize cache for repo 'updates'"
dom0 updates isn't suffering from this which is why I don't really get what the problem is. At first I thought it's the custom resolv.conf being used for dnscrypt-proxy but that doesn't seem to be the case after trying to use the dns server of the vpn itself
Web browsing and everything else is working as intended through the VPN qube and only TemplatVM updates are failing. I don't think there is a problem with what I set on /etc/qubes-rpc/policy/qubes-UpdatesProxy
But I don't really face this problem when the target is set to the net VM. That however is no good since I'm looking to utilize the VPN for Template updating.
Is TemplateVM updating dependent on whether or not net VM is capable of connecting to the internet and domain name resolutions?
I'm using a fedora minimal and I don't see any sort of package requirement for a qube to install to provide TemplateVM updates as I read through the Fedora Minimal documentation. Only thing that has a requirement from the looks of it is a qube for dom0 updates.
Thanks for the suggestion about updateProxy service. I suppose I should set it to provide qubes-yum-proxy, is that right?
@Chris Thank you for telling me that as I too am using fedora-30, specifically fedora-30-minimal Templates
I am trying to do a setup where a qube is dedicated for the purpose of updating, something similar to yours I believe.
I'll try to work on this tomorrow and report results back to this topic.
Big update: I was able to solve the problem
What I essentially did:
1. Ensure to run the Update Qube first
2. Confirm and ensure that the qubes-updates-proxy is already running after the qube is started. qubes-updates-proxy was listed and set as checked in the services tab of Qubes Settings GUI before starting the update qube.
checking was done through the `systemctl status qubes-updates-proxy` command.
3. Ensure that qubes.UpdatesProxy policy file is configured correctly before starting the templateVM
4. Ensure that DNS queries are resolving in the update qube
5. Start the templateVM and try to do a dnf update
One big thing to note here is that I encountered the problem after step 4 and was able to solve it by ensuring that my update qube is able to properly resolve DNS queries but I have to say that what's unique in my situation is that I use DNSCrypt for resolving DNS queries.
So basically, the problem was solved after I ran DNSCrypt on the update qube.
Admittedly that was kinda dumb on my part to not realize that the f30 template definitely needs to have DNS resolutions to do updating along with that fact that I have already blocked all plaintext DNS from going out.
However, I can't quite remember whether or not I had DNSCrypt running on the update qube last time I tested it so there's a possibility that strictly doing the first 2 steps that I did contributed greatly in solving the problem.
For the purpose of troubleshooting this problem however, the qube that I used to update and the qube that I used for VPN is one and the same. I guess I'll try to use separate ones next week to see how it goes (I have none to very minimal online activity throughout the weekend).
@Chris: Maybe you could try what I did and see how it goes?
If you still got the problem after switching to debian-10 maybe do some network diagnosis in your update vm? I can lend a helping hand with that if you need it