E: Archive directory /var/cache/apt/archives/partial is missing Error and Solution

The “E: Archive directory /var/cache/apt/archives/partial is missing” error usually indicates that the apt-get package manager is unable to locate the directory where it stores the downloaded package files. This can happen if the directory is deleted or if there is a permission issue preventing apt-get from accessing the directory. Here is how to resolve this issue:

  1. Create the missing directory:
sudo mkdir -p /var/cache/apt/archives/partial
  1. Set the correct permissions for the directory:
sudo chmod 755 /var/cache/apt/archives/partial
  1. Update the apt-get package manager:
sudo apt-get update

If these steps do not resolve the issue, you can try deleting the entire /var/cache/apt/archives directory and recreating it:

  1. Delete the archives directory:
sudo rm -rf /var/cache/apt/archives
  1. Recreate the archives directory and its subdirectories:
sudo mkdir -p /var/cache/apt/archives/partial
sudo mkdir -p /var/cache/apt/archives/pool
sudo mkdir -p /var/cache/apt/archives/new
sudo mkdir -p /var/cache/apt/archives/cur
  1. Set the correct permissions for the directories:
sudo chmod 755 /var/cache/apt/archives
sudo chmod 755 /var/cache/apt/archives/partial
sudo chmod 755 /var/cache/apt/archives/pool
sudo chmod 755 /var/cache/apt/archives/new
sudo chmod 755 /var/cache/apt/archives/cur
  1. Update the apt-get package manager:
sudo apt-get update

With these steps, you should be able to resolve the “E: Archive directory /var/cache/apt/archives/partial is missing” error and continue using apt-get to manage packages on your system.

Leave a Comment