Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41

Thread: Unattended-upgrades can break persistent live media

  1. #1
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Unattended-upgrades can break persistent live media

    Looking at the persistent live Ubuntu 16.04 LTS system - the Software & Updates screen / Update - I notice, that Automatic updates is set to 'Download and install automatically'. This is bad in a persistent live system.

    After leaving the persistent live Ubuntu 16.04 LTS system running overnight, I found that it had performed an automatic upgrade:

    df revealed that the content in casper-rw had increased to 1.6 GiB.

    This is risky: If not enough space (and inodes) in the casper-rw partition or file, the upgrade operation will be incomplete and fail. There might be big problems even if there is space left in casper-rw, and finally, this is wasting the available space, unless you have a huge casper-rw partition.

    I am surprised that the persistent live system started an automatic upgrade. I don't think it is caused by the installer (mkusb), because the files controlling those actions are not touched. I can test what happens in an Ubuntu 16.04.1 LTS system, that I leave by itself for a long time.

    Until this is resolved, it is a good idea to disable unattended-upgrades, but above all, to take regular backups, when you use a persistent live system.

    Is this a bug?

    Should I write a bug report about it? In that case against which package?



    See the following links for more details,

    Unattended-upgrades broke persistent live media

    reply with output from df
    Last edited by sudodus; August 31st, 2016 at 10:53 AM.

  2. #2
    Join Date
    Aug 2009
    Beans
    1,211
    Distro
    Ubuntu Development Release

    Re: Unattended-upgrades can break persistent live media

    Quote Originally Posted by sudodus View Post

    Is this a bug?

    Should I write a bug report about it? In that case against which package?
    Yes, I think it would be useful for you to file a bug against casper. There are various scripts in that package that change things to be more appropriate for the live environment.

  3. #3
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    Thanks, jbicha

  4. #4
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    Survey to find affected flavours and versions

    Flavour & version Security update setting Comment
    Lubuntu 14.04.1 LTS Display immediately
    Ubuntu 14.04.1 LTS Display immediately
    Xubuntu 14.04.5 LTS Display immediately
    Ubuntu 16.04 LTS Download and install automatically Reported update & dist-upgrade
    Mythbuntu 16.04 LTS Download and install automatically Reported update & dist-upgrade
    Kubuntu 16.04.1 LTS Install security updates without confirmation alias 'Download and install automatically'
    Lubuntu 16.04.1 LTS Display immediately
    Ubuntu 16.04.1 LTS Download and install automatically Reported update & dist-upgrade
    Xubuntu 16.04.1 LTS daily 2016-08-31 Download and install automatically
    Lubuntu Yakkety beta Display immediately
    Ubuntu Yakkety daily 2016-08-31 Download and install automatically

    If you are running a persistent live system, I suggest that you select 'Display immediately', if your flavour and version is affected. See the attached screenshots.
    Last edited by sudodus; September 1st, 2016 at 09:04 AM. Reason: added screenshots

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    I created this Launchpad bug report: Bug #1619188: Unattended upgrades can break persistent live media

    Please mark 'Affects me too' to confirm the bug at Launchpad.

  6. #6
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    Would these changes be enough to change the setting from 'Download and install automatically' to 'Display immediately' in Ubuntu 16.04.1 LTS? I mean during live and persistent live sessions.

    Code:
    ubuntu@ubuntu:/etc/apt/apt.conf.d$ for i in *;do diff $i orig || echo "^^^ diff in $i";done
    4d3
    < APT::Periodic::Unattended-Upgrade "0";
    ^^^ diff in 10periodic
    2,4c2
    < APT::Periodic::Download-Upgradeable-Packages "0";
    < APT::Periodic::AutocleanInterval "0";
    < APT::Periodic::Unattended-Upgrade "0";
    ---
    > APT::Periodic::Unattended-Upgrade "1";
    ^^^ diff in 20auto-upgrades
    ubuntu@ubuntu:/etc/apt/apt.conf.d$
    See also the attached screenshot.

    Are these updating settings saved somewhere else in other versions?

    Are there other files that would need modifications too?
    Last edited by sudodus; September 2nd, 2016 at 05:27 AM.

  7. #7
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    I understand that the following format is better for patching: diff -u old-file newfile

    Code:
    ubuntu@ubuntu:/etc/apt/apt.conf.d$ for i in *;do diff -u orig/$i .;done
    --- orig/10periodic	2016-05-24 16:48:53.000000000 +0000
    +++ ./10periodic	2016-09-01 16:56:26.303618989 +0000
    @@ -1,3 +1,4 @@
     APT::Periodic::Update-Package-Lists "1";
     APT::Periodic::Download-Upgradeable-Packages "0";
     APT::Periodic::AutocleanInterval "0";
    +APT::Periodic::Unattended-Upgrade "0";
    --- orig/20auto-upgrades	2016-02-18 22:19:18.000000000 +0000
    +++ ./20auto-upgrades	2016-09-01 16:56:26.303618989 +0000
    @@ -1,2 +1,4 @@
     APT::Periodic::Update-Package-Lists "1";
    -APT::Periodic::Unattended-Upgrade "1";
    +APT::Periodic::Download-Upgradeable-Packages "0";
    +APT::Periodic::AutocleanInterval "0";
    +APT::Periodic::Unattended-Upgrade "0";
    diff: orig/orig: No such file or directory
    ubuntu@ubuntu:/etc/apt/apt.conf.d$ 

  8. #8
    Join Date
    May 2006
    Location
    Finland
    Beans
    657

    Re: Unattended-upgrades can break persistent live media

    Quote Originally Posted by sudodus View Post
    Would these changes be enough to change the setting from 'Download and install automatically' to 'Display immediately' in Ubuntu 16.04.1 LTS? I mean during live and persistent live sessions.
    ...
    Are these updating settings saved somewhere else in other versions?

    Are there other files that would need modifications too?
    I think so yes.

    Not that I know.

    I don't think so, respectively.

    But does this change the default setting of the system installed by the persistent live system later, as well?

  9. #9
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    Thanks for replying and confirming the bug

    Quote Originally Posted by jis View Post
    But does this change the default setting of the system installed by the persistent live system later, as well?
    I don't think so. At least it should be considered and avoided by the developer when squashing the bug, and tested by us before releasing the bug-fix.

    Edit: I tested with Ubuntu 16.04.1 LTS, and changing this setting in the persistent live system (to Display immediately') did not change the setting in the installed system.
    Last edited by sudodus; September 2nd, 2016 at 11:40 PM.

  10. #10
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Unattended-upgrades can break persistent live media

    mkusb version 11.0.2 is uploaded to ppa:mkusb/unstable for testing. I hope it will provide a better solution than the advice to use the graphical user interface. (I think many people who need that kind of advice will not find it before it is too late.)

    But the best long term solution is to modify Ubuntu with different default settings for live and persistent live systems. Installed systems can keep the current default (in 16.04.1 LTS).

    See this link: Solutions in the pipeline

Page 1 of 5 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •