[Bug 1425118] Re: package-data-downloader tries to remove non-existant file, failing with Errno 2

Launchpad Bug Tracker 1425118 at bugs.launchpad.net
Fri Jun 12 05:48:04 UTC 2015


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

** Changed in: update-notifier (Ubuntu)
       Status: New => Confirmed

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

Title:
  package-data-downloader tries to remove non-existant file, failing
  with Errno 2

Status in update-notifier package in Ubuntu:
  Confirmed

Bug description:
  In Ubuntu 14.10, installations of various packages fail due to
  package-data-downloader trying to remove a file that does not exist.
  See

    https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1354709

  for examples when trying to install the msttcorefonts package (see bug
  descriptions) and when trying to install the wine-browser-installer
  package (see comments #10 and #11)

  A very simple patch is to check if the file exists before calling
  os.remove to remove it.  Specifically, replace line 260 of /usr/lib
  /update-notifier/package-data-downloader:

                           os.remove(f)

  with the two lines

                           if os.path.exists(dest_file):
                              os.remove(f)

  With this change I can install wine-browser-installer without error.
  Otherwise I cannot.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: update-notifier 3.157
  ProcVersionSignature: Ubuntu 3.16.0-30.40-generic 3.16.7-ckt3
  Uname: Linux 3.16.0-30-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.7-0ubuntu8.2
  Architecture: i386
  CurrentDesktop: XFCE
  Date: Tue Feb 24 08:59:59 2015
  SourcePackage: update-notifier
  UpgradeStatus: Upgraded to utopic on 2015-02-21 (2 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1425118/+subscriptions



More information about the foundations-bugs mailing list