LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-20-2019, 10:58 AM   #1
ydafalla
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
Unhappy sudo apt-get update not working


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.

How do i fix this ?
Thanks
 
Old 01-20-2019, 11:36 AM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
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.

Could you run :

Code:
df -h
... and post the results here ?

Cheers.
 
1 members found this post helpful.
Old 01-20-2019, 12:02 PM   #3
ydafalla
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 64M 7.8G 1% /dev
tmpfs 1.6G 159M 1.5G 10% /run
/dev/sda1 213G 213G 0 100% /
tmpfs 7.9G 30M 7.8G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
tmpfs 1.6G 12K 1.6G 1% /run/user/133
tmpfs 1.6G 52K 1.6G 1% /run/user/0
tmpfs 7.9G 0 7.9G 0% /media/directory

Last edited by ydafalla; 01-20-2019 at 12:10 PM.
 
Old 01-20-2019, 12:51 PM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,658

Rep: Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775
your root filesystem is full. You need to remove something from /dev/sda1.
From the other hand: do you really need kali? https://www.linuxquestions.org/quest...ad-4175614092/
 
2 members found this post helpful.
Old 01-20-2019, 01:01 PM   #5
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
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.

Cheers.
 
2 members found this post helpful.
Old 01-20-2019, 01:27 PM   #6
ydafalla
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?

Thanks
 
Old 01-20-2019, 01:41 PM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,658

Rep: Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775
you must not use /dev, but you can try to move your file to /media
 
Old 01-20-2019, 01:57 PM   #8
ydafalla
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-20-2019, 02:06 PM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,658

Rep: Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775
if you want to resize your partitions you can use gparted for example.
 
Old 01-21-2019, 09:21 AM   #10
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,245

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
sudo apt-get update command not working zeeshanayub Linux - Newbie 1 10-21-2014 08:16 PM
[SOLVED] 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf rasec8711 Linux - Software 2 05-31-2012 10:33 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration