LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-08-2007, 09:09 PM   #1
matt.t.mitchell
LQ Newbie
 
Registered: Aug 2006
Location: Louisville, KY
Distribution: Ubuntu and Kubuntu (because I've found them the easiest to use since I'm a newbie to Linux)
Posts: 8

Rep: Reputation: 0
Angry Database Locked - Adept Updater


I just installed Kubuntu 7.04 on my laptop Monday. I'm still new to Linux and I'm using the free Kubuntu CD I got from a buddy of mine to learn my way around Linux. Anyways, I noticed the little update icon in the system tray when I booted up this evening, so I clicked on it, and I get an error message that is titled "Database Locked - Adept Updater." Basically it says that another program is using the updater or update database (something like that...I didn't write the entire message down). I restarted my computer only to get the same message once it booted up again.

Any suggestions on what's causing this problem and how to fix it? Without Adept Updater I can't install/uninstall programs!

Thanks,
New Linux User
 
Old 08-08-2007, 09:27 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you didn't have synaptic open, or did not issue any update commands, and you have a always-on connection, chances are it's on-line retrieving repository data which is part of the update process. It's getting information regarding extra packages not on the DVD and update information.
Have you waited a while after booting up? it may be ready to go after it's done, which could be up to an hour depending on your configuration and connection speed.
 
Old 08-09-2007, 07:32 AM   #3
matt.t.mitchell
LQ Newbie
 
Registered: Aug 2006
Location: Louisville, KY
Distribution: Ubuntu and Kubuntu (because I've found them the easiest to use since I'm a newbie to Linux)
Posts: 8

Original Poster
Rep: Reputation: 0
Smile Thanks for the suggestion

No, I didn't have the patience to wait for an hour, I figured there was something wrong. I guess that's what I get for using Windows for all these years. I'll have just have to give it some time, and if that doesn't work, I'll add more information to this thread.

Thanks
 
Old 08-10-2007, 10:01 AM   #4
matt.t.mitchell
LQ Newbie
 
Registered: Aug 2006
Location: Louisville, KY
Distribution: Ubuntu and Kubuntu (because I've found them the easiest to use since I'm a newbie to Linux)
Posts: 8

Original Poster
Rep: Reputation: 0
Here's the specific error message...still no luck.

I tried waiting, per your suggestion, to see if the update process would finish. It has been more than 3 hours now, and I'm updating at work...we have a T1 server (or higher) so I know the process should have completed in less than an hour.

Here is the specific error message:
Message Title: Database Locked - Adept Updater
Message Content: 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.

Exact same process as before...boot into Kubuntu, click on the update icon in the system tray, and this is the message I get everytime. How can I fix this?

Thanks!
 
Old 08-10-2007, 10:05 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If you may have restarted your computer while adept or any other apt-related process was running, it's possible you have what's known as a "stale lock". Try removing the file /var/lib/dpkg/lock.
 
Old 08-10-2007, 12:38 PM   #6
matt.t.mitchell
LQ Newbie
 
Registered: Aug 2006
Location: Louisville, KY
Distribution: Ubuntu and Kubuntu (because I've found them the easiest to use since I'm a newbie to Linux)
Posts: 8

Original Poster
Rep: Reputation: 0
A coworker of mine who is a lot more afluent in Linux that I am fixed the problem...I'll get a detailed description from his as to what he did and post it.

Thanks.
 
Old 08-26-2007, 12:00 PM   #7
harlequinguy
LQ Newbie
 
Registered: Feb 2007
Location: Central California
Distribution: Linux Mint Debian
Posts: 11

Rep: Reputation: 0
First, enter this at the Konsole:
sudo rm /var/lib/dpkg/lock

This deletes the lock file that's causing most of your problem. Just to be sure, enter this...

sudo dpkg --configure -a

This will resolve the log-jam causing the crash. Any active package that won't complete or
load will be tagged as broken and ignored.

Then you can use Adept as you normally do!
 
  


Reply

Tags
kubuntu, updater



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
adept database is already locked ? budword Linux - Software 4 07-08-2007 01:04 PM
Adept launch error, something else using the database cormack Ubuntu 1 06-03-2007 05:53 PM
Kubuntu; how to get adept-updater back? badbunny Linux - Newbie 2 01-16-2007 09:47 AM
Adept Database Locked Optiker Ubuntu 3 10-19-2006 12:22 PM
Adept updater and installer gone? SRTTurbo Linux - Software 2 05-30-2006 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 PM.

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
Open Source Consulting | Domain Registration