package kvm-pxe 5.4.4-1ubuntu1 failed to install/upgrade: unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory / deferred fsync failed due to non-existent file .dpkg-new

Bug #574524 reported by Daniel Holbach
334
This bug affects 65 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Invalid
High
Unassigned
etherboot (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: etherboot

package kvm-pxe 5.4.4-1ubuntu1 failed to install/upgrade: unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: kvm-pxe 5.4.4-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: slamr
Architecture: i386
Date: Mon May 3 16:44:28 2010
Dependencies:

ErrorMessage: unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory
PackageArchitecture: all
SourcePackage: etherboot
Title: package kvm-pxe 5.4.4-1ubuntu1 failed to install/upgrade: unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory

Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

I've the same issue in amd64

Changed in etherboot (Ubuntu):
status: New → Confirmed
Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

On my system i've: /usr/share/kvm/pxe-e1000.bin

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

after unpacking the package i also get usr/share/kvm/pxe-e1000.bin, wondering why is it looking for .dpkg-new

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Can you please try the package in lucid-proposed?

Changed in etherboot (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daniel Holbach (dholbach) wrote :

daniel@bert:~$ LC_ALL=C sudo apt-get install kvm-pxe
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  kvm-pxe
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 113kB of archives.
After this operation, 205kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ lucid-proposed/universe kvm-pxe 5.4.4-1ubuntu1.1 [113kB]
Fetched 113kB in 0s (282kB/s)
(Reading database ... 170487 files and directories currently installed.)
Unpacking kvm-pxe (from .../kvm-pxe_5.4.4-1ubuntu1.1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/kvm-pxe_5.4.4-1ubuntu1.1_all.deb (--unpack):
 unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/kvm-pxe_5.4.4-1ubuntu1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
daniel@bert:~$

Changed in etherboot (Ubuntu):
status: Incomplete → New
Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

same here

Revision history for this message
Andrew Cowie (afcowie) wrote :

I'm running with lucid-proposed enabled; the error I'm getting is the same:

unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory

Incidentally, I don't know why this is filed against "etherboot"; I'm triyng to install "kvm-pxe" in order that KVM virtual machines have networking capability.

AfC

Revision history for this message
Daniel Holbach (dholbach) wrote :

daniel@miyazaki:~$ apt-cache showsrc kvm-pxe | head -n 2
Package: etherboot
Binary: etherboot, kvm-pxe
daniel@miyazaki:~$

Changed in etherboot (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could you please reproduce with the command:
LANG=C dpkg -D111 -i /var/cache/apt/archives/kvm-pxe_5.4.4-1ubuntu1.1_all.deb 2>&1 | tee /tmp/dpkg-i_kvm-pxe.log
and attach the resulting log file ?
Thanks.

Changed in etherboot (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Harald (hdmuell) wrote :

Here is the result from:

LANG=C dpkg -D111 -i /var/cache/apt/archives/kvm-pxe_5.4.4-1ubuntu1.1_all.deb 2>&1 | tee /tmp/dpkg-i_kvm-pxe.log

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for the log.

The error is triggered by the deferred fsync.
---
D000100: deferred extract needs rename
D000100: setupvnamevbs main=`/usr/share/kvm/pxe-e1000.bin' tmp=`/usr/share/kvm/pxe-e1000.bin.dpkg-tmp' new=`/usr/share/kvm/pxe-e1000.bin.dpkg-new'
D000100: deferred extract needs fsync
dpkg: error processing /var/cache/apt/archives/kvm-pxe_5.4.4-1ubuntu1.1_all.deb (--install):
 unable to open '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory

adding a dpkg task.

Changed in etherboot (Ubuntu):
status: Incomplete → Triaged
Changed in dpkg (Ubuntu):
status: New → Triaged
importance: Undecided → High
summary: package kvm-pxe 5.4.4-1ubuntu1 failed to install/upgrade: unable to open
- '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory
+ '/usr/share/kvm/pxe-e1000.bin.dpkg-new': No such file or directory /
+ deferred fsync failed due to non-existent file .dpkg-new
tags: added: regression-release
Revision history for this message
Jaime Pereira (jaimepereira) wrote :
Download full text (15.6 KiB)

jaime@jaime-desktop:~$ sudo LANG=C dpkg -D111 -i /var/cache/apt/archives/kvm-pxe_5.4.4-1ubuntu1.1_all.deb 2>&1 | tee /tmp/dpkg-i_kvm-pxe.log
[sudo] password for jaime:
D000010: ensure_pathname_nonexisting `/var/lib/dpkg/tmp.ci'
(Reading database ... 212625 files and directories currently installed.)
Preparing to replace kvm-pxe 5.4.4-1ubuntu1 (using .../kvm-pxe_5.4.4-1ubuntu1.1_all.deb) ...
D000001: process_archive oldversionstatus=installed
Unpacking replacement kvm-pxe ...
D000010: tarobject ti->Name=`.' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/.' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/.' tmp=`/..dpkg-tmp' new=`/..dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: tarobject ti->Name=`./usr' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/usr' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr' tmp=`/usr.dpkg-tmp' new=`/usr.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: tarobject ti->Name=`./usr/share' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/usr/share' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share' tmp=`/usr/share.dpkg-tmp' new=`/usr/share.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: tarobject ti->Name=`./usr/share/kvm' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/usr/share/kvm' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/kvm' tmp=`/usr/share/kvm.dpkg-tmp' new=`/usr/share/kvm.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: tarobject ti->Name=`./usr/share/kvm/pxe-e1000.bin' Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' namenode=`/usr/share/kvm/pxe-e1000.bin' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/kvm/pxe-e1000.bin' tmp=`/usr/share/kvm/pxe-e1000.bin.dpkg-tmp' new=`/usr/share/kvm/pxe-e1000.bin.dpkg-new'
D000100: tarobject already exists
D000010: ensure_pathname_nonexisting `/usr/share/kvm/pxe-e1000.bin.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr/share/kvm/pxe-e1000.bin.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=32768
D000100: tarobject nondirectory, `link' backup
D000100: tarobject done and installation deferred
D000010: tarobject ti->Name=`./usr/share/kvm/pxe-ne2k_pci.bin' Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' namenode=`/usr/share/kvm/pxe-ne2k_pci.bin' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/kvm/pxe-ne2k_pci.bin' tmp=`/usr/share/kvm/pxe-ne2k_pci.bin.dpkg-tmp' new=`/usr/share/kvm/pxe-ne2k_pci.bin.dpkg-new'
D000100: tarobject already exists
D000010: ensure_pathname_nonexisting `/usr/share/kvm/pxe-ne2k_pci.bin.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr/share/kvm/pxe-ne2k_pci.bin.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=32768
D000100: tarobject nondirectory, `link' backup
D000100: tarobject done and installation deferred
D000010: tarobject ti->Name=`./usr/share/kvm/pxe-pcnet.bin' Mode=644 owner=0.0 Type=48(-) ti->LinkName=`' namenode=`/usr/share/kvm/pxe-pcnet.bin' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr/share/kvm/pxe-pcnet.bin' tmp=`/usr/share/kvm/px...

Revision history for this message
Andrew Cowie (afcowie) wrote :

Ok, this is weird: the package just installed on a lucid-server system AND installed on a fresh lucid-desktop system, but won't install (with the above noise) on my upgraded from karmic-desktop lucid-desktop system.

AfC

Revision history for this message
Erik Meitner (e.meitner) wrote :

Fix for me was to purge (dpkg -P) and reinstall etherboot and kvm-pxe and all qemu packages.

Revision history for this message
Harald (hdmuell) wrote :

>> Fix for me was to purge (dpkg -P) and reinstall etherboot and kvm-pxe and all qemu packages.

did not help in my case

Revision history for this message
Данило Шеган (danilo) wrote :

Same for me as for Andrew: happens on upgraded Karmic (without etherboot installed, and installing it didn't help), installs cleanly on fresh-install Lucid.

Revision history for this message
Данило Шеган (danilo) wrote :

Ok, so this is what fixed it for me: removing /usr/share/kvm made package installable. The situation is like this:
  - in /usr/share "kvm" is a symbolic link to "qemu" which is a real directory
  - kvm-pxe installs files into "/usr/share/kvm" and symlinks into /usr/share/qemu, thus trying to overwrite files it just installed

Not sure why it worked on my "fresh" Lucid system (the situation seems to be identical), but links definitely need to go out of the kvm-pxe package.

Revision history for this message
Andrew Cowie (afcowie) wrote :

So now I've hit this on fresh Lucid systems.

My hunch is that it's a result of package installation ordering.

Danillo's workaround at comment #18 does "work" to allow kvm-pxe to install.

AfC

Revision history for this message
Raphaël Hertzog (hertzog) wrote :

It's not a dpkg issue, the problem is that two files are installed at the same place because of the /usr/share/kvm symlink.

etherboot, kvm-pxe need to be be better coordinated and should not install files through packaged symlinks.

Changed in dpkg (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks to everyone for contributing to this bug report. However, some time ago kvm-pxe moved to installing only under /usr/share/qemu. If anyone still sees such errors please re-open this bug.

Changed in etherboot (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.