How to fix E: The package lists or status file could not be parsed or opened in APT
This error occurs when apt package metadata files become corrupted or fail to download properly. Rebuilding the package cache by removing corrupted files and running apt update resolves the issue in most cases.
Quick fix
Fixes E: The package lists or status file could not be parsed or opened
sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease- Check which file is causing the problem
- Remove the specific corrupted file
- Rebuild the package cache
- If multiple files are corrupted, clear the entire lists directory
sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InReleaseE: The package lists or status file could not be parsed or opened
What this error means
The apt package manager stores cached package metadata in /var/lib/apt/lists/. When these files become corrupted—either from interrupted downloads, network issues, storage problems, or manual modifications—apt cannot parse them during update operations. This causes the system to reject the entire cache and prevents package installation or updates until the corrupted files are removed and regenerated.
Typical symptoms
- apt update command fails with parsing error
- Unable to install or upgrade packages
- Package manager GUI tools refuse to open
- Error message identifies specific corrupted file path
Common causes
- Interrupted network connection during apt update
- Corrupted storage (especially on SD cards or unreliable drives)
- Proxy or WiFi hotspot intercepting and modifying package list files
- Failed download resulting in incomplete or malformed files
- Filesystem corruption or hardware errors
How to fix "E: The package lists or status file could not be parsed or opened"
Read the error message carefully. It will show a path like /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease. This tells you which file is corrupted.
If only one or two files are mentioned, remove just those:
sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InReleaseReplace the path with the actual corrupted file from your error message.
Run apt update to download fresh metadata:
sudo apt updateThis command rebuilds the cache from scratch. Even though you removed files, apt will recreate them during this operation.
If the error mentions many corrupted files, it's faster to remove everything:
sudo rm -rf /var/lib/apt/lists/*
sudo apt updateImportant: Remove the contents of the directory, but NOT the directory itself. The system needs the /var/lib/apt/lists/ directory to exist.
Try installing or updating a package to confirm the issue is resolved:
sudo apt install curlIf this succeeds without parsing errors, your cache is healthy.
Advanced notes
For status file corruption specifically, apt keeps backups in /var/backups/. If /var/lib/dpkg/status is corrupted, you can restore from the backup: sudo cp /var/backups/apt.extended_states.0 /var/lib/apt/extended_states. Storage issues on SD cards or unreliable drives can cause persistent corruption. If this error keeps recurring, run a filesystem check: sudo fsck /. Also check sources.list for broken PPAs or repositories that may have incorrect structure—remove those and retry apt update.
Frequently asked questions
- What does "E: The package lists or status file could not be parsed or opened" mean?
- The apt package manager stores cached package metadata in /var/lib/apt/lists/. When these files become corrupted—either from interrupted downloads, network issues, storage problems, or manual modifications—apt cannot parse them during update operations. This causes the system to reject the entire cache and prevents package installation or updates until the corrupted files are removed and regenerated.
- How do I fix "E: The package lists or status file could not be parsed or opened"?
- This error occurs when apt package metadata files become corrupted or fail to download properly. Rebuilding the package cache by removing corrupted files and running apt update resolves the issue in most cases.
- What causes "E: The package lists or status file could not be parsed or opened"?
- Interrupted network connection during apt update Corrupted storage (especially on SD cards or unreliable drives) Proxy or WiFi hotspot intercepting and modifying package list files
- Is the "E: The package lists or status file could not be parsed or opened" error serious?
- It is a medium-severity error — more of a blocker than a risk. The steps above resolve it.