(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 Macha

Hi Guys, I am Venkatesh Macha. Founder of SillyCodes. I am a programmer, Presently working as a Software Engineer in Hyderabad. I love Linux and Open Source. Apart from that, I love to explore new technologies and things.

You may also like...

5 Responses

  1. Unknown says:

    THanks,Its worked for me.

  2. Unknown says:

    it worked,but WHY ?

  3. Unknown says:

    It worked, thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *