apt-check is slow because it disables pkgcache and srcpkgcache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
In /usr/lib/
# force apt to build its caches in memory for now to make sure
# that there is no race when the pkgcache file gets re-generated
#apt_
apt_
apt_
This causes apt-check to be way slower than it should be (9 seconds instead of 2.7 seconds). It was written in 2008, and the race condition that the comment refers to was fixed in 2010:
http://
http://
So I think it’s time to remove this slow workaround.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: update-
ProcVersionSign
Uname: Linux 3.11.0-9-generic x86_64
NonfreeKernelMo
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
Date: Tue Oct 1 05:54:39 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-12-05 (1031 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
MarkForUpload: True
PackageArchitec
SourcePackage: update-notifier
UpgradeStatus: Upgraded to saucy on 2012-11-15 (319 days ago)
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 31 lines (+1/-10)1 file modifieddata/apt_check.py (+1/-10)
- Dennis Kaarsemaker: Pending requested
- Diff: 0 lines
Changed in update-notifier (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in update-notifier (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
This bug was fixed in the package update-notifier - 0.146
---------------
update-notifier (0.146) saucy; urgency=low
[ Brian Murray ]
* Speed up apt-check (LP: #1233587). Thanks to Anders Kaseorg for the
patch.
[ Sebastien Bacher ]
* Update translations from launchpad
-- Sebastien Bacher <email address hidden> Fri, 04 Oct 2013 10:56:19 +0200