apt file error opening /var/lib/apt/lists/lock

Asked by contardo sala

can't open E: Impossibile aprire il file di blocco /var/lib/apt/lists/lock - open (2: File o directory non esistente)
does anybody help me? thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Nathan Heafner
Solved:
Last query:
Last reply:
Revision history for this message
Nathan Heafner (nathan1465-5) said :
#1

Hello Contardo,
I see you are having error messages when you use APT, can you please provide more information about your issue including what commands you are running when you get these errors, what you are attempting to achieve, and the outputs of the following commands

Open a Terminal by pressing CTRL+ALT+T.

Type lsb_release -a and press Enter.

Thanks.

Revision history for this message
Sam_ (and-sam) said :
#2

Sam_ suggests this article as an answer to your question:
FAQ #1591: “'E:Encountered a section with no Package: header, E:Problem with MergeList”.

Revision history for this message
contardo sala (contardosala) said :
#3

contardo@contardo-ubuntu:~$ sudo apt-get update; lsb_release -a
[sudo] password for contardo:
E: Manca la directory di liste /var/lib/apt/lists/partial.3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
contardo@contardo-ubuntu:~$ sudo apt-get update
E: Manca la directory di liste /var/lib/apt/lists/partial

SUDO DOESN'T WORK AND I DON'T KNOW WHAT TO DO.
THANKS FOR YOUR HELP.

Revision history for this message
Best Nathan Heafner (nathan1465-5) said :
#4

Hello again Contardo, please try the following in Terminal.

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

if that does not work, please test using the troubleshooting steps in this guide
https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

please confirm if this works.

Revision history for this message
contardo sala (contardosala) said :
#5

Thanks Nathan Heafner, that solved my question.

Revision history for this message
contardo sala (contardosala) said :
#6

also have to thank SAM. CIAO