CentOS 5 :: Run Software Update And It Can't Find Magic.mime / Where Does It Need To Be?
Aug 3, 2009
This should be simple. I am trying to run the software update. It goes through and finds the dependencies,
but comes back and says it can't find magic.mime. I see it in two locations under /usr/share. Where does it
need to be?
I hoped to use php-5.2 while keeping close the the centos packages (no external repositories).So I tried the packages from http://dev.centos.org/centos/5/testing/i386/RPMS/ .These packages seem to be compiled without mime-magic support (--without-mime-magic).The previous stable php-5.1.6 packages had this mime-magic support enabled.
I would like to know if there exists an article explaining how update-alternatives integrates with Freedesktop.org MIME. How do these systems coexist? How do they cooperate? Lately KDE and GNOME apps seemed to agree on default applications more and more; it seems there still exists an ordering problem [URL] , section Default application ordering), but things are generally working.
However, now I notice that some applications (which I've known for a long time to not be very Linux desktop friendly, I'm looking at Mozilla first, but this time I can't blame them without reason) use some totally different system, Alternatives. The example that comes to mind now is Icedove. Is there going to be a consensus on the default system or we'le have different applications using different systems?
I'm still a newbie when it comes to *nixes so these might be easy for some of you here is my problem I tried installing MIME::Lite using CPAN but it always produces an error so it doesn't continue, any other way to install it...
I am experiencing issues when installing a software package, receiving the following error codes within .../install/logs/log.txt
"percent complete: 98%" "...../JDK/jre.pak/repository/package.java.jre/java/jre/lib/desktop/icons/HighContrastInverse/16x16/mimetypes/gnome-mime-application-x-java-archive.png (No such file or directory) "The file java/jre/lib/desktop/icons/HighContrastInverse/16x16/mimetypes/gnome-mime-application-x-java-archive.png could not be replaced"
From looking in the specified directory I can see that this file does not exist, however I am unable to simply create or copy a file with the required name to resolve this issue. Is this a known error, or is my install package simply missing the needed files; even though I managed to successfully install this package a few days earlier onto the same system.
This has to be the sixth time I am going to have to reinstall Ubuntu (Can't get enough of that Linux greatness) in the past 6 months. I just don't understand what exactly is wrong, I don't install anything extra (but the ubuntu restricted extras) yet updates that ask me to reboot will take me to a GRUB command line screen and trying to boot through the command line interface gives me an, "Invalid Magic Number", error.
There should be an official tool for when problems like this come up, so that users like me can easily move their files off their HDD before reinstalling. I didn't come here to rant but, does anyone know what may be causing this everytime, how it can be avoided maybe even how to deal with the Magic Number error and boot in (I wouldn't mind typing in the commands every time BTW)?
My system Hp Compaq 6730s 2.0Ghz 575 Celeron 4GB RAM Intel X4500MHD Broadcom 802.11b/g
i wanted to see the red hat side of things and do some virtualization with CentOS, so i am trying to dual boot ubuntu 10.04 LTS and CentOS 5.5. the machine is a laptop, toshiba A100 series. what I did was to create the following partitioning scheme via Ubuntu LiveCd
Code: Device Boot Start End Blocks Id System /dev/sda1 * 1 19457 156288290+ 5 Extended /dev/sda5 1 2103 16892284+ 83 Linux /dev/sda6 2104 9988 63336231 83 Linux /dev/sda7 9995 12623 21117411 83 Linux /dev/sda8 12624 18800 49616721 83 Linux /dev/sda9 18801 19457 5277321 82 Linux swap / Solaris
created an extended partition and in there have made sda5 and sda6 as / and home for ubuntu and sda7 and sda8 as / and home for CentOS. and sda9 as swap. I installed ubuntu first and then installed CentOS with no bootloader. Run sudo update-grub through ubuntu and now i have both Ubuntu and CentOS available. But when i select CentOS, i have an error which reads "invalid magic number".
I have grub2 installed, haven't downgraded or done anything to it and the ubuntu install is fresh, one week since i updated to 10.04 from scratch. I have found much contradictory stuff on google, but not something that provides a definite solution and also this post but the second command provided in the solution is one i cannot understand very well and it doesn't seem to work. what I am doing wrong here and how to make this work. I would prefer to do things via Ubuntu since debian stuff is what i am comfortable with and i am installing CentOS to learn not to do work on it.
after update to kernel-2.6.18-164.el5 one of the 2 NIC's of my machine are only found at 1 of 4 reboots. Using the old one kernel-2.6.18-128.7.1.el5 all is fine. This are the to NIC's:
Normally Update Manager always finds the update to the next version of Ubuntu. It still hasn't given me any notion whatoever. I allready changed the settings from regular to LTS, but nothing changes. There are updates to the kernel, but I cannot download them, so I'm kinda stuck here.
On two Centos5 servers, yum gives a segmentation fault error when trying 'yum update' or 'yum check-update' after running 'yum clean' :
[Code]....
The error is the same for the other computer except while attempting to update the rpmforge repository. Nothing has really changed on the servers in some time and 'yum update' worked fine on each yesterday and I have no idea why they would both suddenly fail!
For some reason, when I do a yum check-update I get a list of no changed packages to install. If I follow this immediately with a yum update then it tries to install drbd83. I've tried a yum clean all and repeated the commands and get the same thing. This happens on both the machines that are set up to use DRBD. Just seems weird and I don't understand. Anyone got an explanation?
I have a error when i want to update my system via YUMI execute the next command.sh@ yum -y updateYou could try using --skip-broken to work around the problemYou could try running:package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigestThe program package-cleanup is found in the yum-utils package.
I installed faenza icon theme and would like to have for my pdf docs only mime type (included in mime types/ icon theme), not a thumbnail. Is there some easy way to change this system wide? I tried this and similar suggestions found on net, but no go: http://ubuntuforums.org/showthread.php?t=770142
I just upgraded by box from Fedora Core 9 to Centos 5.2. Finally!I have a 500GB SATA drive, it's partitioned into three equal size slices, hda1 through 3. The old Fedora was on hda1, I installed the new Centos on hda3. I instructed the installer to write the MBR to /dev/hda, not /dev/hda3. Fdisk says I have sector 0 unused.First, the system wouldn't boot - it just looped through the BIOS, rebooting over and over again. The BIOS sees the disk, but it never loaded Grub. I tried re-running grub-install /dev/hda, and not I get a Grub Error 17 after stage 1.5 loads.
I can boot from rescue OK, the grub.conf man menu.lst look fine, it's pointing to "root (hd0,2)". It's either the BIOS that can't find the MBR, or the MBR can't find Grub.When I looked at the disk with fdisk after the install, hda1 was still marked bootable, hda3 was not, so I swapped bootable flags but that has not made a difference. I also appended the new grub to the old grub thinking I could get the MBR (if it is there) to load the old grub and thence find the new Centos, but that didn't work either.Mobo is an old Shuttle AK35.Any ideas? Did I mess up by not telling the system to put the MBR on /dev/hda3? Is there a way to fix this without reinstalling?
I've installed the CentOS 5.1 from a CD only yesterday and everything is working fine except Mysql that came from the CD distribution. I have detected that my system has mysql.
[root@onion /]# rpm -qa |grep mysql mysql-5.0.22-2.1.0.1 [root@onion /]# find . -name mysql ./usr/bin/mysql ./usr/share/mysql ./usr/lib/mysql
However I'm unable to find mysqld, safe_mysqld or mysql_install_db in my filesysytem.
associate html attachment in emails with Firefox and tried to edit mime type extensions in Thunderbird through Edit/Preferences/Attachments/Download Actions/View & Edit Actions but it is empty and there is no way to add extensions there. Is there a different way to do it? I tried to choose Firefox while opening the attachment. It works but does not remember it for further actions.
Files downloaded with Firefox, Chromium, Miro etc. will not open correctly. Clicking to open the file (e.g. jpg or ogg) should result in the file opening with eog or audacious. Results - from Nautilus this works correctly, however from other applications the result is a Nautilus window. Placing a file 'test.torrent' on the desktop and using terminal to do
Code: gnome-open test.torrent or Code: xdg-open test.torrent results in the same behaviour. However, simply clicking the file in Nautilus opens it in Deluge (correct behaviour).
I have a user that is reporting the following error on a bounced message:
Quote:
smtp;554 5.6.1 Body type not supported by Remote Host
He is forwarding emails from his exchange server to a recipient in Germany relaying through our smtp server using Surgemail as the MTA.
He called a senior tech specialist at Microsoft to get help thinking the problem was on his end (exchange server). According to this "specialist", he said the problem was that our smtp server was not advertising 8BitMIME in its 250 statement. I tested this myself by log in on to the smtp server and doing typing the following:
As you can see, 250-8BITMIME is not listed here. From the bit of research I made, I found that most MTAs send this by default. Is it possible that the characters from the German language are causing this problem?
NOTE: This problem did not exist or was never reported until now. No one has made any changes on any settings on the server.
I need to launch programs in my program and the program can be a script, a Linux executable or even a Windows executable. The first thing i tried is to use xdg-open from my program, but i can't pass arguments to it, otherwise it would have worked perfectly. Is there maybe a way to determine which program is set as default according to the mime-type of the program i want to launch? I also tried kfmclient and gnome-open, they don't allow arguments either.
Is it possible to list/find/compare the program versions on a Centos system, against Redhat/Centos Errata/Security/Bug lists? Sort of looking for a way to make sure that all the packages on a system are ok, and not a security risk-- Without having to update every package. A pseudo code, in my mind is:
After entering an aptitude command: Processing triggers for shared-mime-info ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' Unknown media type in type 'fonts/package' Unknown media type in type 'interface/x-winamp-skin'
Note that '/usr/share' is not in the search path set by the XDG_DATA_HOME and XDG_DATA_DIRS environment variables, so applications may not be able to find it until you set them. The directories currently searched are: - /root/.local/share - /opt/kde/share - /opt/kde/share - Processing triggers for hicolor-icon-theme ...
How can I change the MIME/application associations in KDE so that Firefox and other GTK apps see these settings. Right now in Firefox, PDFs open in GIMP and directories in easytag.
I'm trying on getting the MIME types setup correctly for Apache/MediaWiki. I think I've modified every config file known to man to no avail. Here's some info on what I've got going on. I'm trying to get the Office 2007 MIME types configured for MediaWiki 1.14 so that we can upload/download the files. Out of frustration/lack of need I went the less secure route and I modified the LocalSettings.php config file to disable MIME type verification for uploads.
Code: $wgVerifyMimeType = false;
This works great for the uploads, and I can upload .DOCX, .XLSX, and .PPTX all day long, however when downloading them, they download as a .ZIP file with all the XML info inside of it. No biggie for me personally as I can just rename .ZIP to .DOCX and it works fine, however for the average user it's not going to fly. So, I figured that MIME types would be the source of my pain and started doing some research.
I have modified the following config files to include the MIME types listed below. /etc/mime.types /var/www/.htaccess (created to try and force them) /var/www/mediawiki-1.14.0/.htaccess (created to try and force them) /var/www/mediawiki-1.14.0/includes/mime.types
Code: application/vnd.ms-word.document.macroEnabled.12 .docm application/vnd.openxmlformats-officedocument.wordprocessingml.document docx application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx application/vnd.ms-powerpoint.template.macroEnabled.12 potm application/vnd.openxmlformats-officedocument.presentationml.template potx application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm application/vnd.openxmlformats-officedocument.presentationml.presentation pptx application/vnd.ms-excel.addin.macroEnabled.12 xlam application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb application/vnd.ms-excel.sheet.macroEnabled.12 xlsm application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx application/vnd.ms-excel.template.macroEnabled.12 xltm application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx It doesn't seem to matter where I put the code, I can't get the MIME types to register with Apache/MediaWiki.
I don't have wine installed. But I use teamviewer [URL] to remote support my friends. Teamviewer provide an "linux version" using wine wrapper. Every time I run it, some mime types such as .jpg, .wmv, .txt, .ini, v.v... was set to be handle by a "A Wine application". So, nothing happen when I open those file, I have to reset their handler to proper linux application.
1. How can I completely remove those "A wine application" handler? Is there a tool, or a settings applet in gnome that allow me to do that. Currently, I have to find those files in nautilus, right click and change the open with settings, that's frustrated.
2. Can I lock mime type handling settings from being changed by some application? Or even lock it from any changed at all? I don't mind remove the write permission from some settings file, I won't likely to change my current mime type handling settings in near future.