LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-19-2007, 02:43 PM   #1
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
/etc/mailcap formatting error


Whenever I perform a major system update using apt-get, I have noticed the following error (or a variant thereof) appearing during the package configuration phase:

Code:
Error: '/etc/mailcap' is not in required format -- not updated
       Restore from backup or delete and re-install mime-support package
I attempted to reinstall the mime-support package using apt-get --reinstall install mime-support but got the same error message. Uninstalling mime-support would delete most of my window manager, office tools and other major system programs, so is there a less invasive way of fixing this problem?
 
Old 02-20-2007, 09:35 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Backup /etc/mailcap, download and unpack "mime-support" package, replace /etc/mailcap?
 
Old 02-20-2007, 11:57 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Yep, and
If you have done apt-get --reinstall install mime-support
Then you have the package in /var/cache/apt/archives/
so:
Code:
cd /tmp
mkdir mime
cd mime
dpkg -x /var/cache/apt/archives/mime-support*.deb
as root:
cp /tmp/etc/mailcap /etc/mailcap
edit: not using ar but dpkg

Last edited by nx5000; 02-21-2007 at 04:33 AM.
 
Old 02-21-2007, 11:49 AM   #4
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
Question

Quote:
Originally Posted by nx5000
Yep, and
If you have done apt-get --reinstall install mime-support
Then you have the package in /var/cache/apt/archives/
so:
Code:
cd /tmp
mkdir mime
cd mime
dpkg -x /var/cache/apt/archives/mime-support*.deb
as root:
cp /tmp/etc/mailcap /etc/mailcap
edit: not using ar but dpkg
mime-support-3.39-1 doesn't have a mailcap file - it has mailcap.order; does this file need to be postprocessed?
 
Old 02-21-2007, 12:09 PM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
True.

I looked at it and yes, you have to put the /etc/mailcap.order and then launch as root:
update-mime
 
Old 02-22-2007, 02:42 AM   #6
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by nx5000
True.

I looked at it and yes, you have to put the /etc/mailcap.order and then launch as root:
update-mime
I tried that, and got the same error message as above.
 
Old 02-22-2007, 07:55 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Arggg!
Do you have a /etc/mime-type ?
You get the error when you use update-mime or just after when using apt-get or anything?

Did update-mime recreate the /etc/mailcap?

Otherwise I send you my mailcap
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rox and mailcap merchtemeagle Slackware 0 06-01-2006 07:28 PM
mime/mailcap cli launcher? gunnix Linux - Software 1 10-19-2005 02:11 PM
file mailcap prob... khuti2005 Linux - Newbie 0 10-13-2005 07:21 AM
/etc/mailcap not there nomad438 Slackware 3 07-05-2004 03:25 PM
Error: Formatting of failed? snowboard_guy Linux - Newbie 3 05-21-2004 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration