dependency_links.txt.dpkg-new': No such file or directory

Bug #1246730 reported by Angel Guzman Maeso
82
This bug affects 18 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Trusty
Invalid
Undecided
Unassigned
gyp (Ubuntu)
Fix Released
High
Unassigned
Trusty
Fix Released
High
Unassigned

Bug Description

Using trusty, I get the following error upgrading:

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libdb-dev
The following packages will be upgraded:
  gyp
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
826 not fully installed or removed.
Need to get 0 B/254 kB of archives.
After this operation, 34,8 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 717319 files and directories currently installed.)
Preparing to replace gyp 0.1~svn1654-1 (using .../gyp_0.1~svn1729-3_all.deb) ...
Unpacking replacement gyp ...
dpkg: error processing /var/cache/apt/archives/gyp_0.1~svn1729-3_all.deb (--unpack):
 unable to open '/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
                                                                                         Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/gyp_0.1~svn1729-3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gyp 0.1~svn1654-1
ProcVersionSignature: Ubuntu 3.8.0-13.23-generic 3.8.3
Uname: Linux 3.8.0-13-generic i686
NonfreeKernelModules: fglrx
ApportVersion: 2.12.6-0ubuntu1
Architecture: i386
Date: Thu Oct 31 14:49:00 2013
InstallationDate: Installed on 2013-02-03 (270 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: gyp
UpgradeStatus: Upgraded to trusty on 2013-10-31 (0 days ago)

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gyp (Ubuntu):
status: New → Confirmed
Changed in gyp (Ubuntu):
importance: Undecided → High
missael (jasa-x3x)
Changed in gyp (Ubuntu):
assignee: nobody → missael (jasa-x3x)
Michael Vogt (mvo)
Changed in gyp (Ubuntu):
milestone: none → ubuntu-14.04-beta-2
Chad Miller (cmiller)
Changed in gyp (Ubuntu Trusty):
assignee: missael (jasa-x3x) → nobody
Revision history for this message
Michael Vogt (mvo) wrote :

I can reproduce this in a chroot, it appears that this is a dpkg issue. In the old deb there is a file "usr/share/pyshared/gyp-0.1.egg-info - in the new deb this is replaced by a directory:

# dpkg --version ; dpkg -i /var/cache/apt/archives/gyp_0.1~svn1654-1_all.deb ; dpkg -D100 -i /var/cache/apt/archives/gyp_0.1~svn1729-3_all.deb
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
...
D000100: setupvnamevbs main='/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt' tmp='/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-tmp' new='/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-new'
dpkg: error processing archive /var/cache/apt/archives/gyp_0.1~svn1729-3_all.deb (--install):
 unable to open '/usr/share/pyshared/gyp-0.1.egg-info/dependency_links.txt.dpkg-new': No such file or directory
...

Revision history for this message
Michael Vogt (mvo) wrote :

I can also reproduce this in a "sid" chroot, so it seems that upstream dpkg is affected as well.

Michael Vogt (mvo)
Changed in dpkg (Ubuntu Trusty):
status: New → Invalid
no longer affects: dpkg (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gyp - 0.1~svn1729-3ubuntu1

---------------
gyp (0.1~svn1729-3ubuntu1) trusty; urgency=low

  * debian/preinst:
    - help dpkg when /usr/lib/python2.7/dist-packages/gyp-0.1.egg-info
      is changed from a symlink to a directory (LP: #1246730)
 -- Michael Vogt <email address hidden> Tue, 18 Mar 2014 16:34:26 +0100

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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