Comment 2 for bug 1756862

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: upgrade from 17.10 to 18.04 - apt-clone crashed with SystemError in commit(): installArchives() failed

Mar 19 11:59:14 ubuntu ubiquity: Traceback (most recent call last):
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/bin/apt-clone", line 148, in <module>
Mar 19 11:59:14 ubuntu ubiquity: args.source, args.destination, new_distro=args.new_distro_codename, protect_installed=protect_installed)
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/lib/python3/dist-packages/apt_clone.py", line 501, in restore_state
Mar 19 11:59:14 ubuntu ubiquity: self._restore_package_selection(statefile, targetdir, protect_installed, exclude_pkgs)
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/lib/python3/dist-packages/apt_clone.py", line 658, in _restore_package_selection
Mar 19 11:59:14 ubuntu ubiquity: cache.commit(self.fetch_progress, self.install_progress)
Mar 19 11:59:14 ubuntu ubiquity: File "/usr/lib/python3/dist-packages/apt/cache.py", line 529, in commit
Mar 19 11:59:14 ubuntu ubiquity: raise SystemError("installArchives() failed")
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/ubiquity/plugininstall.py", line 246, in run
Mar 19 11:59:14 ubuntu /plugininstall.py: self.apt_clone_restore()
Mar 19 11:59:14 ubuntu /plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1486, in apt_clone_restore
Mar 19 11:59:14 ubuntu /plugininstall.py: restore_cmd, preexec_fn=install_misc.debconf_disconnect)
Mar 19 11:59:14 ubuntu /plugininstall.py: File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
Mar 19 11:59:14 ubuntu /plugininstall.py: raise CalledProcessError(retcode, cmd)
Mar 19 11:59:14 ubuntu /plugininstall.py: subprocess.CalledProcessError: 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.