Score:0

sudo apt full-upgrade // you don't have enough free memory space in /var/cache/apt/archives

mp flag

There are many similar questions to mine on this site. However, over the last few hours of trying to sort through this matter, I have arrived exactly nowhere. At this time, I think that my system might be so poor that the best thing might be to restore an image. Before I take this drastic measure, I want to try my best to explain my situation.

  1. Running Ubuntu 18.04.5 LTS linux-image-5.4.0-70-generic install

  2. Whenever I reboot, I get a message about low memory.

  3. I have read someplace that if I can update/upgrade that some of this memory problem might be solved

  4. When I type "sudo apt-get upgrade," the response is, "Need to get 270 MB of archives. After this operation, 10.3 MB of additional disk space will be used. E: You don't have enough free space in /var/cache/apt/archives/."

  5. I have searched this cite for the string, "You don't have enough free space in /var/cache/apt/archives/," and found many questions and answers on the matter. Yet, here I am with no forward pr0gress.

Can you please help me? Please keep jargon to a minimum and be as clear as possible. thanks

EDIT: My situation was so bad that I could no longer boot my computer. I had to start from an image that was on my hard drive.

guiverc avatar
cn flag
Your error messages don't relate to lack of memory (RAM), but lack of disk space. You haven't said if you're using a 18.04 desktop or 18.04 server system? but did you allocate the minimum required space? If you use less space than recommended (or utilize additional apps) you need to allocate more space. A fully upgraded system will report itself at 18.04.6 (so you are behind on upgrades), but removing files to create space in / is your best bet.
guiverc avatar
cn flag
Does this answer your question? [Not enough space in /var/cache/apt/archives/](https://askubuntu.com/questions/178909/not-enough-space-in-var-cache-apt-archives) FYI: if your free space is too low; some *fixes* need to be done manually before *auto* commands can be used to create more space.
pasman pasmański avatar
mx flag
Run command `df -H` and paste the result
mp flag
@guiverc When I go to details > info, it just says "Running Ubuntu 18.04.5 LTS" There is no mention of desktop or server. When I type, "dpkg --get-selections | grep linux-image | grep -v deinstall," the response is, "dpkg --get-selections | grep linux-image | grep -v deinstall." This likely indicates that this is the desktop version
mp flag
@guiverc, You write, "A fully upgraded system will report itself at 18.04.6 (so you are behind on upgrades)." Is there a way to set my computer to autoupdate? Separately, you write, "removing files to create space in / is your best bet." Do you mean to delete files (like photos), or do you mean to delete programs (like MATLAB), or either?
us flag
Try the commands `sudo apt autoremove -y` and `sudo apt clean`. They might free up some momory.
user535733 avatar
cn flag
If you have "details > info", then you are using Ubuntu Desktop. If so, then you already have the tool you need. Open Disk Usage Analyzer. Let it analyze your disk. When complete, explore the result to see that you should delete. Paste the result in your question if you still need more help.
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.