Installing upstart-sysv in Unity 8 LXC install script fails

Bug #1458236 reported by Ads20000
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity8 Desktop Preview in LXC
Fix Committed
High
Christopher Townsend
unity8-lxc (Ubuntu)
Fix Released
High
Christopher Townsend

Bug Description

I told Chris Townsend this via. email but logging this here anyway. This bug occurs as the script tries to install Upstart in the LXC container (which it does because systemd won't work). I get the following Terminal output when running `sudo unity8-lxc-setup --rebuild-config --rebuild-rootfs`:

Unpacking the ISO image...
Configuring the Unity8 LXC...
dget: retrieving http://archive.ubuntu.com/ubuntu/pool/main/u/upstart/upstart-sysv_1.13.2-0ubuntu14_amd64.deb
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 40290 100 40290 0 0 26965 0 0:00:01 0:00:01 --:--:-- 26985
Starting the container
Switching to upstart...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
  systemd-sysv ubuntu-standard
The following NEW packages will be installed
  upstart-sysv
0 to upgrade, 1 to newly install, 2 to remove and 0 not to upgrade.
Need to get 40.3 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Eventually means this happens: https://bugs.launchpad.net/unity8-preview-lxc/+bug/1437900

Ads20000 (ads20000)
description: updated
Ads20000 (ads20000)
no longer affects: unity8-lxc (Ubuntu)
description: updated
Changed in unity8-preview-lxc:
status: New → Invalid
status: Invalid → New
description: updated
Revision history for this message
Ads20000 (ads20000) wrote :

Sorry about that, thought I should do an `ubuntu-bug unity8-lxc` report but since it's a third-party package I can't.

description: updated
description: updated
Revision history for this message
Christopher Townsend (townsend) wrote :

Hey Ads20000,

Yeah, I did reproduce this. However, in order to try to debug this, I did a '--redownload' and then the next time of just trying '--rebuild-config --rebuild-rootfs', it worked.

I'm betting the issue is that I'm trying to install a newer version of upstart-sysv into an older ISO and apt does not like that. Probably the right thing to do here is to cache the upstart-sysv version that was originally downloaded with the ISO and use that if not using '--redownload'. I'll work on this solution.

Thanks again for pointing this out!

Changed in unity8-preview-lxc:
status: New → In Progress
Changed in unity8-lxc (Ubuntu):
status: New → In Progress
Changed in unity8-preview-lxc:
importance: Undecided → High
Changed in unity8-lxc (Ubuntu):
importance: Undecided → High
Changed in unity8-preview-lxc:
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-lxc (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-preview-lxc:
milestone: none → 1.0.4
Revision history for this message
Christopher Townsend (townsend) wrote :

Hey Ads20000,

I've fixed up the development version to fix this. However, you'll need to use '--redownload' to fix the fact that your cached ISO and the version of upstart-sysv is out of sync. After doing that this time, then the ISO and upstart-sysv will be cached and unity8-lxc-setup will use both and download new ones if you use '--redownload' in the future.

Thanks again!

Revision history for this message
Ads20000 (ads20000) wrote :

Hi Chris,

Thanks for that, that's really useful because I'm on a very slow Internet connection and so sometimes I've downloaded the ISO at different times (since it caches as it downloads) and by the time it's finished downloading there's a new one out and upstart-sysv is out-of-sync. Hopefully it will work this time.

Thank you for working on this! If I can get it working then this is a great way for me and others to help test Ubuntu Next :)

Revision history for this message
Ads20000 (ads20000) wrote :

Works perfectly, thanks so much!

Changed in unity8-preview-lxc:
status: In Progress → Fix Released
Changed in unity8-lxc (Ubuntu):
status: In Progress → Fix Released
Changed in unity8-preview-lxc:
status: Fix Released → In Progress
Changed in unity8-lxc (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity8-lxc - 1.0.4+15.10.20150609-0ubuntu1

---------------
unity8-lxc (1.0.4+15.10.20150609-0ubuntu1) wily; urgency=medium

  [ Chris Townsend ]
  * Bump version to 1.0.4.
  * Automount /proc to avoid a race when attaching to a container to run
    a command. Also remove the ugly sleep workaround. (LP: #1428848)
  * Cache a copy of upstart-sysv when downloading the Unity 8 Desktop
    Next ISO image. This will keep the ISO and the upstart-sysv package
    in sync. (LP: #1458236)
  * Catch the exception when distro-info-data is outdated during dev
    release transitions. Use the current stable release instead when the
    dev release has not been updated. (LP: #1448521)
  * Terminate the session instead of killing the user when logging out
    of the Unity 8 LXC session. This is much less aggressive and keeps
    ssh sessions alive. (LP: #1456604)
  * Use upstart-sysv in the Unity8 container instead of systemd. This
    fixes a slew of issues when using systemd in the container. (LP:
    #1437900)

 -- CI Train Bot <email address hidden> Tue, 09 Jun 2015 14:17:23 +0000

Changed in unity8-lxc (Ubuntu):
status: In Progress → Fix Released
Changed in unity8-preview-lxc:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.