Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There is a package i can't remove using rpm. I accedently deleted the folder manually. So when i try to rpm -e, it gives me some errors.
# rpm -e j2re
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/rt.pack': No such file or direct ory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/jsse.pack': No such file or dire ctory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/charsets.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/ext/localedata.pack': No such fi le or directory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/plugin.pack': No such file or di rectory
touch: cannot touch `/usr/java/j2re1.4.2_01/javaws/javaws.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/unpack': No such file or directo ry
error: %preun(j2re-1.4.2_01-fcs) scriptlet failed, exit status 1
Did you actually delete it, or did you move it to the Trash (default behaviour on KDE and GNOME)? If you just moved it to the trash, put it back. If you really deleted it, try reinstalling the package and then uninstalling it again.
its deleted it. when i try reinstalling, it installs another version of the package.
for example. "j2re". when i try to install it again. another version becomes "j2re2".
So now i have 2 j2re in my system. I can remove the j2re2 packages, but not eh original cause i deleted the folder. is there anyway around this so i can remove the package??
By removing the folder, you have essentially uninstalled the package by brute force. What you now want to do is remove the package from the package manager's list of installed files (because this package is for all intents and purposes, uninstalled), is that correct?
You might look at the solution in this thread, read through man rpm as that poster did, or check through some of the suggestions on this Repair an RPM database safely page.
And, don't do this again!!! Install and uninstall packages using your distribution's package manager-- that's what it's there for!
As an alternative, you could download and install the previous version manually and then uninstall it. That might work. Either way, you've made trouble for yourself that you really didn't need.
Did I miss the part where Opera (I assume you're talking about Opera) came into this? From the list of packages involved in the first post (not to mention subsequent posts), I thought that the app in question was Java.... accidentally post in the wrong thread, vectordrake?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.