Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Everyone
I was trying to solve an issue of not having enough space in my partition
and at one point i entered the command
rm -rf /var/lib/apt/lists
I deleted everything in the lists directory and now when i type
sudo apt-get update i get the following error:
Get:1 https://kali.download/kali kali-rolling InRelease [30.5 kB]
Err:1 https://kali.download/kali kali-rolling InRelease
Error writing to output file - write (28: No space left on device) [IP: 104.18.244.114 443]
Reading package lists... Done
W: Failed to fetch https://http.kali.org/kali/dists/kali-rolling/InRelease Error writing to output file - write (28: No space left on device) [IP: 104.18.244.114 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi ydafalla,
Welcome to LQ.
After cleaning up that /var/lib/apt/lists directory (I assume you verified before doing this that it is indeed the proper procedure for cleaning up old package versions ... I am not a Kali user ...), did you verify your available disk space ? It seems that even though you deleted the contents of that directory, you have insufficient space for the update.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi ydafalla,
As pan64 remarked, your (/) root file system is indeed full (100% usage, no space left).
To figure out what you can remove, does Kali have baobab (aka Disk Usage Analyzer) installed by default ? Obviously you can't install it at this point, but if it's already there, you may be able to run it and see what's taking up all that space ... 213GB is quite alot of usage for a linux system. Usually media files are the culprit .. Do you have a lot of video and/or music on there ?
And also as mentioned by pan64, Kali is a specialized IT security-themed distro. If you do not do that kind of work or are not using it in the context of some course of study, I would recommend a more common distro like Mint, Ubuntu or Debian.
I am using Kali because i am trying to do some security work.
Rickkkk i have some dictionary file that is taking a lot of the space.
Is it possible to allocate some memory from other partitions to the root directory?
If yes how can i do so? for example it looks like there is available space in the /dev directory and in the /media/directory?
Can i move the memory from /media to the root?
I can't move my file because i have a 204GB file that i want to keep in root.
Is it possible to move the free space to root?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi ydafalla,
I don't believe you're going to find a satisfactory solution by trying to reallocate or repartition - space is just too tight. Also, be mindful that most of the filesystems referenced in the output of your df -h command are tmpfs and used by the system itself (I suggest a quick read on tmpfs ... The Arch Linux wiki has some useful information).
Your entire disk is around 220GB and you have that one file taking up 204GB. In my opinion, you are going to constantly run into problems with this type of situation. I would strongly suggest you find an additional internal (if possible) or external medium of some kind to move that file to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.