Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try to install ANY application through terminal, I get this error:

Reading package lists... Error!
E: Read error - read (21: Is a directory)
E: The package lists or status file could not be parsed or opened.

And software center is also not opening.

Neither is Synaptic Package Manager. It gives the following error when I try to open it:

E: Read error - read (21: Is a directory)
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

Solutions I tried so far, but didn't fix the problem:

sudo rm -rf /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-amd64_Packages
sudo apt-get update
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

Any suggestions? I cannot even use apt-get install.

share|improve this question
add comment

1 Answer

If you delete the whole /var/lib/apt/lists hierarchic, you must create the partial directory under it:

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

Also, check that all the permissions are set:

sudo chmod -R 644 /var/lib/apt/lists
sudo chown -R root:root /var/lib/apt/lists

Then do apt-get update again.

share|improve this answer
    
hi braiam, This didn't solved my problem. let me know any other ways –  krs Oct 22 '13 at 6:57
    
please check my question askubuntu.com/questions/363581/… –  krs Oct 22 '13 at 7:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.