Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running the upgrade(12.10 to 13.04) through terminal and it keeps getting stuck at this:

Failed to lock /var/cache/apt/archives/lock

What do I do? I have root access. I have no idea what else to try other than a clean install.

Checking package manager
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

Calculating the changes
Calculating the changes

Do you want to start the upgrade? 

3 packages are going to be removed. 155 new packages are going to be 
installed. 1204 packages are going to be upgraded. 

You have to download a total of 595 M. This download will take about 
1 hour 15 minutes with a 1Mbit DSL connection and about 23 hours with 
a 56k modem. 

Fetching and installing the upgrade can take several hours. Once the 
download has finished, the process cannot be canceled. 

 Continue [yN]  Details [d]y

Fetching

Could not download the upgrades 

The upgrade has aborted. Please check your Internet connection or 
installation media and try again. All files downloaded so far have 
been kept. 

Failed to lock /var/cache/apt/archives/lock 


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 
root@chaitanya-XPS-Ubuntu:~# 
share|improve this question

1 Answer 1

up vote 0 down vote accepted

I had this happen. Its because you have a package manager open. See if you have synaptic, or other apt open, and close it. Also if you have GUI update manager running at the same time it will give you that same error.

share|improve this answer
    
yes that was it. just rebooted and then started the update before any other activities would start.. it went through the upgrade smoothly. thanks a ton! –  user161940 May 26 '13 at 15:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.