unattended-upgrade crashed with SystemError in open(): E:Problem renaming the file /var/cache/apt/pkgcache.bin.guEChP to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory), W:You may want to run apt-get update to correct these problems

Bug #1366708 reported by George Karavasilev
This bug report is a duplicate of:  Bug #1789637: Proper support for frontend lock. Edit Remove
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I get this after every session startup in Ubuntu Gnome 14.10 (currently dev) with Gnome 3 PPAs (noth main and staging added).

ProblemType: Crash
DistroRelease: Ubuntu 14.10
Package: unattended-upgrades 0.82.8
ProcVersionSignature: Ubuntu 3.16.0-12.18-generic 3.16.1
Uname: Linux 3.16.0-12-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
Date: Wed Sep 3 11:20:21 2014
ExecutablePath: /usr/bin/unattended-upgrade
InstallationDate: Installed on 2014-08-03 (35 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140802)
InterpreterPath: /usr/bin/python3.4
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/unattended-upgrade
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/sh
PythonArgs: ['/usr/bin/unattended-upgrade']
SourcePackage: unattended-upgrades
Title: unattended-upgrade crashed with SystemError in open(): E:Problem renaming the file /var/cache/apt/pkgcache.bin.guEChP to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory), W:You may want to run apt-get update to correct these problems
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
George Karavasilev (kokoto-java) wrote :
information type: Private → Public
tags: removed: need-duplicate-check
Changed in unattended-upgrades (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in unattended-upgrades (Ubuntu):
status: New → Confirmed
Revision history for this message
Tim Landscheidt (scfc) wrote :

We had this issue for some time now (cf. https://phabricator.wikimedia.org/T92491); I found bug #1091137 which says:

| When the landscape-client runs apt-get update, it can return an error like this:

| E: Problem renaming the file /var/cache/apt/pkgcache.bin.PGPOhV to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
| W: You may want to run apt-get update to correct these problems

| This can happen if someone is running apt-get clean, while the update is happening. apt-get clean
| removes all pkgcache.bin files, including the temporary ones that apt-get update uses
| to rebuild the cache. This error is harmless, since pkgcache.bin should also have been
| removed, and thus the next time the cache will be opened the cache will be rebuilt.

| I.e, we should ignore the error above as to not cause intermittent alerts in the Landscape
| server, that the user can't do anything to resolve.

So my reading is that apt-get clean removes temporary files of another process, and it shouldn't do that (IMHO).

Revision history for this message
Tim Landscheidt (scfc) wrote :
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.