shared-mime-info-0.7-ubuntu1 update is broken

Bug #444962 reported by Steffen Röcker
454
This bug affects 83 people
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Fix Released
High
Unassigned
Nominated for Karmic by Xhacker Liu
shared-mime-info (Ubuntu)
Invalid
High
Unassigned
Nominated for Karmic by Xhacker Liu

Bug Description

Binary package hint: shared-mime-info

After updating to shared-mime-info 0.7-ubuntu1 nautilus tries to open every file with gedit.
picture preview and .desktop files are don't work either.

ProblemType: Bug
Architecture: i386
Date: Wed Oct 7 00:17:33 2009
DistroRelease: Ubuntu 9.10
Package: shared-mime-info 0.70-0ubuntu1
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 LANGUAGE=de_DE.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-12.39-generic
SourcePackage: shared-mime-info
Uname: Linux 2.6.31-12-generic i686

Related branches

Revision history for this message
Steffen Röcker (sroecker) wrote :
Revision history for this message
Steffen Röcker (sroecker) wrote :

downgraded to 0.60-2 and everything works again as it should.

Colin Watson (cjwatson)
tags: added: regression-potential
Changed in shared-mime-info (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathieu Marquer (slasher-fun) wrote :

Affects me as well, same behavior, same workaround --> marking as confirmed.

Changed in shared-mime-info (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
importance: Undecided → High
Revision history for this message
Micah Gersten (micahg) wrote :

This has the potential to affect a lot of users, so I am setting this to high.

Changed in shared-mime-info (Ubuntu):
assignee: Robert Ancell (robert-ancell) → nobody
Revision history for this message
Sebastien Bacher (seb128) wrote :

not confirming the issue there, did you try restarting nautilus? do you have any error in .xsession-errors?

Revision history for this message
Tim Wright (timw) wrote :

I don't know if this is related. I am hitting this, and I also notice that Pan (the newsreader) is no longer rendering image/jpeg mime-type articles in the preview/data window. If that doesn't go away when this is fixed, I will log a separate bug.

Revision history for this message
Sebastien Bacher (seb128) wrote :

trying in a guest session there is no such issue either

Revision history for this message
William Chambers (bioselement) wrote :

Sebastien Bacher, I've restarted 4 times going from a complete shutdown back into ubuntu and the issue remains. After downgrading it was working without a reboot. Perhaps it's related to a different package? I posted the packages I installed since my last restart (16-ish hours) over on the ubuntu forums if that's helpful to you. http://ubuntuforums.org/showpost.php?p=8063696&postcount=6

Revision history for this message
Daniel Newman (dmnewman) wrote :

Same problem here, nautilus treats every file type as a text file.

But, it's not only nautilus is at fault. Using a terminal to open a pdf file with evince gives the error message:

File type plain text document (text/plain) is not supported.

However, using eog from a terminal to open a png file works normally, although the same file can't be opened through nautllus.

File-roller also works normally from a terminal, but fails through nautilus.

Revision history for this message
pablomme (pablomme) wrote :

With the same batch of updates, evince now refuses to open PDFs.

Revision history for this message
nuovodna (nuovodna) wrote :

Confirmed. Any files seen like a "simple text file"

Revision history for this message
Dave (kn8aw) wrote :

This bug affects only the user. Opening a file while in root nautilus works as it should.

Revision history for this message
praveenmarkandu (praveenmarkandu) wrote :

may i add, that another side effect/bug to this package is that icons become blury and pixelated when stretched on the desktop

Changed in shared-mime-info (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
milestone: none → ubuntu-9.10
Revision history for this message
mits kayaba (mitskayaba) wrote :

Same problem encountered here..downgrade to 0.60-2 worked without reboot

Revision history for this message
Jacques L. (asdfgerv) wrote :

The command rm -rf ~/.local/share/mime/ fixes it.
This looks like a conflict between the system's and the user's mime database.

Revision history for this message
ramses delgado (ramsesdm) wrote :

thanks jacques, it works for me.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

The issue appears to be the binary cache format (~/.local/share/mime/mime.cache) has changed from version 1.1 to 1.2 but what is reading this file is treating it as in 1.1 format. You can update this cache file by running:
$ update-mime-database.real -V ~/.local/share/mime/

Revision history for this message
Delan Azabani (azabani) wrote :

Should we make another revision of this version (0ubuntu2?) that triggers a cache removal/update automatically during the package update so users don't have the problem?

Revision history for this message
Robert Ancell (robert-ancell) wrote :

We need to find what is reading the cache wrong - we either need to fix that or revert to the old format

Revision history for this message
Robert Ancell (robert-ancell) wrote :
Changed in glib2.0 (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
Robert Ancell (robert-ancell) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks Robert for fixing that quickly!

Changed in shared-mime-info (Ubuntu):
status: Confirmed → Invalid
Changed in glib2.0 (Ubuntu):
milestone: none → ubuntu-9.10
Changed in shared-mime-info (Ubuntu):
milestone: ubuntu-9.10 → none
assignee: Robert Ancell (robert-ancell) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.22.1-0ubuntu2

---------------
glib2.0 (2.22.1-0ubuntu2) karmic; urgency=low

  * debian/patches/10_xdgmime_cache.patch:
    - Support xdg mime cache format 1.2 (LP: #444962)

 -- Robert Ancell <email address hidden> Wed, 07 Oct 2009 15:34:48 +1100

Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Daan Davidsz (daandavidsz) wrote :

For me neither deleting the mime directory nor the update-mime-database.real command fixes my problems. So I'm still here with everything text/plain. Will an update eventually fix this?

Revision history for this message
D J Eddyshaw (david-eddyshaw) wrote :

It was the same for me; however downgrading to 0.60-2 works.

Find shared-mime-info_0.60-2_i386.deb, if it's not still around eg

http://ftp.us.debian.org/debian/pool/main/s/shared-mime-info/shared-mime-info_0.60-2_i386.deb

and do

sudo dpkg -i shared-mime-info_0.60-2_i386.deb

Revision history for this message
D J Eddyshaw (david-eddyshaw) wrote :

It's all fine now: just apply the latest upgrades, which include the glib2.0 fix

Revision history for this message
Bend3r (aitorher-gmail) wrote :

I have just upgraded and nothing was fixed, but this command worked:

update-mime-database.real -V ~/.local/share/mime/

Revision history for this message
Hadrien Mary (hadim) wrote : [Bug 444962] Re: shared-mime-info-0.7-ubuntu1 update is broken

As i see in previous message, i removed .local/share/mime/ so
update-mime-database.real -V ~/.local/share/mime/ dont work for me and
the recent update didnt fix anything...so i have to downgrade
shared-mime.... any other tricks to recreate .local/share/mime ???

Thank You

Revision history for this message
pablomme (pablomme) wrote :

Bend3r's comment applies to me too. Perhaps a restart would have worked too, but I didn't get to try it. Could anyone verify whether restarting after the glib upgrade fixes things?

Revision history for this message
Chih-Hsyuan Ho (chih) wrote :

Please make sure that your libglib2.0-0 is of 2.22.1-0ubuntu2. I checked it minutes ago and the update has not yet been pushed until now.

Revision history for this message
Nikolai Mouraviev (kolyamouraviev) wrote :

Can confirm this bug from the previous round of updates.

Temp Fix:
sudo update-mime-database /usr/share/mime
sudo update-desktop-database

and Nautilus restart.

Revision history for this message
Omer Barlas (omer-barlas) wrote :

Same here on AMD64, also no updates on libglib2.0.0 yet. Also update-mime-database and other tricks doest not seem to solve the problem after many reboots.

Revision history for this message
Chih-Hsyuan Ho (chih) wrote :

On AMD64, during the latest round of updates, libglib2.0-0 has been updated to 2.22.1-0ubuntu2 and the reported issue is verified to be fixed.

Revision history for this message
Hadrien Mary (hadim) wrote :

All is fine now with previous update. Just need a reboot to fix it and
work great.

I think you can put this bug to fixed.

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.