Ubuntu Software Center stuck with canceled install

Asked by joe goff

Ok I am fairly new to this whole linux environment, but i am eager to learn and fix things. so i made the mistake of trying to download the latest flash player from adobe (which i now know i didnt need to) from the adobe website. it started the process in the Ubuntu software center, i then tried to cancel the download but it is now stuck, it reads as follows:

searching
canceling

also, next to the history tab at the top it shows 1 process still running.
everything is locked by this process still running. i dont know what to do. i tired so many solutions, from update, to kill and a few others, oh ya, also --configure -a, nothing is working.

i am running Ubuntu LTS 12 version.
here is an example of what i get in the terminal

"eg@meg-HP-Pavilion-dv4-Notebook-PC:~$ sudo dpkg --configure -a
[sudo] password for meg:
dpkg: error: dpkg status database is locked by another process

meg@meg-HP-Pavilion-dv4-Notebook-PC:~$ sudo apt-get check -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?"

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
joe goff
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

Will free the packages, be sure you don't have updates running or software centre open.

Revision history for this message
joe goff (joegoff32) said :
#2

awesome TY!! but now this ....

"E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. "

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok run:

sudo dpkg --configure -a

What is output?

Revision history for this message
joe goff (joegoff32) said :
#4

meg@meg-HP-Pavilion-dv4-Notebook-PC:~$ sudo dpkg --configure -a
Setting up klnagent (8.5.0.653) ...
Please enter Administration Server DNS-name or static IP-address

Revision history for this message
joe goff (joegoff32) said :
#5

is the klnagent the kaspersky files? if so how can i just remove them?
i am running Ubuntu LTS 12 version

Revision history for this message
joe goff (joegoff32) said :
#6

just re-installed Ubuntu