Locked upgrade to Ubuntu 12.10

Asked by P J Reil

I started the upgrade process from 12.04 to 12.10 but it has locked up. I now get the following from the upgrade manager, after a restart, when I run "sudo apt-get update" and "sudo apt-get --fix-missing install.

"HP-Pavilion-dv6700-Notebook-PC:~$ sudo apt-get --fix-missing install
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?
patrick@patrick-HP-Pavilion-dv6700-Notebook-PC:~$ 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?"

I've also tried the "configure -a" and "apt-get -f" with similar results.

I'd sure like to get the upgrade installed and get back to enjoying my Ubuntu machine. Can anyoned help me, please?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
P J Reil (preil65) said :
#1

Also, the upgrade manager reports it is, "setting up NPT". Apparently that is where the system is now locked.

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

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

Revision history for this message
P J Reil (preil65) said :
#3

Thanks actionparsnip, that solved my question.