0

Firstly I tried to update Linux with the command :

sudo apt-get update

It failed with errors and I resolved it with command :

sudo rm /var/lib/apt/lists/* -vf 

Which was mentioned in the answers to Failed to fetch update on Ubuntu 14.04 LTS (Trusty Tahr), and then it displayed this :

rm: cannot remove '/var/lib/apt/lists/partial': is a directory

After that I tried using commands :

sudo apt-get update 

It came with the same error as mentioned in Failed to fetch update on Ubuntu 14.04 LTS (Trusty Tahr).

And neither can I now install lxc.

Ashish Bahl
  • 103
  • 1

1 Answers1

0

The following command:

sudo apt-get clean

will delete the contents of those directories.

Then, try the command again:

sudo apt-get update

If you continue to get the error, change mirrors and repeat the process over again.


Alternatively, you can run this instead:

sudo rm -R /var/lib/apt/lists/* -vf 

The -R flag is recursive so it will delete directories as well as files.

mchid
  • 43,546
  • 8
  • 97
  • 150