LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2008, 06:39 PM   #1
creature124
Member
 
Registered: May 2007
Distribution: Kubuntu
Posts: 40

Rep: Reputation: 15
Problem with packet management database always being locked.


Hi,

I am running the newest stable version of Kubuntu. I am having troubles with the Adept Packet Manager being unable to make changes to the database it uses. It says that possibly another copy of itself is open, but even after a fresh restart (unessecary on linux I've been told, but old habits die hard) it still locks up.

The KDE Crash Handler provides me with the following 'backtrace' error report:

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1236068672 (LWP 6680)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6 0xffffe410 in __kernel_vsyscall ()
#7 0xb767f875 in raise () from /lib/tls/i686/cmov/libc.so.6
#8 0xb7681201 in abort () from /lib/tls/i686/cmov/libc.so.6
#9 0xb788b6e0 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.6
#10 0xb7888f65 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb7888fa2 in std::terminate () from /usr/lib/libstdc++.so.6
#12 0xb78890ca in __cxa_throw () from /usr/lib/libstdc++.so.6
#13 0x0814d9a6 in ?? ()
#14 0x0814df1a in ?? ()
#15 0x0814df78 in ?? ()
#16 0x0814e7c5 in ?? ()
#17 0x0814c2bd in ?? ()
#18 0x08135ef9 in ?? ()
#19 0x0809ad6d in ?? ()
#20 0x0807349f in ?? ()
#21 0x080755d5 in ?? ()
#22 0xb6c3f893 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#23 0xb6fcb8ec in QSignal::signal () from /usr/lib/libqt-mt.so.3
#24 0xb6c5f842 in QSignal::activate () from /usr/lib/libqt-mt.so.3
#25 0xb6c67258 in QSingleShotTimer::event () from /usr/lib/libqt-mt.so.3
#26 0xb6bd6af0 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#27 0xb6bd891f in QApplication::notify () from /usr/lib/libqt-mt.so.3
#28 0xb72decd2 in KApplication::notify () from /usr/lib/libkdecore.so.4
#29 0xb6b69209 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#30 0xb6bc953b in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#31 0xb6b7dd49 in QEventLoop:rocessEvents () from /usr/lib/libqt-mt.so.3
#32 0xb6bf11ce in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#33 0xb6bf0fde in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#34 0xb6bd8699 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#35 0x08070345 in ?? ()
#36 0xb766b050 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#37 0x08070091 in ?? ()

I apologise for the trouble, but could someone help me resolve this problem, or point me to someone/someplace that can?

Thanks,
Greg
 
Old 02-01-2008, 02:59 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,436

Rep: Reputation: 275Reputation: 275Reputation: 275
First close all your apps.

Open your terminal and type:
Code:
sudo apt-get update
If this works, continue with:
Code:
sudo apt-get -f upgrade
If the first step doesn't work, type:
Code:
sudo dpkg --configure -a
...and restart with step one.

Last edited by jens; 02-01-2008 at 03:06 AM.
 
Old 02-01-2008, 08:32 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Problem with packet management database always being locked.
Quote:
Originally Posted by creature124 View Post
Hi,

I am running the newest stable version of Kubuntu. I am having troubles with the Adept Packet Manager being unable to make changes to the database it uses. It says that possibly another copy of itself is open, but even after a fresh restart (unessecary on linux I've been told, but old habits die hard) it still locks up.
I assume you mean [Pp]ackage not [Pp]acket.


jens,
Care to explain what you think is wrong & how your suggestions will solve the problem?

creature124,
You don't say what action of yours immediately precedes the problem? -- What were you trying to do?
 
Old 02-01-2008, 09:01 AM   #4
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
You may want to try running the command
Code:
top
and see if you find another instance Apt or Synaptic running. If you find it, a PID (Project ID, I believe) will correspond with it. For arguments sake, we'll say it's 1111. At a terminal, you'd type
Code:
sudo kill 1111
Normally when something is locked, another instance of itself is running. When permission is denied when you're not running it as root or sudo (which seems to be what jens was referring to).

Regards,

Brandon
 
Old 02-01-2008, 10:23 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Actually, it's Process ID, see: http://en.wikipedia.org/wiki/Process_identifier
 
Old 02-01-2008, 11:43 AM   #6
creature124
Member
 
Registered: May 2007
Distribution: Kubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
jens suggestion worked perfectly, thank you very much. Thank you all for your help.

Archtoad6, I'll remember to include such information next time I have a problem (and it will certainly happen!)
 
Old 02-01-2008, 11:48 AM   #7
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,436

Rep: Reputation: 275Reputation: 275Reputation: 275
Quote:
Originally Posted by archtoad6 View Post
jens,
Care to explain what you think is wrong & how your suggestions will solve the problem?
Sure.
It seems DPKG got interrupted.
"dpkg --configure -a" will finish configuring all waiting packages.

This should normally be done automatically by his package manager, but that doesn't seem to work in *ubuntu's last release (bug is re-opened).

Last edited by jens; 02-01-2008 at 11:55 AM.
 
Old 02-01-2008, 11:54 AM   #8
creature124
Member
 
Registered: May 2007
Distribution: Kubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
So this bug was fixed, but came back in the newest version of ubuntu(plus variants)? It is a slight problem with the OS rather than with my hardware or anything?
 
Old 02-01-2008, 12:16 PM   #9
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,436

Rep: Reputation: 275Reputation: 275Reputation: 275
Quote:
Originally Posted by creature124 View Post
It is a slight problem with the OS rather than with my hardware or anything?
Yes and no...
DPKG shouldn't get interrupted in the first place (did you reboot while it was running?)...

It still should have been fixed automatically by your package manager though...
 
Old 02-01-2008, 01:39 PM   #10
creature124
Member
 
Registered: May 2007
Distribution: Kubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
*shrugs* Whatever. At least I know what to do if it happens again. Thanks very much.
 
Old 02-01-2008, 06:44 PM   #11
axobeauvi
Member
 
Registered: Apr 2003
Posts: 128

Rep: Reputation: 16
Quote:
Originally Posted by MyHeartPumpsFreon View Post
You may want to try running the command
Code:
top
and see if you find another instance Apt or Synaptic running. If you find it, a PID (Project ID, I believe) will correspond with it. For arguments sake, we'll say it's 1111. At a terminal, you'd type
Code:
sudo kill 1111
Normally when something is locked, another instance of itself is running. When permission is denied when you're not running it as root or sudo (which seems to be what jens was referring to).

Regards,

Brandon
PID is process ID
ps aux (will show all running processes)
 
Old 02-01-2008, 09:43 PM   #12
MyHeartPumpsFreon
Member
 
Registered: Oct 2007
Location: The States, Florida
Distribution: Lonely Werewolf
Posts: 251

Rep: Reputation: 30
Thanks for the correction Toad and Axo, but I was close enough for my taste. Dually noted.

Brandon
 
Old 02-02-2008, 03:12 PM   #13
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,436

Rep: Reputation: 275Reputation: 275Reputation: 275
@archtoad6

Since I assume you don't ask everyone who replies why he states what he does, could you explain why you seemed to think I was wrong.

His output did show an interruption(and yes, those silly KDE rapports are not always correct and difficult to read).

IMHO, my first post was the obvious thing and couldn't have done any damage anyway (do correct me if I'm wrong)
 
Old 02-06-2008, 11:45 AM   #14
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by archtoad6 View Post
jens,
Care to explain what you think is wrong & how your suggestions will solve the problem?
I never (meant) to say that I thought you were wrong, how did you get that idea? I fact, I thought you might have some insight, new to me, that would be made clearer if you elaborated. Sorry if my language was not clear.
 
Old 02-06-2008, 01:15 PM   #15
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,436

Rep: Reputation: 275Reputation: 275Reputation: 275
Quote:
Originally Posted by archtoad6 View Post
I never (meant) to say that I thought you were wrong, how did you get that idea? I fact, I thought you might have some insight, new to me, that would be made clearer if you elaborated. Sorry if my language was not clear.
Oh, but never took that as an insult
I posted that same "fix" on my own Debian site (mostly dutch PVR tutorials) some time ago.
Later, someone (who claimed he worked for Con./Ubuntu) made a comment about that being "a good way to wreck DPKG" (I don't see why... hence why I was interested in your reply).

My bad.

Last edited by jens; 02-06-2008 at 01:37 PM.
 
  


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
Urpmi-database locked Kristoffer G Mandriva 6 04-25-2012 05:20 PM
urpmi database locked.... againstms Linux - Newbie 2 05-18-2006 05:05 PM
RPM database locked cepheus Linux - Newbie 1 10-23-2004 02:43 PM
urpmi database locked? KiLLaWaBBiT Linux - Software 2 09-06-2004 02:56 AM
urpmi database locked! /home/kyle Mandriva 3 03-09-2004 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration