web-dev-qa-db-fra.com

Mise à jour: impossible de verrouiller / var / cache / apt / archives / lock

J'exécute la mise à niveau (12.10 à 13.04) via le terminal et il reste bloqué à ceci:

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

Que fais-je? J'ai un accès root. Je ne sais pas quoi essayer d'autre qu'une installation propre.

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:~# 
3
user161940

J'ai eu cela arriver. C'est parce que vous avez un gestionnaire de paquets ouvert. Voyez si vous avez synaptique, ou autre apt ouvert, et fermez-le. De même, si vous avez le gestionnaire de mise à jour graphique en même temps, vous obtiendrez la même erreur.

3
Mitch