Cannot create a directory: the /var/lib/apt/lists/partial is missing

Asked by Jeff

When I run sudo apt-get update I get the following error.

E: List directory /var/lib/apt/lists/partial is missing. - Acquire (22: Invalid argument)

I have tired to create /var/lib/apt/lists/partial but get the following error.

~$ sudo mkdir -p /var/lib/apt/lists/partial
mkdir: cannot create directory `/var/lib/apt/lists/partial': Invalid argument

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

sudo mkdir /var/lib/apt/lists/partial

Try without the -p

Revision history for this message
Jeff (japrehm) said :
#3

I did the following from Sam's link with the same outcome.

sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
mkdir: cannot create directory `/var/lib/apt/lists/partial': Invalid argument

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#4

Might be some related to your file system...

Please try to force a file system check at next boot with this terminal command...

Open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo touch /forcefsck

give your user password when requested, you don't see nothing when you type it, then press enter.

Then reboot the pc.

Revision history for this message
Jeff (japrehm) said :
#5

Thanks for every ones help. Marcobra suggestion worked great, thanks a lot.

Revision history for this message
Jeff (japrehm) said :
#6

Thanks marcobra (Marco Braida), that solved my question.