You are not logged in.

#1 2008-06-23 01:50:51

jcci
Member
From: China / Germany
Registered: 2007-06-10
Posts: 185

Mime Types Gone After System Update

Nautilus and PCmanfm can not recognise any file type. Everything is an executable and text file. Evince can not open any file after update.
/etc/mime.types was sliced down to a single line: application/x-java-jnlp-file jnlp
I recovered the file by installing the package mime.types but without success.The file is OK now, but even after restart the problem remains. This way Gnome is not really useful anymore. KDE works fine as long as KDE apps are used.

Offline

#2 2008-06-23 02:12:45

blueskies
Member
From: Santa Barbara, CA
Registered: 2007-12-25
Posts: 12

Re: Mime Types Gone After System Update

Yeah, noticed the same thing here.  Any easy way to recover MIME types?

Offline

#3 2008-06-23 02:25:12

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

Re: Mime Types Gone After System Update

just a guess...

pacman -S mime-types

or failing that...

pacman -Rn mime-types && pacman -S mime-types

Offline

#4 2008-06-23 02:35:19

blueskies
Member
From: Santa Barbara, CA
Registered: 2007-12-25
Posts: 12

Re: Mime Types Gone After System Update

emphire wrote:

just a guess...

pacman -S mime-types

or failing that...

pacman -Rn mime-types && pacman -S mime-types

Thanks, that did it.

Offline

#5 2008-06-23 02:43:31

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Re: Mime Types Gone After System Update

I downgraded the package shared-mime-info to version 0.23 and mimes are back. The new version (0.40) got problems

Offline

#6 2008-06-23 02:43:56

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: Mime Types Gone After System Update

Same problem here, but still not working. Removing and reinstalling the mimetypes package didn't work for me. It's like the file's not being read and it seems to not be writable as well. Changing the file's permissions is fruitless, too; update-desktop-database is not working either.

Any ideas, guys?

Offline

#7 2008-06-23 02:47:49

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: Mime Types Gone After System Update

Benzo wrote:

I downgraded the package shared-mime-info to version 0.23 and mimes are back. The new version (0.40) got problems

I'd kiss you in the mouth right now. Thanks! That did it.

Offline

#8 2008-06-23 02:48:00

blueskies
Member
From: Santa Barbara, CA
Registered: 2007-12-25
Posts: 12

Re: Mime Types Gone After System Update

When I just installed mime-types (pacman -S mime-types), /etc/mime.types returned and was intact, but file types were still messed up.  I had to remove it first (-Rn), then reinstall it (-S) like in post#3 before things worked.

Last edited by blueskies (2008-06-23 02:51:40)

Offline

#9 2008-06-23 02:54:32

Benzo
Member
From: Lima, Peru
Registered: 2008-05-25
Posts: 46

Re: Mime Types Gone After System Update

Onyros wrote:
Benzo wrote:

I downgraded the package shared-mime-info to version 0.23 and mimes are back. The new version (0.40) got problems

I'd kiss you in the mouth right now. Thanks! That did it.

lol you're welcome.

Last edited by Benzo (2008-06-23 03:02:22)

Offline

#10 2008-06-23 03:28:10

Misery
Member
Registered: 2008-04-10
Posts: 41

Re: Mime Types Gone After System Update

Offline

#11 2008-06-23 05:35:45

delor
Member
From: Poland
Registered: 2008-02-02
Posts: 62
Website

Re: Mime Types Gone After System Update

yaourt -S shared-mime-info 
resolving dependencies...
looking for inter-conflicts...

Targets: shared-mime-info-0.40-1  

Total Download Size:    0.00 MB
Total Installed Size:   3.38 MB

Proceed with installation? [Y/n] 
checking package integrity...
(1/1) checking for file conflicts                   [#####################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
shared-mime-info: /usr/share/mime/application/x-cdrdao-toc.xml exists in filesystem
Errors occurred, no packages were upgraded.

Is it related to mime-types problem?

Offline

#12 2008-06-23 05:52:03

jcci
Member
From: China / Germany
Registered: 2007-06-10
Posts: 185

Re: Mime Types Gone After System Update

Just the re-install procedure doesn't work for me. Unfortunately I do not have shared-mime-info version 0.23 in my pacman cache. Does anybody have the 86_64 package?

Offline

#13 2008-06-23 06:03:51

jcci
Member
From: China / Germany
Registered: 2007-06-10
Posts: 185

Re: Mime Types Gone After System Update

Found the file with the nice help of ArchLinux Mirrorcheck. big_smile One lousy mirror is not updated yet:
X86_64: http://www.mirrorservice.org/sites/ftp. … pkg.tar.gz
I686: http://www.mirrorservice.org/sites/ftp. … pkg.tar.gz

Last edited by jcci (2008-06-23 06:04:32)

Offline

#14 2008-06-23 08:19:35

stojic
Member
From: Zagreb, Croatia
Registered: 2008-02-24
Posts: 51

Re: Mime Types Gone After System Update

I had the same problem, fixed it by removing mime.cache in home dir:

rm $HOME/.local/share/mime/mime.cache

I also reinstalled mime-types while trying to fix it, as in post #3 (that didn't fix evince, but it did fix /etc/mime.types which lacked newlines).

EDIT: Removing mime.cache only fixed problem with evince not opening .pdf files, pcmanfm still shows wrong file types. Downgrading shared-mime-info fixes that here too.

Last edited by stojic (2008-06-23 08:32:20)

Offline

#15 2008-06-23 09:39:02

secretfox
Member
Registered: 2007-03-27
Posts: 11

Re: Mime Types Gone After System Update

jcci wrote:

Found the file with the nice help of ArchLinux Mirrorcheck. big_smile One lousy mirror is not updated yet:
X86_64: http://www.mirrorservice.org/sites/ftp. … pkg.tar.gz
I686: http://www.mirrorservice.org/sites/ftp. … pkg.tar.gz

These files are no longer available. You can remake shared-mime-info 0.23 package with this PKGBUILD http://repos.archlinux.org/viewvc.cgi/s … ra-x86_64/ .
Resolved for me.

Last edited by secretfox (2008-06-23 09:41:35)

Offline

#16 2008-06-23 11:40:28

qweac
Member
From: Norway
Registered: 2008-05-27
Posts: 44

Re: Mime Types Gone After System Update

I've never used pkgbuild before, so I can't make it work. I went to the adress "secretfox" posted and downloaded the thing. It gave me a file called PKGBUILD on my desktop. When I run makepkg I get this:

==> ERROR: Install scriptlet (shared-mime-info.install) does not exist.

Anyone who can help a newbie out? smile

Edit: I found a fix that worked in the bugreport mentioned earlier in this thread. smile

Last edited by qweac (2008-06-23 12:02:38)

Offline

#17 2008-06-23 12:29:08

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: Mime Types Gone After System Update

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#18 2008-06-23 13:18:27

secretfox
Member
Registered: 2007-03-27
Posts: 11

Re: Mime Types Gone After System Update

qweac wrote:

I've never used pkgbuild before, so I can't make it work. I went to the adress "secretfox" posted and downloaded the thing. It gave me a file called PKGBUILD on my desktop. When I run makepkg I get this:

==> ERROR: Install scriptlet (shared-mime-info.install) does not exist.

Anyone who can help a newbie out? smile

Edit: I found a fix that worked in the bugreport mentioned earlier in this thread. smile

Well! Download file PKGBUILD (http://repos.archlinux.org/viewvc.cgi/s … ision=3446) and shared-mime-info.install (http://repos.archlinux.org/viewvc.cgi/s … revision=1) and put them together in an empty directory.
Edit file PKGBUILD, change line "pkgver=0.40" to "pkgver=0.23" and save file.

Run "makepkg -g" from the same directory, it will download source package and show the md5 line (something like "md5sums=('xxxxxxxxxxxx.....')").
Substitute the md5 line in PKGBUILD with the previous shown by makepkg.
Now run "makepkg" command in the same directory and wait package creation.

If compilation will be ok you'll obtain a file named "shared-mime-info-0.23-1-i686.pkg.tar.gz".
Run command "pacman -U shared-mime-info-0.23-1-i686.pkg.tar.gz" as root.

Check if mime type is ok now. It would be!
I hope it's useful. Bye smile

Offline

#19 2008-06-23 14:05:01

biloky
Member
Registered: 2008-03-02
Posts: 61

Re: Mime Types Gone After System Update

JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

That did it for me! Thanks. smile

Offline

#20 2008-06-23 14:30:20

rocktorrentz
Member
From: Southampton, England
Registered: 2007-08-05
Posts: 141

Re: Mime Types Gone After System Update

biloky wrote:
JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

That did it for me! Thanks. smile

Thanks big_smile

Offline

#21 2008-06-23 14:42:53

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mime Types Gone After System Update

Downgrading worked for me. These are the original files for shared-mime-inf 0.23:

PKGBUILD

# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=shared-mime-info
pkgver=0.23
pkgrel=1
pkgdesc="Freedesktop.org Shared MIME Info"
arch=(i686 x86_64)
license=('GPL')
depends=('libxml2' 'glib2')
makedepends=('perlxml' 'pkgconfig')
install=shared-mime-info.install
url="http://freedesktop.org/Software/shared-mime-info"
source=(http://freedesktop.org/~hadess/${pkgname}-${pkgver}.tar.bz2)
md5sums=('3120a720f6a94881614b533f37a7671f')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=${startdir}/pkg install
  rm -f ${startdir}/pkg/usr/share/mime/mime.cache
}

shared-mime-info.install

post_install() {
  update-mime-database /usr/share/mime > /dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

op=$1
shift

$op $*

Last edited by skottish (2008-06-23 14:43:24)

Offline

#22 2008-06-23 15:33:50

VuDu
Member
Registered: 2007-05-11
Posts: 95

Re: Mime Types Gone After System Update

JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

Thanks! Worked here!

I tried installing/reinstalling mime-types and it didn't work... but I didn't even have it installed in the first place.

Offline

#23 2008-06-24 00:32:22

jcci
Member
From: China / Germany
Registered: 2007-06-10
Posts: 185

Re: Mime Types Gone After System Update

JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

Sorry, it didn't work for me. Just downgrading helps so far.
I tried the above links for the package just now and the files were still avaialable (see posting time).
However, dear Arch devs, please fix it! Thanks!

Offline

#24 2008-06-24 01:25:38

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Mime Types Gone After System Update

Please consider filing a bug report.

Offline

#25 2008-06-24 02:27:26

metromini
Member
From: Jakarta, Indonesia
Registered: 2005-08-02
Posts: 39

Re: Mime Types Gone After System Update

JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

Work for me too... simple solution. Thank you!

Offline

Board footer

Powered by FluxBB