oldnoob Posted June 29, 2005 Report Share Posted June 29, 2005 I recently installed some dvd author software and now several things dont work including mcc. I am using Mandrake 10.1 Recently i went to install software from install software in the nice gui in kde, i chose a few programs as i like a choice, all downloaded but wouldnt install for reasons i cant remember. I tried a few times over a couple of days. So then i removed my urpmi sources and installed new sources from another mirror (japan), took ages, normal mirror australia, much quicker. Installed software from japan mirror, it downloaded and installed ok. Some of the downloaded programs would start but others wouldnt, which i didnt think much of. The next day my son tells me that his favourite game (frozen bubble) wont start, so i think i will remove some of the software i have just installed. So i go to Packaging/Remove Software, it wont start, now i start to worry! So i go to command line (SHAKY Ground for me) and try to start mcc from there [root@localhost everyone]# mcc Segmentation fault [root@localhost everyone]# So i google Segmentation fault and dont come up with much i understand, a couple of mentions about accessing memory. Can anyone please point me in the right direction to approach these problems. Because google mentioned memory, I dont know if this has anything to do with it but i thought 246404 used of my 256mb is a lot for konqueror and a mail program to be using [root@localhost everyone]# free total used free shared buffers cached Mem: 256376 246404 9972 0 4192 61260 -/+ buffers/cache: 180952 75424 Swap: 1630556 47340 1583216 Quote Link to comment Share on other sites More sharing options...
devries Posted June 29, 2005 Report Share Posted June 29, 2005 Segmentation fault means that some other program the MCC is depending on is missing/changed. Open a console, log in as root and type: urpmi.update -a (make sure you have all repositories). Then do: urpmi --auto-select. If that doesn't work use the repair script from the tips and trick forum on this board. Good luck. Quote Link to comment Share on other sites More sharing options...
oldnoob Posted June 30, 2005 Author Report Share Posted June 30, 2005 I tried urpmi.update -a Can't locate URPM.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i386-linux /us r/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_ perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5 /vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5 .8.1 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.5/urpm.pm l ine 16. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/urpm.pm li ne 16. Compilation failed in require at /usr/sbin/urpmi.update line 22. BEGIN failed--compilation aborted at /usr/sbin/urpmi.update line 22. and then i tried the repair script in tips and tricks [root@localhost everyone]# rm -f notonmirrors [root@localhost everyone]# rm -f missing_files.list [root@localhost everyone]# [root@localhost everyone]# rpm -Va --nodeps --nomd5 --noscripts | grep missin| grep -v "/dev/" | tee missing_files.list missing /usr/X11R6/lib/X11/fonts/Speedo/encodings.dir missing /usr/X11R6/lib/X11/fonts/TTF/encodings.dir missing /usr/X11R6/lib/X11/fonts/Type1/encodings.dir missing /boot/kernel.h-2.6.8 missing /usr/X11R6/lib/modules/extensions/libGLcore.a missing /usr/X11R6/lib/modules/extensions/libglx.a missing /usr/share/wallpapers/mandrake-linux missing /usr/java/jre1.5.0_02/lib/charsets.pack missing /usr/java/jre1.5.0_02/lib/deploy.pack missing /usr/java/jre1.5.0_02/lib/ext/localedata.pack missing /usr/java/jre1.5.0_02/lib/javaws.pack missing /usr/java/jre1.5.0_02/lib/jsse.pack missing /usr/java/jre1.5.0_02/lib/plugin.pack missing /usr/java/jre1.5.0_02/lib/rt.pack missing /var/run/ppp/resolv.conf missing /usr/X11R6/lib/libGL.so.1 missing /usr/X11R6/lib/libGL.so.1.2 missing /usr/lib/mozilla-1.7.2/chrome/chrome.rdf missing /usr/lib/mozilla-1.7.2/components/compreg.dat missing /usr/lib/mozilla-1.7.2/components/xpti.dat missing /usr/X11R6/lib/X11/fonts/75dpi/encodings.dir [root@localhost everyone]# TEST=$(rpm -qf $(awk '{print $NF}' missing_files.lt) | uniq) [root@localhost everyone]# [root@localhost everyone]# for name in $TEST > do > echo $name > GET=$(urpmq --sources $name 2>/dev/null) > if [ $GET ] > then > if [[ $name != XFree* ]] > then > wget $GET > else > echo "I won't fix $name because I always have problems doing at!" > fi > else > echo "$name does not exist on the mirrors!" bash: !": event not found > echo "$name" >> notonmirrors > fi > done xorg-x11-6.7.0-4.2.101mdk glibc-devel-2.3.3-23.1.101mdk xorg-x11-server-6.7.0-4.2.101mdk kdebase-common-3.2.3-134.8.101mdk jre-1.5.0_02-fcs ppp-2.4.2-8mdk libxorg-x11-6.7.0-4.2.101mdk mozilla-1.7.2-11mdk xorg-x11-75dpi-fonts-6.7.0-4.2.101mdk [root@localhost everyone]# [root@localhost everyone]# DIR=$(ls) [root@localhost everyone]# [root@localhost everyone]# for file in $DIR > do > if [[ $file == *.rpm ]] > then > rpm -ivh --replacepkgs $file > rm -f $file > fi > done [root@localhost everyone]# [root@localhost everyone]# exit 0 all i know is that there appears to be a lot of missing files, how would i go about replace/repairing them? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 30, 2005 Report Share Posted June 30, 2005 What urpmi sources do you have? Have you set these up: http://www.mandrivausers.org/easyurpmi/index.php Quote Link to comment Share on other sites More sharing options...
devries Posted June 30, 2005 Report Share Posted June 30, 2005 Can't locate URPM.pm in @INC means that urpm.pm is missing. With http://rpm.pbone.net/ you can find that it is in urpmi-4.5-29.1.101mdk.noarch.rpm so you need to install that package. If you can't install it with urpmi (very likely) download it, open a console, cd to the directory the rpm is located and type: rpm -ivh urpmi-4.5-29.1.101mdk.noarch.rpm Good luck. Quote Link to comment Share on other sites More sharing options...
oldnoob Posted July 1, 2005 Author Report Share Posted July 1, 2005 My probrems started when rpm´s from my local australian mirror would no longer install (previously everything worked great). I then did urpmi.removemedia -a and then chose japan as my mirror, then the rpm´s from the japan mirror would install-the same rpm´s that wouldn´t install from australian mirror. When i started to notice things not working i did urpmi.removemedia -a and chose australian mirror sites again (but I have a feeling that the names of the sites were different to when I initially set it all up). I tried installing urpmi-4.5-29.1.101mdk.noarch.rpm, but it came up with # rpm -ivh urpmi-4.5-29.1.101mdk.noarch.rpm Preparing... ########################################### [100%] package urpmi-4.5-29.1.101mdk is already installed and no, I couldn´t install with urpmi, it came up with same message Can't locate URPM.pm in @INC, etc, etc.... Can I somehow force it to install even though it says it is already installed? Quote Link to comment Share on other sites More sharing options...
arctic Posted July 1, 2005 Report Share Posted July 1, 2005 try with the force command: rpm --force ... in a console, type rpm --help or rpm --man for the full list of commands for rpm. ;) Quote Link to comment Share on other sites More sharing options...
oldnoob Posted July 1, 2005 Author Report Share Posted July 1, 2005 I had a look at the man urpmi, but i thought i should ask first before i cause more havok on my machine # rpm --force -ivh urpmi-4.5-29.1.101mdk.noarch.rpm Preparing... ########################################### [100%] 1:urpmi ########################################### [100%] Can't locate URPM.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i386-linux /usr/lib /perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/ vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 / usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendo r_perl .) at /usr/lib/perl5/vendor_perl/5.8.5/urpm.pm line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/urpm.pm line 16 . Compilation failed in require at /var/tmp/rpm-tmp.31413 line 1. BEGIN failed--compilation aborted at /var/tmp/rpm-tmp.31413 line 1. error: %post(urpmi-4.5-29.1.101mdk) scriptlet failed, exit status 2 Same error Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.