On Mon, Jan 21, 2013 at 06:58:41AM +0100, Michael Vogt wrote: > On Sun, Jan 20, 2013 at 01:13:52PM +0100, Bastian Blank wrote: > > unattended-upgrades fails completely with xz compressed debs: > > | # unattended-upgrade > > | Traceback (most recent call last): > > | File "/usr/bin/unattended-upgrade", line 1011, in <module> > > | main(options) > > | File "/usr/bin/unattended-upgrade", line 870, in main > > | if conffile_prompt(item.destfile): > > | File "/usr/bin/unattended-upgrade", line 433, in conffile_prompt > > | deb = apt_inst.DebFile(destFile) > > | SystemError: No debian archive, missing data.tar.{bz2,gz,uncompressed,}
strace shows the following: | stat("/var/cache/apt/archives/grub-common_1.99-26_amd64.deb", {st_mode=S_IFREG|0644, st_size=1553346, ...}) = 0 | open("/var/cache/apt/archives/grub-common_1.99-26_amd64.deb", O_RDONLY) = 44 | fcntl(44, F_SETFD, FD_CLOEXEC) = 0 | fstat(44, {st_mode=S_IFREG|0644, st_size=1553346, ...}) = 0 | read(44, "!<arch>\n", 8) = 8 | read(44, "debian-binary 1357133505 0 0 100644 4 `\n", 60) = 60 | lseek(44, 0, SEEK_CUR) = 68 | lseek(44, 4, SEEK_CUR) = 72 | read(44, "control.tar.gz 1357133505 0 0 100644 3537 `\n", 60) = 60 | lseek(44, 0, SEEK_CUR) = 132 | lseek(44, 3538, SEEK_CUR) = 3670 | read(44, "data.tar.xz 1357133508 0 0 100644 1549616 `\n", 60) = 60 | lseek(44, 0, SEEK_CUR) = 3730 | lseek(44, 1549616, SEEK_CUR) = 1553346 | gettimeofday({1358758909, 658994}, NULL) = 0 | stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0 | write(3, "2013-01-21 10:01:49,658 ERROR failed to read deb file '/var/cache/apt/archives/grub-common_1.99-26_amd64.deb' (No debian archive, missing data.tar.{bz2,gz,uncompressed,})\n", 171) = 171 > Could you please check if you have xz-utils installed and what output > # apt-config dump|grep Compressor::xz > is giving (if any)? Nope, it is not installed. So the output is empty. > When I uninstall xz-utils I see a similar error message in my test. So > it might simply be a missing dependency in unattended-upgrades on > "xz-utils" (or adding it in python-apt/apt directly). But double > checking/confirming would be great. Yep. This is the problem. Bastian -- We do not colonize. We conquer. We rule. There is no other way for us. -- Rojan, "By Any Other Name", stardate 4657.5 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org