how do I find something in the terminal

Asked by alex

I was downloading Java in to my computer and didn't read all the instructions, so when I got to the license page I gave up. I have since read the instructions and it won't let me re try I get the following:

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?

What does it mean and what do I do to correct it? I am a complete newbie to all this so I need idiot proof instructions.

Thankyou very much

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Soul-Sing
Solved:
Last query:
Last reply:
Revision history for this message
Best Soul-Sing (soulzing) said :
#1

Is Synaptic, Adept, Update Manager, Aptitude, or DSelect running? close it.

If no: sudo rm /var/lib/apt/lists/lock
sudo apt-get update

Revision history for this message
wojox (wojox) said :
#2

This happens when you have Synaptic or another package update / installation application running. Close those programs and retry.

http://www.ubuntugeek.com/how-to-fix-lock-varlibdpkglock-open-11-resource-temporarily-unavailable-error.html

Revision history for this message
Soul-Sing (soulzing) said :
#3
Revision history for this message
alex (alexredding1607) said :
#4

I am fairly certain it's the Java download in the terminal that is still running, which presumably means it's an aptitude wotsit that is still running.

 That is the problem I am having. I don't know how to close it, everything I have tried so far has not worked. Is there no way of finding the Java download in the terminal?

I know it's there coz I got as far as the license but coz I closed it rather than tab and enter I don't know where it went.

Help!!

Revision history for this message
Soul-Sing (soulzing) said :
#5

then we have to: sudo dpkg --remove --force-remove-reinstreq <packagename> it. (packagename=exact name java)
that will do the " trick".

Revision history for this message
alex (alexredding1607) said :
#6

Hi Thanx Leoquant

I have found the solution, I found it somewhere else on here. Thankyou for your help though. I was nearly in pulling hair out mode.

Revision history for this message
Soul-Sing (soulzing) said :
#7

Alex glad you'r out of troubles! :)

Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#8

If you problem is solved, please mark it solved :)

--
Regards,
Vikram Dhillon

On Wed, 2009-12-02 at 10:02 +0000, leoquant wrote:
> Question #92423 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/92423
>
> leoquant posted a new comment:
> Alex glad you'r out of troubles! :)
>

Revision history for this message
alex (alexredding1607) said :
#9

Thanks leoquant, that solved my question.