LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2006, 10:34 AM   #1
Lord of the Board
LQ Newbie
 
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Rep: Reputation: Disabled
deleted directory- Manual deinstallation


I have installed dkms-ati-8.28.0.1.20060plf. As a newbie, I erased the corresponding folder and then performed a system upgrade, then installed the newer driver. I think this is a problem since it somehow could affect my graphics configuration.
Now I have the 8.29 version and the 8.28 version won't install (again) because of not met requirements due to the upgrade. During my startup I get an error telling me that in /etc/rc5.d/S04dkms something is looking for /var/lib/dkms/ati/8.28.8.0.1/source/20060plf/dkms.conf
. Indeed that can't be found, I deleted the folder these links point to.
Hence I have to deinstall that programm manually (in my Mandriva control center the uninstall option doesn't work either). I'd try to erase some config lines pointing to the 8.28 version but with mcedit /etc/rc5.d or mcedit the S04dkms I don't see any reference to that software. I suppose it's somewhere compiled into the kernel. Would compiling a new kernel help deinstalling the software, maybe with extraoptions (already have the newest kernel on my Pc)?
I'm a bit confused, what to do now, thanks in advance!
 
Old 10-24-2006, 10:28 AM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I'm not a Mandriva guy, but it would seem you should just delete the file /etc/rc5.d/S04dkms as root. Also, before deleting it, check if it is a link to another location. On Debian for example, all the files in /etc/rcX.d are symbolic links pointing to files in /etc/init.d/. So first do
Code:
ls -al /etc/rc5.d/S04dkms
then see if it is a file or a link. If it is a link, delete both the file /etc/rc5.d/S04dkms and whatever it is pointing at. When that is done, the errors should stop, and installing the 8.29 version will create a new /etc/rc5.d/S04dkms that points at the new version.

Peace,
JimBass
 
Old 10-29-2006, 06:08 AM   #3
Lord of the Board
LQ Newbie
 
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thank you! I essentially don't know what I was doing but following your instructions did help and the error disappeared.

But now it's still somehow included in the tree of installed software:

rpm -e dkms-ati-8.28*

Error! There are no instances of module: ati
8.28.8-0.1.20060plf located in the DKMS tree.
Fehler: %preun(dkms-ati-8.28.8-0.1.20060plf.i586) Skriptlet fehlgeschlagen, Beenden-Status 3

Don't know if this bothers?
 
Old 10-29-2006, 01:50 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The /etc/rcX.d are startup scripts for a given runlevel of your OS, where X is the runlevel. Since you boot into graphical mode, that usually happens in runlevel 5 on most distros. So in your specific case, the script in /etc/rc5.d/S04dkms was starting the S04dkms program everytime the system booted.

I had you do ls -al /etc/rc5.d/S04dkms because sometimes that is an individual file, and sometimes it is a symbolic link. If it was a file, it would give information like
Code:
-rwxr-xr-x   1 root root 2518 2006-09-12 10:44 ifupdown
and if it was a symbolic link, it would look like:
lrwxrwxrwx   1 root root   16 2006-07-16 17:37 S20vsftpd -> ../init.d/vsftpd
The -> symbol shows the file the link is pointing at. By killing the S04dkms file, it won't start. Another method is to turn the S from start into K for kill. Had you not erased the file with the rm command, you could change it to K04dkms, and then it wouldn't start, but might still throw errors. By erasing the S file, you kill the startup link to the executable file, so it doesn't try to start, and doesn't cause errors.

As I mentioned before, I don't use Mandriva, nor any of the other rpm based distros. There is a command to force the uninstallation of an rpm file, and it is probably somedthing like rpm -force-removal or rpm -force-uninstall (filename). If you check the man rpm page, you can find the force removal command, and executing it with the bad name after it shjould clear up the mistake in the tree of installed software. You could also simply install the new version to be installed, which should clear up the old one, or just ignore it, because it isn't a problem. You'd just have to remember that your machine thinks it has the program installed when it doesn't.

Peace,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
The directory that cannot be deleted mickeyboa Fedora 1 03-04-2006 10:28 AM
reinstall secure-kernel after deinstallation t2000 Mandriva 7 01-14-2005 03:48 PM
tmp directory being deleted jpokrzyk Linux - General 3 10-30-2004 07:42 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM
Deleted a directory! Can I recover it? 360 Linux - General 2 02-11-2003 12:23 PM


All times are GMT -5. The time now is 08:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration