Skip to content
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

Templates fail to update due to buster "oldstable" status #721

Closed
conorsch opened this issue Aug 23, 2021 · 9 comments · Fixed by #722
Closed

Templates fail to update due to buster "oldstable" status #721

conorsch opened this issue Aug 23, 2021 · 9 comments · Fixed by #722
Assignees

Comments

@conorsch
Copy link
Contributor

During a clean install in support of #717, I encountered this failure:

  ----------
            ID: update
      Function: pkg.uptodate
        Result: False
       Comment: E: Repository 'https://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
                E: Repository 'https://deb.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
       Started: 09:47:31.090662
      Duration: 5025.744 ms
       Changes:   
  ----------

That same error will bite us on the updater runs, blocking upgrades until resolved.

There's an option we can use to resolve: apt-get --allow-releaseinfo-change update but we'll need to make sure we can run that prior to any other apt commands.

@conorsch
Copy link
Contributor Author

Working on this since I expect it's an issue in prod already. At a glance, might make sense to resolve issues #572 & #651, as well.

@conorsch conorsch self-assigned this Aug 23, 2021
@eloquence
Copy link
Member

I'm unable to observe any update issues with a running prod system:

updater-seems-fine

@eloquence
Copy link
Member

An sdw-admin --apply run on the same system completed without errors.

@conorsch
Copy link
Contributor Author

@eloquence Well that's rather reassuring. However, I was able to reproduce this problem just now in a dev environment. The significant variable seems to be whether the TemplateVM RPM was freshly installed. Would appreciate if someone would try to repro with the following STR:

  1. Checkout main branch on this repo, switch to dom0
  2. make clone && make clean
  3. sudo dnf remove qubes-template-securedrop-workstation-buster ; necessary because make clean doesn't remove TemplateVM
  4. sudo dnf clean all
  5. make dev

If provisioning completes successfully, great! If you see the error reported above, however, please document here.

@eloquence
Copy link
Member

Sure, I can give that a try... 🕐 🕑 🕒

@eloquence
Copy link
Member

I'm encountering #514 again on a fresh install, will see if rebooting resolves.

@eloquence
Copy link
Member

eloquence commented Aug 23, 2021

After reboot, able to reproduce on fresh install. I also see the error (and an interactive prompt) when manually running apt update in the impacted templates.

@conorsch
Copy link
Contributor Author

Huh, thanks for confirming, @eloquence. So it seems like the strongest correlation is the age of the apt cache: if it's months old (as a fresh TemplateVM RPM would be on first run), then the oldstable prompt raises an error. For machines that have regularly been running the updater, however, that didn't happen. I wonder why that is? Either way, it's definitely a problem for clean installs, so will continue to work on a fix.

@eloquence
Copy link
Member

The good news is that it's fairly easy to work around: after entering 'Y' in response to the confirmation prompt (which appears after running sudo apt update) in the 3 impacted templates (securedrop-workstation-buster, sd-small-buster-template and sd-large-buster-template, I was able to complete the provisioning process, and the updater ran without errors. Of course still important to fix to avoid the need for that manual workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants