Score:0

Ubuntu 20.04 Error: Opening the Cache

ph flag

I have been getting this error for months:

Error: Opening the cache(E: can not open /var/lib/apt/lists/
E: The package lists or status file could not be parsed or opened
This usually means your installed package have unmet dependencies

Then I try to fix it with:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoclean
sudo apt-get update --fix-missing

I tried these to no effect. Sometimes the error goes away for a while but then it comes back in a few minutes.

I also tried this

contents of /var/crash

Are the crash/whoopsie files related to the error?

David avatar
cn flag
No pictures of text please include the test in the body of the message,
Hetvi avatar
ph flag
sorry I'm a new user. Is it clearer now?
Soren A avatar
mx flag
Does the directory /var/lib/apt/lists/ exist and have correct rights ? What is the output of `ls -ld /var?/lib/apt/lists/` ?
Hetvi avatar
ph flag
ls: cannot access 'var?/lib/apt/lists/' No such file or directory
Score:0
in flag

This will occasionally happen when your apt lists are incomplete or broken. You can rebuild them like this:

  1. Open Terminal (if it's not already open)
  2. Remove the contents of the lists directory:
    sudo rm /var/lib/apt/lists/* -vf
    
  3. Rebuild the lists:
    sudo apt clean
    sudo apt update
    
  4. Update your system:
    sudo apt dist-upgrade
    

Hope this allows you to have an up-to-date system again

Hetvi avatar
ph flag
The same error is displayed again. It only disaapeared for a while.
in flag
If the files in this directory are regularly being corrupted, then `apt` is being cancelled mid-process or your storage device is failing.
Hetvi avatar
ph flag
How can I check the problem can you please tell me
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.