4 ms·
Extremely bad advice given on this page. Don"t mess with the machine-id! Rather turn off phased updates. Set this in some of your apt.conf.d: Update-Manag
by rurban 4y ago
Extremely bad advice given on this page. Don"t mess with the machine-id!
Rather turn off phased updates.
Set this in some of your apt.conf.d:
Update-Manager::Always-Include-Phased-Updates;
APT::Get::Always-Include-Phased-Updates;
- PBondurant 4y agoNote that this code actually turns phase-updates ON. To turn them OFF: Update-Manager::Never-Include-Phased-Updates; APT::Get::Never-Include-Phased-Updates: True;
- proactivesvcs 4y agoPerhaps the advice is bad because this doesn't appear to be mentioned in the documentation.
- soneil 4y agoAs I understand it, either 'always' or 'never' actually solve OP's problem. (edit: was both/and - both sounds like a bad idea.) "always include" effectively puts you in phase 0 - if an update is being phased, you're an eager beaver. "never include" effectively puts you in phase 100 - if an update is being phased, you'll wait until the phasing is complete. AIUI OP's problem isn't that he wants these updates on day 0, it's that he wants his environments to be consistent with each other, which either of these options would provide.
- lima 4y agoAdding to that, the machine ID is a global identifier and changing it could lead to all sorts of unpredictable consequences elsewhere.
- deleted 4y ago[deleted]
- pixl97 4y agoHmm, time to fetch some random characters on each boot for this file and see what starts going on.
- hoten 4y agoI think the advice was to set a configuration value for apt that would override the value, not to change the actual machine id.
- wongarsu 4y agoyeah, they are clearly talking about setting the APT::Machine-ID override in /etc/apt/apt.conf.d, not the actual /etc/machine-id
- linsomniac 4y agoAnybody got this to work? I've tried setting the different values from the AskUbuntu page [1]: Update-Manager::Always-Include-Phased-Updates; APT::Get::Always-Include-Phased-Updates: True; In a file /etc/apt/apt.conf.d/99phased-updates. I've also tried the Never version of them. Neither one seems to have any effect. The only thing that seems to work is the suggested command-line setting: sudo apt -o APT::Get::Always-Include-Phased-Updates=true upgrade [1]: https://askubuntu.com/questions/1246962/what-apt-configuration-file-should-the-never-include-phased-updates-flag-be-pl/1246984#1246984 https://askubuntu.com/questions/1246962/what-apt-configurati...
- linsomniac 4y agoFYI: After just throwing a bunch of stuff at the wall, I've finally come up with the following which does work, at least for apt (haven't tried update manager): Update-Manager::Always-Include-Phased-Updates; APT::Get::Always-Include-Phased-Updates True; Note the lack of a ":" in the APT:: line. Putting a : silently causes it to do phased updates.