Author Topic: Problem with mime magic  (Read 2320 times)

aarons

  • Newbie
  • *
  • Posts: 7
    • View Profile
Problem with mime magic
« on: November 07, 2004, 01:17:59 pm »
I don't know what I did to break this, but all of the sudden file returns error:

/etc#file fstab
fstab: file: invalid type 0 in mconvert().

and tar:

/mnt/card/Documents/Install_Files#tar xzOf zuc_1.1_arm.ipk ./data.tar.gz
tar: invalid compressed data--format violated

I'm sure these aren't the only two porgrams affected, but the only two I've noticed so far.

Anyway, where is the mime magic file on these?  I'm running a zaurus sl6000 with the original rom.

Thanks.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Problem with mime magic
« Reply #1 on: November 07, 2004, 07:00:27 pm »
The first problem can be fixed by
Code: [Select]
sudo file -C -m /usr/share/magic
sudo file -C -m /usr/share/magic.mime

The second may be realted to the first, but most probably you are trying to install an oe/oz/opie formated ipk (they use ar instead or gzip to compress the tarball) - search the forums you'll find buckets of info on this as well as how to convert them

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

aarons

  • Newbie
  • *
  • Posts: 7
    • View Profile
Problem with mime magic
« Reply #2 on: November 07, 2004, 07:54:14 pm »
Excellent.  The first problem is solved, and I'll search on the second.  Thanks.

-Aaron