[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
Parameswaran Sivatharman
para.siva at canonical.com
Wed Jan 30 17:56:10 UTC 2013
There is another way to reproduce this crash in precise and the crash
occurs even with apt-clone 0.2.2ubuntu3.
1. Install precise (select 'Erase disk and install ubuntu' on the 'Installation type' screen)
2. Finish the installation, reboot and login
3. Do another installation on the same device with NO NETWORK (select 'Something else' on the 'Installation type' screen)
4. 'Change' the existing ext-4 partition to be the root partition of the new installation and leave the others (swap) untouched. Do not format the chaned partition.
5. Continue the installation entering the same username/password used for the previous installation
6. The crash can be observed at the end of the installation.
The syslog from the failed installation is attached.
(ubuntu-bug ubiquity fails to report a new bug, with the following error
message: 'This is not an official ubuntu package. Please remove any
third party package and try again)
** Attachment added: "precise_fail_syslog"
https://bugs.launchpad.net/ubuntu/+source/apt-clone/+bug/1066347/+attachment/3507811/+files/precise_fail_syslog
--
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