Score:1

Archives directory /var/cache/apt/archives/partial is missing

mg flag

I am trying to install a python version on linux. But I am getting the following error:

Archives directory /var/cache/apt/archives/partial is missing

I have tried to create the file by :

mkdir -p /var/cache/apt/archives/partial

But i am getting the following:

mkdir: cannot create directory ‘/var/cache/apt’: File exists

Edit:

ls -l /var/cache/apt
lrwxrwxrwx 1 root root 32 Apr 17 20:00 /var/cache/apt -> /media/{dir_of_mounted_disc}/apt

How can I solve this?? Thank you!

Raffa avatar
jp flag
Please add the output of `ls -l /var/cache/apt` ... It appears to be a symlink to a directory which is not normal ... What have you done? :-)
user357693 avatar
mg flag
@Raffa I edited as you request.
Raffa avatar
jp flag
It's indeed a symlink ... Remove it with `sudo rm /var/cache/apt` ... Then recreate the directory structure with `sudo mkdir -p /var/cache/apt/archives/partial` ... And see if that works ... However "*I am trying to install a python version on linux*" worries me that this is the least of your proplems
user357693 avatar
mg flag
seems like it worked!! thank you so much!! @Raffa
Score:0
jp flag

It appears that /var/cache/apt is a symlink to a directory ... Which is not normal ... Remove it with:

sudo rm /var/cache/apt

Then recreate the directory structure with:

sudo mkdir -p /var/cache/apt/archives/partial

However:

"I am trying to install a python version on linux"

worries me that this is the least of your problems ... Please be careful not to change/remove system python version ... See for example:

Terminal and other apps suddenly won't open

I sit in a Tesla and translated this thread with Ai:

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.