[Bug 1066347] Re: "Reinstall Ubuntu" failed - apt-clone crashes with: KeyError: "filename './etc/apt/sources.list' not found" line 1886 in getmember in tarfile.py

Brian Murray brian at ubuntu.com
Wed Apr 17 17:34:11 UTC 2013


@Erick  - you won't see the option to upgrade 12.04 to 12.04 - see the
following changelog:

ubiquity (2.9.28) precise; urgency=low

  * ubiquity-bluetooth-agent: Don't touch /tmp/ubiquity-bluetooth-done
    if the file already exists. (LP: #951402)
  * gtk-ui: Drop poke_screensaver and replace by code disabling it in
    gsettings. (LP: #951336)
  * Replace ubuntu_installed.png by a scaled down version (LP: #750134)
  * Enable test_same_ubuntu_only making sure we don't get offered an
    'upgrade' to the same version of Ubuntu.
  * Add test_newer_ubuntu_only ensuring ubiquity doesn't offer a downgrade.
  * Automatic update of included source packages: user-setup
    1.41ubuntu1.

 -- Stéphane Graber <stgraber at ubuntu.com>  Tue, 13 Mar 2012 19:21:21
-0400

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt-clone in Ubuntu.
https://bugs.launchpad.net/bugs/1066347

Title:
  "Reinstall Ubuntu" failed - apt-clone crashes with: KeyError:
  "filename './etc/apt/sources.list' not found" line 1886 in getmember
  in tarfile.py

Status in “apt-clone” package in Ubuntu:
  Fix Released
Status in “apt-clone” source package in Precise:
  Fix Committed
Status in “apt-clone” source package in Quantal:
  Fix Released

Bug description:
  Quantal Desktop 20121012.3

  TEST CASE:
  1. Install Ubuntu 12.10 or 12.04.1 once
  2. Install it a second time and in the partitioning step select "Reinstall Ubuntu 12.10"
  3. Proceed with installation

  ACTUAL RESULT:
  Installation ends with an error dialog "Error restoring installation applications"

  From syslog
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity mount --bind /run /target/run
  Oct 13 16:42:42 ubuntu ubiquity: Traceback (most recent call last):
  Oct 13 16:42:42 ubuntu ubiquity:   File "/usr/bin/apt-clone", line 119, in <module>
  Oct 13 16:42:42 ubuntu ubiquity:     args.source, args.destination, args.new_distro_codename, protect_installed)
  Oct 13 16:42:42 ubuntu ubiquity:   File "/usr/lib/python3/dist-packages/apt_clone.py", line 343, in restore_state
  Oct 13 16:42:42 ubuntu ubiquity:     self._restore_sources_list(statefile, targetdir)
  Oct 13 16:42:42 ubuntu ubiquity:   File "/usr/lib/python3/dist-packages/apt_clone.py", line 387, in _restore_sources_list
  Oct 13 16:42:42 ubuntu ubiquity:     tar.extract(self.TARPREFIX+"etc/apt/sources.list", targetdir)
  Oct 13 16:42:42 ubuntu ubiquity:   File "/usr/lib/python3.2/tarfile.py", line 2168, in extract
  Oct 13 16:42:42 ubuntu ubiquity:     tarinfo = self.getmember(member)
  Oct 13 16:42:42 ubuntu ubiquity:   File "/usr/lib/python3.2/tarfile.py", line 1886, in getmember
  Oct 13 16:42:42 ubuntu ubiquity:     raise KeyError("filename %r not found" % name)
  Oct 13 16:42:42 ubuntu ubiquity: KeyError: "filename './etc/apt/sources.list' not found"
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity chroot /target umount /sys
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity chroot /target umount /proc
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity umount /target/run
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity umount /target/dev
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity umount -f /target/proc
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity umount -f /target/sys
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity umount -f /target/dev
  Oct 13 16:42:42 ubuntu plugininstall.py: log-output -t ubiquity umount -f /target/run
  Oct 13 16:42:42 ubuntu plugininstall.py: Could not restore packages from the previous install:
  Oct 13 16:42:42 ubuntu plugininstall.py: Traceback (most recent call last):
  Oct 13 16:42:42 ubuntu plugininstall.py:   File "/usr/share/ubiquity/plugininstall.py", line 264, in run
  Oct 13 16:42:42 ubuntu plugininstall.py:     self.apt_clone_restore()
  Oct 13 16:42:42 ubuntu plugininstall.py:   File "/usr/share/ubiquity/plugininstall.py", line 1520, in apt_clone_restore
  Oct 13 16:42:42 ubuntu plugininstall.py:     preexec_fn=install_misc.debconf_disconnect)
  Oct 13 16:42:42 ubuntu plugininstall.py:   File "/usr/lib/python3.2/subprocess.py", line 489, in check_call
  Oct 13 16:42:42 ubuntu plugininstall.py:     raise CalledProcessError(retcode, cmd)
  Oct 13 16:42:42 ubuntu plugininstall.py: subprocess.CalledProcessError: Command '['apt-clone', 'restore-new-distro', '/target/ubiquity-apt-clone/apt-clone-state-ubuntu.tar.gz', 'quantal', '--destination', '/target']' returned non-zero exit status 1

  ProblemType: BugDistroRelease: Ubuntu 12.10
  Package: ubiquity 2.12.11
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Uname: Linux 3.5.0-17-generic i686
  ApportVersion: 2.6.1-0ubuntu3
  Architecture: i386
  CasperVersion: 1.328
  Date: Sat Oct 13 19:08:24 2012
  InstallCmdLine: file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
  LiveMediaBuild: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121012.3)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bashSourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-clone/+bug/1066347/+subscriptions




More information about the foundations-bugs mailing list