How to fix E: The package lists or status file could not be parsed or opened in APT

APTBEGINNERMEDIUMUpdated Dec 29, 2025· 221 views

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
  1. Check which file is causing the problem
  2. Remove the specific corrupted file
  3. Rebuild the package cache
  4. If multiple files are corrupted, clear the entire lists directory
apt — error
sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease
E: 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

  1. Interrupted network connection during apt update
  2. Corrupted storage (especially on SD cards or unreliable drives)
  3. Proxy or WiFi hotspot intercepting and modifying package list files
  4. Failed download resulting in incomplete or malformed files
  5. Filesystem corruption or hardware errors

How to fix "E: The package lists or status file could not be parsed or opened"

1Check which file is causing the problem

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.

2Remove the specific corrupted file

If only one or two files are mentioned, remove just those:

bash
sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease

Replace the path with the actual corrupted file from your error message.

3Rebuild the package cache

Run apt update to download fresh metadata:

bash
sudo apt update

This command rebuilds the cache from scratch. Even though you removed files, apt will recreate them during this operation.

4If multiple files are corrupted, clear the entire lists directory

If the error mentions many corrupted files, it's faster to remove everything:

bash
sudo rm -rf /var/lib/apt/lists/*
sudo apt update

Important: Remove the contents of the directory, but NOT the directory itself. The system needs the /var/lib/apt/lists/ directory to exist.

5Verify the fix works

Try installing or updating a package to confirm the issue is resolved:

bash
sudo apt install curl

If 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.

Official resources & further reading