update-apt-xapian-index crashed with OSError in getmtime()

Bug #267330 reported by Alexander Dreyzen
This bug affects 459 people
Affects Status Importance Assigned to Milestone
apt-xapian-index
Opinion
Undecided
Sergiy Filzhak
apt-xapian-index (Ubuntu)
Fix Released
Medium
Colin Watson
Declined for Lucid by Sebastien Bacher
Maverick
Fix Released
Medium
Colin Watson
software-center (Ubuntu)
Fix Released
Medium
Colin Watson
Declined for Lucid by Sebastien Bacher
Maverick
Fix Released
Medium
Colin Watson

Bug Description

Binary package hint: apt-xapian-index

# AMD Puma platform
# HP Pavilion dv5z
# AMD Turion(TM) X2 Ultra Dual-Core Mobile Processor ZM-80 (2.1 GHz)
# 15.4" diagonal WXGA High-Definition HP Widescreen Display (1280 x 800)
# 2GB DDR2 System Memory (2 Dimm)
# ATI Radeon(TM) HD 3200 Graphics
# 160GB 5400RPM SATA Hard Drive
# Webcam
# 802.11a/b/g/n WLAN and Bluetooth
# 8X DVD+/-R/RW with Double Layer Support
# 6 Cell Lithium Ion Battery

Description: Ubuntu intrepid (development branch)
Release: 8.10

$ apt-cache policy apt-xapian-index
apt-xapian-index:
  Installed: 0.15
  Candidate: 0.15
  Version table:
 *** 0.15 0
        500 http://us.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 8.10 and 9.04
ExecutablePath: /usr/sbin/update-apt-xapian-index
InterpreterPath: /usr/bin/python2.5
Package: apt-xapian-index 0.15
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/sbin/update-apt-xapian-index -q
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/sbin/update-apt-xapian-index', '-q']
SourcePackage: apt-xapian-index
Title: update-apt-xapian-index crashed with OSError in getmtime()
Uname: Linux 2.6.27-2-generic x86_64
UserGroups:

Related branches

Revision history for this message
Alexander Dreyzen (alexander-dreyzen) wrote :
manzur (sl-solaris)
description: updated
Revision history for this message
Daniel Santibáñez Polanco (dansanti) wrote :

affect to karmic too

Revision history for this message
Hellsgator (hellsgate) wrote :

running Karmic. same bug.

Revision history for this message
Vlad Brovko (brovka75) wrote :

affect to karmic too

Revision history for this message
Richard Cavell (richardcavell) wrote :

I also have this bug on 64-bit Karmic alpha 4.

Revision history for this message
GeorgeVita (8-launchpad-mhnyma-com) wrote :

Appeared on Karmic Alpha 4 + latest updates when the system was trying to upload a 'large' amount of data for 'bug': https://bugs.edge.launchpad.net/ubuntu/+source/acroread/+bug/367080

I am using 3G internet.

Revision history for this message
SolidSteel144 (milesrdz) wrote :

Karmic Alpha 6... :(

Revision history for this message
Possumus (possumus) wrote :

Karmic Alpha 6 here too

Revision history for this message
Th. Sievers (th-sievers) wrote :

9.10 beta amd64

Revision history for this message
Giovanni Battista Salvietti (giovannibattista-salvietti) wrote :

9.10 beta amd64 too

Revision history for this message
Fatih Bostancı (fbostanci) wrote :

9.10 beta i386 ..

Revision history for this message
Th. Sievers (th-sievers) wrote :

9.10 beta amd64

Revision history for this message
aquarius (tsolakg) wrote :

?

Revision history for this message
dotnokato (dotnokato) wrote :

9.10 beta AMD64 too.

Revision history for this message
Pete MacMillin (pete-macmillin) wrote :

9.10 beta amd64 again. Not sure what caused this. I was just using Synaptic to clear out some old kernels... don't know...

Peter Watts (watto-one)
Changed in apt-xapian-index (Ubuntu):
status: New → Confirmed
Revision history for this message
ova (cionca.ovidiu) wrote :

9.10 beta i386

Revision history for this message
Andros83 (mail-ceandrea) wrote :

9.10 beta 64bit too.

Revision history for this message
sultan (gerard-snoek) wrote :

9.10 beta i386

Changed in apt-xapian-index (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Kevin Brightwell (nava2) wrote :

9.10 beta, x64.

Apport tried to report the same bug.

Revision history for this message
N/A (unknownusertodelete) wrote :

9.10 rc i386

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Is an apport bug, should be enough information here, marking Triaged.

Changed in apt-xapian-index (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
nick TS (nick-thewlis-smith) wrote :

just trying to sort out problem with pulseaudio and browsing synaptic mgr

tags: added: metabug
Revision history for this message
Caue Rego (caue-rego) wrote :

I have no idea why the little icon appeared to me, on my Karmic live-cd.

But just after it crashed, I decided to try and run this same command using sudo, and it seems like it worked:

ubuntu@ubuntu:~$ sudo update-apt-xapian-index
Rebuilding Xapian index: done.

Revision history for this message
Thespian (jesse-mundis) wrote :

problem seen on aspire netbook running ubuntu netbook remix off a flash drive.

tags: added: bugpattern-needed
Revision history for this message
dino99 (9d9) wrote :

got this error on Lucid a2 updated:

have made in console: sudo apt-get install -f
(returned a warning about a known issue with wine 1.1.36)
then give this problem.

tags: added: bugpattern-written
removed: bugpattern-needed
Changed in apt-xapian-index (Ubuntu):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Revision history for this message
Roger Ward (rogerw) wrote :

also on 64bit Ubuntu 10.4 (dev/alpha branch)

Revision history for this message
Nicolas DERIVE (kalon33) wrote :

happens under latest lucid 32bit too.

Revision history for this message
Anthony Hook (anthonyhook) wrote :

Yeah, I just had this happen when I launched Synaptic on 10.04.

Revision history for this message
Roy (rdstrac) wrote :

Also on Intel Quad running 10.04 Alpha 3 during system update.

Revision history for this message
bancaldo (bancaldo-gmail) wrote :

got this error on Lucid a3

Revision history for this message
Oytun (oytunistrator) wrote :

got this error on ubuntu 10.04 alpha x86 lucid

Revision history for this message
timbuntu-nl (lauchpad-timbuntu) wrote :

got this error using ubuntu-10.04-beta1-dvd-amd64.iso

Revision history for this message
dino99 (9d9) wrote :

got again a crash into /var/crash

got these outputs into .xsession-errors immediatly after i installed the Lucid B1 updates, (nothing logged before ):

Nautilus-Share-Message: Called "net usershare info" but it failed: « net usershare » a retourné l'erreur 255 : net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Aucun fichier ou dossier de ce type
Please ask your system administrator to enable user sharing.

Traceback (most recent call last): File "/usr/sbin/update-apt-xapian-index", line 631, in <module>
    addons = readPlugins(PLUGINDIR, progress)
  File "/usr/sbin/update-apt-xapian-index", line 278, in readPlugins
    addon = Addon(file)
  File "/usr/sbin/update-apt-xapian-index", line 246, in __init__
    self.info = self.obj.info()
  File "/usr/share/apt-xapian-index/plugins/apttags.py", line 29, in info
    return dict(timestamp = os.path.getmtime(file))
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/var/cache/apt/pkgcache.bin'
checking for valid crashreport now
update-apt-xapian-index

Revision history for this message
dino99 (9d9) wrote :

new wine was installed (updated) too.

Revision history for this message
Mzombira (mzombira) wrote :

that affect 10.4 too :)

Revision history for this message
annerswat (werbung-annerswat) wrote :

I also have this bug on 64-bit Karmic Beta 1.

Revision history for this message
Franck (alci) wrote :

Another me too on Lucid beta (amd64). Happens when I open synpatic and click on 'Update'

Revision history for this message
PJO (lexicographer) wrote :

+1 on Lucid beta 1 (Intel).

May have been coincidental but I had just adjusted the size of the left hand panel;

The crash report is as per #33 up to OSError, then with

 OSError: [Errno 2] No such file or directory: '/var/cache/apt/pkgcache.bin'

"sudo update-apt-xapian-index"

yielded a message about a deprecated object, then

"The index /var/lib/apt-xapian-index is up to date"

Revision history for this message
msieloff (m-sieloff-web) wrote :

Me too on lucid beta 1.

Revision history for this message
goevolve (goevolve336) wrote :

Another on Lucid Beta 1 x86 - updating synaptic

Changed in apt-xapian-index (Ubuntu):
status: Triaged → Fix Committed
Changed in apt-xapian-index (Ubuntu):
status: Fix Committed → Fix Released
Gary M (garym)
Changed in apt-xapian-index (Ubuntu):
status: Fix Released → Confirmed
37 comments hidden view all 117 comments
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Upgrading from Lucid.

tags: added: regression-release
Changed in apt-xapian-index (Ubuntu):
status: Confirmed → Fix Released
tags: added: regression-potential
removed: regression-release
Revision history for this message
KrzysiekT (cytruss-xl) wrote :

Same here -Maverick beta ,using Synaptic

Revision history for this message
Danny Stieben (dmaxel) wrote :

Got this while on Maverick beta, using synaptic

Revision history for this message
Xvani (fredrile+launchpad) wrote :

WHY is this declined for Maverick? Clearly seems to be a problem.
I got it using software center, Maverick Beta.

Revision history for this message
Anita (anita90) wrote :

Maverick beta, using Synaptic

Revision history for this message
BenginM (sary) wrote :

This effect me on Maverick beta.

Revision history for this message
PatrickSCarrroll (patrickscarroll-hotmail) wrote :

This fix has been declined for Maverick? (re: Declined for Maverick by Sebastien Bacher)

This bug is occurring with the latest Maverick Beta!

Changed in apt-xapian-index (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
bnet (brian-nettles) wrote :

Error on Maverick when using software center.

$ apt-cache policy apt-xapian-index
apt-xapian-index:
  Installed: 0.38ubuntu1
  Candidate: 0.38ubuntu1

Revision history for this message
dhanhurley (dhanhurley) wrote :

ACER ASPIRE 9300 ....AMD Turion(TM) X2 Mobile Technology TL-50..........
I think it was installing MYTHTV that caused the problem.
Have UNINSTALLED MYTHTV.....i do not think this computer can handle much MULTIMEDIA
I ran the following and got a thumbs-up.......
# update-apt-xapian-index
The index /var/lib/apt-xapian-index is up to date
Ciao....Dhan

Revision history for this message
dhanhurley (dhanhurley) wrote :

Excuse me,forgot,
ACER ASPIRE 9300 ....AMD Turion(TM) X2 Mobile Technology TL-50........UBUNTU 10.10 MAVERICK

Revision history for this message
MaKo (uwimbux) wrote :

Error al abrir synaptics para instalar usb-modeswitch ubuntu 10.10 beta

Revision history for this message
Jonathan Yip (helkaluin) wrote :

Error occurs when using Synaptic or Software Center, but seemingly not if using apt-get.

Maverick Beta. Popcon is enabled.

Revision history for this message
stefaca (stefaca) wrote :

mavercik beta. bug when use update manager, sometimes synaptic

Revision history for this message
Erik Paixao (erikpaixao18-gmail) wrote :

mavercik beta. bug when use update manager, sometimes synaptic²

Revision history for this message
Ian Ross (iankross) wrote :

Meerkat Alpha 3
Doing updates

Revision history for this message
Tappy (robintapp) wrote :

Just got this one in meerkat

Revision history for this message
stefaca (stefaca) wrote :

asus 1201n, ion chip set, intel atom n330 cpu, MM10.10beta

Revision history for this message
dino99 (9d9) wrote :

finally, purging / reinstalling all the related installed xapian packages, have fixed this issue on my end: updated i386 maverick with apt-xapian-index 0.38ubuntu1

i've to say that a bunch of python files have been purged/reinstalled too, so i cant say if this issue is related to one of the python file or not. (might be old / wrong conf / settings to blame)

Revision history for this message
Colin Watson (cjwatson) wrote :

I see a few bits that Martin missed in his earlier change. I'll have another go at this.

Changed in apt-xapian-index (Ubuntu Maverick):
assignee: Canonical Foundations Team (canonical-foundations) → Colin Watson (cjwatson)
status: Confirmed → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

I have a fix. Just checking with Enrico on the right version numbering for getting this into Debian.

Changed in apt-xapian-index (Ubuntu Maverick):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-xapian-index - 0.39

---------------
apt-xapian-index (0.39) unstable; urgency=low

  [ Enrico Zini ]
  * Fixed tests on Ubuntu (Thanks Michael Vogt for the patch)
  * Added cataloged-times plugin by Michael Vogt
  * Handle multiple invocations of indexer via dbus
  * Described axi-cache in the package description

  [ Colin Watson ]
  * Fix more crashes when the Dir::Cache::pkgcache file doesn't exist, along
    the same lines as Martin Pitt's change in 0.38 (LP: #267330).
  * Use the new MSetItem attribute API, introduced in Xapian 1.0.0, rather
    than the sequence API which was removed in 1.1.0 (closes: #595916).
  * Create the XDG cache directory with appropriate permissions if it
    doesn't exist.
  * Set better NAME sections in manual pages.
 -- Colin Watson <email address hidden> Fri, 10 Sep 2010 12:15:25 +0000

Changed in apt-xapian-index (Ubuntu Maverick):
status: In Progress → Fix Released
Revision history for this message
T Kortehisto (kortehisto) wrote :

Just had this bug after I upgraded all the packages. Using 10.10 beta 64 bit.

Revision history for this message
Colin Watson (cjwatson) wrote :

@T Kortehisto: The fix reached the archive after you posted your message, so you can't possibly have installed it. Wait for apt-xapian-index 0.39 to be available on your mirror and then try again.

Revision history for this message
latinhawwk (latinhawk) wrote :

I just installed the fix and it crashed trying to update.

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 267330] Re: update-apt-xapian-index crashed with OSError in getmtime()

On Fri, Sep 10, 2010 at 02:19:08PM -0000, latinhawwk wrote:
> I just installed the fix and it crashed trying to update.

Please provide all the details you have of this crash. (It may be some
different bug.)

Revision history for this message
latinhawwk (latinhawk) wrote : Re: [Bug 267330] Re: update-apt-xapian-index crashed with OSError in getmtime()

  On 09/10/2010 11:38 AM, Colin Watson wrote:
> On Fri, Sep 10, 2010 at 02:19:08PM -0000, latinhawwk wrote:
>> I just installed the fix and it crashed trying to update.
> Please provide all the details you have of this crash. (It may be some
> different bug.)
>
I went through the update in Synaptic. It downloaded the new version.
When it was installing it all seemed fine. When I closed Synaptic an
error bubble was on the status bar saying that it had crashed.

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 267330] Re: update-apt-xapian-index crashed with OSError in getmtime()

On Fri, Sep 10, 2010 at 03:51:11PM -0000, latinhawwk wrote:
> I went through the update in Synaptic. It downloaded the new version.
> When it was installing it all seemed fine. When I closed Synaptic an
> error bubble was on the status bar saying that it had crashed.

That error bubble should offer you the opportunity to file a bug. Can
you please do so? If you've already dismissed it, there should still be
a .crash file for update-apt-xapian-index in /var/crash; you can run:

  ubuntu-bug /var/crash/_usr_sbin_update-apt-xapian-index.0.crash

(replace this with whatever the exact file name is) to file a bug, and
we can then determine whether that has anything to do with this bug.

Revision history for this message
latinhawwk (latinhawk) wrote : Re: [Bug 267330] Re: update-apt-xapian-index crashed with OSError in getmtime()

  On 09/10/2010 12:49 PM, Colin Watson wrote:
> On Fri, Sep 10, 2010 at 03:51:11PM -0000, latinhawwk wrote:
>> I went through the update in Synaptic. It downloaded the new version.
>> When it was installing it all seemed fine. When I closed Synaptic an
>> error bubble was on the status bar saying that it had crashed.
> That error bubble should offer you the opportunity to file a bug. Can
> you please do so? If you've already dismissed it, there should still be
> a .crash file for update-apt-xapian-index in /var/crash; you can run:
>
> ubuntu-bug /var/crash/_usr_sbin_update-apt-xapian-index.0.crash
>
> (replace this with whatever the exact file name is) to file a bug, and
> we can then determine whether that has anything to do with this bug.
>
I just filed a new bug report on this.

Revision history for this message
VF (fviktor) wrote :

It also happens on Ubuntu 10.10 beta (i386). It happened after rebooting, logging in to the upgraded system and starting up Synaptic.

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 267330] Re: update-apt-xapian-index crashed with OSError in getmtime()

Viktor: Yes, I uploaded the fix some days after the Ubuntu 10.10 beta
was released. (There's no need for further comments pointing out that
this is broken in the beta; if you encounter this problem, try
upgrading.)

Revision history for this message
Bernd Laser (bernd-laser) wrote :

I did upgrade today, but the bug is still there.

Revision history for this message
Colin Watson (cjwatson) wrote :

On Sat, Sep 11, 2010 at 03:17:35PM -0000, Bernd Laser wrote:
> I did upgrade today, but the bug is still there.

Are you absolutely sure that it's exactly the same bug? There are other
ways in which update-apt-xapian-index can fail, and not all of them are
this bug. You should have a crash file - I provided instructions for
filing it a few comments back.

Changed in apt-xapian-index:
assignee: nobody → Sergiy Filzhak (sergiy-filzhak)
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Noticed apport crash report in upper right hand side of the screen, clicked and was dup of this bug.

lsb_release -rd
Description: Ubuntu maverick (development branch)
Release: 10.10

apt-cache policy apt-xapian-index
apt-xapian-index:
  Installed: 0.39
  Candidate: 0.39
  Version table:
 *** 0.39 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Changed in apt-xapian-index (Ubuntu Maverick):
status: Fix Released → New
Revision history for this message
Colin Watson (cjwatson) wrote :

On Sun, Sep 12, 2010 at 07:32:11PM -0000, rusivi wrote:
> Noticed apport crash report in upper right hand side of the screen,
> clicked and was dup of this bug.

The dup detector is not being very helpful here - I need your actual
crash file, as I suspect it will be slightly different. Please attach
your crash file to this bug. You should find it in
/var/crash/_usr_sbin_update-apt-xapian-index.0.crash, or something very
similar. You may need to use root privileges to read it.

Revision history for this message
bnet (brian-nettles) wrote :

Title: update-apt-xapian-index crashed with OSError in getmtime()
Crash file attached

brian@DEXTER:~$ lsb_release -rd
Description: Ubuntu maverick (development branch)
Release: 10.10
brian@DEXTER:~$ apt-cache policy apt-xapian-index
apt-xapian-index:
  Installed: 0.39
  Candidate: 0.39
  Version table:
 *** 0.39 0
        500 http://archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status
brian@DEXTER:~$ uname -a
Linux DEXTER 2.6.35-20-generic #29-Ubuntu SMP Fri Sep 3 14:49:14 UTC 2010 i686 GNU/Linux

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Colin Watson:

Attached is the requested file.

Revision history for this message
Colin Watson (cjwatson) wrote :

@bnet: Thanks! The remainder of this isn't an apt-xapian-index bug -
it's a bug caused by an apt-xapian-index *plugin* shipped by
software-center. I've opened a new task and will provide a branch
fixing this shortly.

Changed in apt-xapian-index (Ubuntu Maverick):
status: New → Fix Released
Changed in software-center (Ubuntu Maverick):
status: New → Triaged
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → Medium
Revision history for this message
Colin Watson (cjwatson) wrote :

On Sun, Sep 12, 2010 at 09:10:28PM -0000, rusivi1 wrote:
> Attached is the requested file.

Thanks. Your crash is different from bnet's (since there are two buggy
plugins involved, both in software-center), but it will also be fixed by
the branch I just submitted there.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Thanks Colin! Your branch is merged to trunk.

Changed in software-center (Ubuntu Maverick):
status: Triaged → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

software-center (2.1.19) maverick; urgency=low

  [ Gary Lasker ]
  * softwarecenter/view/widgets/mkit.py:
    - fix crash during action_bar refresh (LP: #635044)
  * softwarecenter/backend/channel.py:
    - always display the partner channel, even if its
      source is not enabled (LP: #635003)
  * softwarecenter/db/application.py,
    softwarecenter/db/database.py,
    softwarecenter/view/appview.py,
    softwarecenter/view/softwarepane.py:
    - make StoreDatabase.get_appname return None if the
      name is not defined in the xapian doc
    - consolidate code to generate application name and
      summary for display in the UI to a single place
    - wire applist, appdetails and the navigation bar
      to use it (LP: #636004)

  [ Kiwinote ]
  * data/software-center.menu.in:
    - fix typo to now use applications-ocaml icon, thanks mpt (LP: #635732)
  * softwarecenter/backend/channel.py:
    - allow 'for purchase' to have an icon in non-English locales (LP: #636242)
  * softwarecenter/db/application.py:
    - try to open deb file, except on any sort of error (LP: #633379)
    - simplify when we use which warnings for deb files (LP: #635015)
    - reload pkg cache object and xapian doc if it turns out that the pkgname
      of a deb file is different than what we guessed on basis of the file name
  * softwarecenter/utils.py:
    - fix crash when desktop_file is None (LP: #635596)
  * softwarecenter/view/appdetailsview_gtk.py:
    - use the display name for app entry in 'where is it' (LP: #635464)
    - restore correct padding in addons status bar (LP: #625230)
  * minor tweaks to lp:~gary-lasker/software-center/title-summary-fixes
    - use installed state in status bar for reinstallable debs (LP: #635015)

  [ Matthew Paul Thomas ]
  * data/software-center.menu.in:
    - fix incorrect Category value in the xml for the Debugging
      subcategory of Developer Tools (LP: #538911)

  [ Colin Watson ]
  * Fix update-apt-xapian-index crashes when the Dir::Cache::pkgcache file
    doesn't exist (LP: #267330).

  [ Michael Vogt ]
  * softwarecenter/backend/aptd.py:
    - fix "reload()" in enable_channel() and only update the particular
      channel file
  * softwarecenter/distro/Ubuntu.py:
    - fix crash for icons loaded from extras.ubuntu.com
  * merged lp:~mmcg069/software-center/Bug635375 (LP: #635375)
  * merged lp:~mmcg069/software-center/tiny-pathbar-tweak
  * merged lp:~mmcg069/software-center/Bug625443 (LP: #625443)

 -- Michael Vogt <email address hidden> Tue, 14 Sep 2010 12:16:47 +0200

Changed in software-center (Ubuntu Maverick):
status: Fix Committed → Fix Released
Changed in apt-xapian-index:
status: New → Opinion
Displaying first 40 and last 40 comments. View all 117 comments or add a comment.