(Quick Tip) : Couldn’t create temporary file to work with /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_Release – mkstemp (2: No such file or directory)

I got following error while running apt-get update on my Ubuntu 14.04 LTS.

Error :

E: Couldn’t create temporary file to work with /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_Release – mkstemp (2: No such file or directory)

Solution :

Try the following, hopefully it will fix it:

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update



Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

8 Responses

  1. hiicy says:

    thanks! it worked

  2. hiicy says:

    thanks! it worked for me

  3. Unknown says:

    THanks,Its worked for me.

  4. Unknown says:

    it worked,but WHY ?

  5. Mengze Li says:

    thank you!!

  6. Mengze Li says:

    thank you!!

  7. Unknown says:

    It worked, thank you.

Leave a Reply