Can't upgrade from 15.10 Wily to 16.04 Xenial in LXC container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
ubuntu-release-upgrader (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
Bug Description
When I try to upgrade from 15.10 Wily to 16.04 Xenial (actual development version) within an LXC container, the upgrade script hangs at the message „Calculating the changes”.
Steps to reproduce:
1. Make an LXC container with Wily (quickest option is to use lxc-create -t download, choose ubuntu, wily, amd64/i386).
2. Boot up the container, log in, „apt-get -y install ubuntu-
3. Start the upgrade with „do-release-upgrade -d”.
You will see that the upgrade process will hang at the message „Calculating the changes”.
The process which hangs: „/usr/bin/python3 /tmp/ubuntu-
With strace, it is revealed that the process hangs at a „futex” system call:
futex(0x7f41900
This system call never returns, the process must be interrupted with CTRL-C or kill.
Upgrading to any previous release within an LXC container works without problems, therefore I consider it as a regression.
description: | updated |
Changed in lxc (Ubuntu): | |
status: | Triaged → Invalid |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Confirmed → Triaged |
I encountered a similar problem when upgrading a container from 13.04 to 13.10.
The problem was that the listed dependencies for ubuntu- release- upgrader- core were not sufficient.
The solution was to install python-apt. (Even that was a bit difficult; I had to manually create an empty file, /etc/python2. 7/sitecustomize .py).
If python-apt doesn't solve the problem, then you could try searching for other missing dependencies. Here's one way to do that:
(1) List the reverse- dependencies of ubuntu- release- upgrader- core:
apt-cache rdepends ubuntu- release- upgrader- core
On ubuntu-14.04 the reverse- dependencies include update- manager- core.
(2) List the dependencies of update- manager- core,
apt-cache depends update-manager-core
Try installing some or all of these dependencies and see whether it solves the problem.