LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 01-26-2011, 04:03 AM   #1
TheMazeProject
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.10
Posts: 3

Rep: Reputation: 0
Ubuntu Software Center hangs on installation


Hello.

My Ubuntu Software Center hangs on an installation of a downloaded .deb file from astah-community. It's a tool for UML software design.

The installation was almost complete and then got stuck for some reason. I tried to click cancel but that didn't work. I closed USC and when I opened it again nothing had changed. I shut down the computer, restartet, opened USC and it was still there.

I am new to ubuntu, so how can I get the installation cancelled? I saw another post on a similar problem, where the problem was solved with:
sudo dpkg --purge --force-all astah-community
but I got:
dpkg: status database area is locked by another process
I'm all out of ideas. Can anyone help?


 
Old 01-26-2011, 09:01 PM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,221

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by TheMazeProject View Post
My Ubuntu Software Center hangs on an installation of a downloaded .deb file from astah-community. ...
The installation was almost complete and then got stuck for some reason. ...
I saw another post on a similar problem, where the problem was solved with:
sudo dpkg --purge --force-all astah-community
but I got:
dpkg: status database area is locked by another process
I assume this is the thread you are referring to:
http://www.linuxquestions.org/questi...ackage-847795/
If tying the suggestions I gave in that thread do not work for you, then I am afraid I don't have anything else to offer. Try running all of the suggestions I presented in that thread.

NOTE: Did you have the software center or synaptic package manager open when you ran that command? The "dpkg: status database area is locked by another process" can happen if you have another package manager open when you run package management commands from the terminal. See these:
http://ubuntuforums.org/archive/index.php/t-25407.html
http://au.ubuntuforums.org/showthread.php?p=10012663

Are you able to install updates and other packages? What happens if you run from the terminal:
Code:
sudo apt-get update
sudo apt-get dist-upgrade
If you get errors, then post them here.

You are the second person that has had this problem. It seems that the astah-community .deb package is either corrupted or it is just incompatible with Ubuntu. I would not use it.

In the future, stick with packages from the Ubuntu repositories for the best results. Use packages from third party repositories with caution, if at all, and you will avoid problems.

And welcome to the LQ forums!

Last edited by tommcd; 01-26-2011 at 09:15 PM. Reason: to add more info!!
 
Old 01-27-2011, 01:47 PM   #3
TheMazeProject
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.10
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks!

And no, I can't install other packages from USC. I can click "install", but nothing happens. Btw the astah package reads as installed and "removing".

All-right! I've looked into it and killed the USC in System Monitor and then:

sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

and:
sudo apt-get dist-upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

And the other commands yields:
sudo dpkg --clear-avail && sudo apt-get update
dpkg: status database area is locked by another process

and:
sudo apt-get install -f
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

and:
sudo dpkg --configure -a
dpkg: status database area is locked by another process

and:
sudo dpkg --purge --force-all astah-community
dpkg: status database area is locked by another process

However when I ran:
sudo rm /var/lib/dpkg/lock

followed by:
sudo dpkg --configure -a

I didn't get an error in the terminal but when I opened USC again, the problem remained, and killed it.Then I tried to run the Update Manager in partial mode, but it can't get exclusive lock. In the USC it reads "in progress(1)". Would it help to kill some other related process maybe?

Last edited by TheMazeProject; 01-27-2011 at 01:53 PM.
 
Old 01-27-2011, 07:59 PM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,221

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by TheMazeProject View Post
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
I didn't get an error in the terminal but when I opened USC again, the problem remained ...
Reboot the computer to start fresh. Then try running those two commands again.
Code:
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
Then immediately run:
Code:
sudo apt-get update
sudo apt-get dist-upgrade
And see if you can update without errors. Do not open the software center. From the searching I have done, those errors only seem to occur when another package managers are running.
http://www.ubuntugeek.com/how-to-fix...ble-error.html

I am not sure what else you could try here. That astah-community package must be really screwed up to cause this kind of a mess.

Last edited by tommcd; 01-27-2011 at 08:01 PM.
 
Old 01-28-2011, 04:07 AM   #5
TheMazeProject
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.10
Posts: 3

Original Poster
Rep: Reputation: 0
NEW DEVELOPMENTS!

When I started from hibernation, there was a stop sign in the upper status bar of the desktop. I hovered over it and the tool-tip said something like "start pakage manager - it seem the astah-community package is missing dependecies" - so I did and it asked me to upgrade my distro - it did and deleted the package. When I just restated the problem was gone !!!

Guess it kinda overruled the previous errors...

Is there a way to see what actually happened? Maybe that can help others...
 
Old 01-28-2011, 08:16 PM   #6
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,221

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by TheMazeProject View Post
When I started from hibernation, there was a stop sign in the upper status bar of the desktop. I hovered over it and the tool-tip said something like "start pakage manager - it seem the astah-community package is missing dependecies" - so I did and it asked me to upgrade my distro - it did and deleted the package. When I just restated the problem was gone !!!
What version of Ubuntu are you currently running? Your profile says 10.10. When you say "upgrade my distro", I am assuming you mean just the regular updates, and not an upgrade to a newer version of Ubuntu. Is that correct?
Quote:
Originally Posted by TheMazeProject View Post
Guess it kinda overruled the previous errors...
Is there a way to see what actually happened? Maybe that can help others...
If you tried running the commands I posted in the other thread on this issue: http://www.linuxquestions.org/questi...ackage-847795/ Then I suppose those commands got rid of the rogue astah-community package. They worked for the other guy in the other thread on this issue.
Anyway, glad you got this fixed. I was pretty much out of ideas on this.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where do I find the software added using Ubuntu Software Center? er.rigney Linux - Newbie 3 03-17-2011 08:55 AM
[SOLVED] Failure to install ordinary software from Ubuntu 10.04 Software Center jlavik Linux - Newbie 1 10-01-2010 09:50 PM
LXer: DEB Packages Now Open With Ubuntu Software Center by Default in Ubuntu 10.10 LXer Syndicated Linux News 1 09-11-2010 07:35 AM
LXer: Unity, Ubuntu Software Center And Sound Indicator Video And Screenshots [Ubuntu / UNE 10.10 Ma LXer Syndicated Linux News 0 07-13-2010 01:00 PM
LXer: Ubuntu Software Center Receives Major User Interface Update, More [Ubuntu 10.10 LXer Syndicated Linux News 0 06-29-2010 06:50 PM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration