UIFE - remove ubiquity upgrade option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-clone (Ubuntu) |
Won't Fix
|
High
|
Unassigned | ||
Bionic |
Won't Fix
|
High
|
Unassigned | ||
ubiquity (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Bionic |
Fix Released
|
High
|
Brian Murray |
Bug Description
[Rationale]
The ubiquity upgrade option, which allows one to upgrade an old release of Ubuntu using ubiquity, is crashing when attempting to restore the installed packages. Digging into the matter we discovered that there are a multitude of reports where the upgrade crashes due to a failure to calculate the upgrade and this leaves users in a state from which it is hard to recover. Additionally, there have been few crashes reported about this process which leads us to believe it is not used frequently.
Original Description
-------
Test Case:
1. Install 17.10 and apply all updates
2. boot the ISO of Ubuntu Desktop 18.04
3. Launch the install and in the partitioning step, select Upgrade from 17.10 to 18.04
4. Proceed with the rest of the installation
Expected result
The system upgrades successfully to 18.04
Actual result
This crash
ProblemType: CrashDistroRelease: Ubuntu 18.04
Package: apt-clone 0.4.1ubuntu2
ProcVersionSign
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CasperVersion: 1.389
Date: Mon Mar 19 12:59:14 2018
ExecutablePath: /usr/bin/apt-clone
InterpreterPath: /usr/bin/python3.6
LiveMediaBuild: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180317)
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/apt-clone restore-new-distro /target/
Python3Details: /usr/bin/python3.6, Python 3.6.5rc1, python3-minimal, 3.6.4-1
PythonArgs: ['/usr/
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-
Title: apt-clone crashed with SystemError in commit(): installArchives() failed
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
Related branches
- Mathieu Trudel-Lapierre: Approve
-
Diff: 92 lines (+5/-34)4 files modifieddebian/changelog (+5/-0)
debian/ubiquity.templates (+0/-9)
tests/test_ubi_partman.py (+0/-11)
ubiquity/plugins/ubi-partman.py (+0/-14)
tags: | removed: need-duplicate-check |
Changed in apt-clone (Ubuntu): | |
importance: | Undecided → Medium |
tags: | removed: rls-bb-incoming |
tags: | added: id-5ab56b8087bcbfd97826a13b |
Changed in apt-clone (Ubuntu Bionic): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in apt-clone (Ubuntu Bionic): | |
assignee: | Dimitri John Ledkov (xnox) → nobody |
Changed in ubiquity (Ubuntu Bionic): | |
assignee: | nobody → Brian Murray (brian-murray) |
summary: |
- upgrade from 17.10 to 18.04 - apt-clone crashed with SystemError in - commit(): installArchives() failed + UIFE - remove ubiquity upgrade option |
description: | updated |
Changed in apt-clone (Ubuntu): | |
status: | Confirmed → Won't Fix |
Mar 19 11:59:14 ubuntu ubiquity: Traceback (most recent call last): apt-clone" , line 148, in <module> args.new_ distro_ codename, protect_ installed= protect_ installed) python3/ dist-packages/ apt_clone. py", line 501, in restore_state package_ selection( statefile, targetdir, protect_installed, exclude_pkgs) python3/ dist-packages/ apt_clone. py", line 658, in _restore_ package_ selection self.fetch_ progress, self.install_ progress) python3/ dist-packages/ apt/cache. py", line 529, in commit "installArchive s() failed") ubiquity/ plugininstall. py", line 246, in run clone_restore( ) ubiquity/ plugininstall. py", line 1486, in apt_clone_restore fn=install_ misc.debconf_ disconnect) python3. 6/subprocess. py", line 291, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['apt-clone', 'restore- new-distro' , '/target/ ubiquity- apt-clone/ apt-clone- state-ubuntu. tar.gz' , 'bionic', '--destination', '/target']' returned non-zero exit status 1.
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/bin/
Mar 19 11:59:14 ubuntu ubiquity: args.source, args.destination, new_distro=
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/lib/
Mar 19 11:59:14 ubuntu ubiquity: self._restore_
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/lib/
Mar 19 11:59:14 ubuntu ubiquity: cache.commit(
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/lib/
Mar 19 11:59:14 ubuntu ubiquity: raise SystemError(
Mar 19 11:59:14 ubuntu ubiquity: SystemError: installArchives() failed
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity chroot /target umount /sys
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity chroot /target umount /proc
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity umount /target/run
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity umount /target/dev
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity umount -f /target/proc
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity umount -f /target/sys
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity umount -f /target/dev
Mar 19 11:59:14 ubuntu /plugininstall.py: log-output -t ubiquity umount -f /target/run
Mar 19 11:59:14 ubuntu /plugininstall.py: Could not restore packages from the previous install:
Mar 19 11:59:14 ubuntu /plugininstall.py: Traceback (most recent call last):
Mar 19 11:59:14 ubuntu /plugininstall.py: File "/usr/share/
Mar 19 11:59:14 ubuntu /plugininstall.py: self.apt_
Mar 19 11:59:14 ubuntu /plugininstall.py: File "/usr/share/
Mar 19 11:59:14 ubuntu /plugininstall.py: restore_cmd, preexec_
Mar 19 11:59:14 ubuntu /plugininstall.py: File "/usr/lib/
Mar 19 11:59:14 ubuntu /plugininstall.py: raise CalledProcessEr
Mar 19 11:59:14 ubuntu /plugininstall.py: subprocess.