UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
But the process hung at the 'EULA'(Boo, Hiss...) prompt so I had to kill it. I tried to restart 'Add/Remove Programs to try agian but I am getting this error message:
Code:
ps -ef | grep adept
and
Code:
ps -ef |grep apt
and killed whatever processes there were and tried again but still got the same message. I have even rebooted but no change. Any ideas?
I also find that when I try to use Adept Package Manager I get the message:
Quote:
Read Only Mode, Database Locked
You will not be able to change your system settings in any way (install, remove or upgrade software), because another process is using the packaging system database (probably some other Adept application or apt-get or aptitude). Please close the other application before using this one.
Thanks for any ideas.
BTW, I also posted this in ubuntuforums.org. I hope that that is not a breach of etiquite; I'm sure that if it is someone will let me know
Starting with Dapper, Sun Java is now in the repositories ("j2sdk1.5-sun" or "sun-java5-jre"). Use Synaptic or APT to install it.
Please come back if the are additional issues. - I'm already through most of them.
Quote:
Read Only Mode, Database Locked
As root (or by sudo'ing), you would need to delete the file /var/lib/dpkg/lock. That file might remain after some crash.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
Thanks for the ideas.
I deleted the file just as you said; howerver, I am still having an issue. I delete the file and then I try to start the Package Manager but I just get that KDE 'bouncing ball' for a minute and then nothing. I then try and start it again and this time I get a password prompt but get the same 'database locked' message and when I check the 'lock' file returns and I am right back to where I started.
I try to start the Package Manager but I just get that KDE 'bouncing ball' for a minute and then nothing
What are you doing exactly to start the program?
- The screenshots in your link are taken from Ubuntu/GNOME, while you should be on Kubuntu/KDE. Your graphical package manager should be Adept. - You might try running
Code:
sudo adept
from a terminal.
You can always use the command line ("apt-get") to install software, without ever using a graphical package manager, but I think this issue should be solved.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
I try to start the Package Manager from the K Menu > System > Adept Package Manager and that is where I just get the KDE 'bouncing ball' and then nothing. I tried what you said and opened it by:
Code:
sudo adept
and that worked, I was able to install software no problem. Now whenever I try to start up either Adept or the Add/Remove Programs I get the 'bouncing ball' and then nothing. I then restart it, get the password prompt, and this time it works. Kind of a convoluted way, but at least now it works. Thanks for the suggestion.
When you edit this menu item, you'll find the underlying command is "kdesu adept". You could type this into a terminal, and look at the output.
When I do this, I get some (cryptic to me) warnings (too) (and adept will start OK). Maybe you're lucky and get some console output that includes a pointer to the base error.
I just ran into this problem and found an apparent cause and solution. Apparently Sun changed the download URL of their J2RE documentation from what adept and apt-get usually use to this: (http s: //sdlc4b.sun. com:443/ECom/EComActionServlet;jsessionid=B99022DA1BEB3B60657F56F476570243). If you download this and copy it to your /tmp folder (don't bother unzipping it) [dpkg --configure -a] to finish up the installation.
Thank you to _Dave_ from the thread http :// www .ubuntuforums. org/showthread.php?t=235016 for providing this fix.
What are you doing exactly to start the program?
- The screenshots in your link are taken from Ubuntu/GNOME, while you should be on Kubuntu/KDE. Your graphical package manager should be Adept. - You might try running
Code:
sudo adept
from a terminal.
You can always use the command line ("apt-get") to install software, without ever using a graphical package manager, but I think this issue should be solved.
I have the same problem, also from trying to install the jdk.
I get the same error message.
I've tried deleting the lock file in /var/lib/dpkg
But even when i try
sudo adept
the lock file reappears.
Try the solution I posted in the post previous yours. It will allow the adept manager to find the missing files and finsih up the installation. It should then automatically delete the lock file for you.
I had the same type of problem but while installing postgreSQL using adept. I made my configuration requests, clicked "Apply Changes", walked away, and when I came back an hour later it said something to the effect that it couldn't connect to the download server.
I reran adept, cursed, rebooted, reran adept, cursed some more (felt like Windows) but always the "Read Only Mode, Database Locked You will not be able to change your system settings..." message. Finally found this thread and tried to delete the /var/lib/dpkg/lock as suggested. Still no luck.
Finally decided to try the apt-get command as root. Specifically: 'apt-get check'. It's reply was "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem."
Running 'dpkg --configure -a' completed the interrupted install of postgreSQL and all is happy again with adept.
Uncomment (remove the # sign before) the lines that include the term "universe multiverse". <-- If you've already searched for "sun java" in adept, and there were no direct matches, this should be the key.
Update apt by:
Quote:
sudo apt-get update
Install the JDK:
Quote:
sudo apt-get install sun-java5-jdk
As there are several versions of Java on your system, configure Sun Java to be the default one:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.