Debian apt-get update error
-
After running apt-get update I get the following error:
Failed to fetch http://mirrors.linode.com/debian/dists/stretch/main/i18n/Translation-en Write error - write (28: No space left on device)
Odd part is I am only using 35% of the total disk on Linode but if I run df -h I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 16G 16G 35M 100% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 202M 1.8G 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/0I can see that DEV/ROOT is full but I cannot identify if those files are needed. Any kick in the right direction would be helpful.
-
@wls-itguy said in Debian apt-get update error:
After running apt-get update I get the following error:
Failed to fetch http://mirrors.linode.com/debian/dists/stretch/main/i18n/Translation-en Write error - write (28: No space left on device)
Odd part is I am only using 35% of the total disk on Linode but if I run df -h I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 16G 16G 35M 100% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 202M 1.8G 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/0I can see that DEV/ROOT is full but I cannot identify if those files are needed. Any kick in the right direction would be helpful.
What does
du -h --max-depth=1
Show?
-
@dbeato said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
After running apt-get update I get the following error:
Failed to fetch http://mirrors.linode.com/debian/dists/stretch/main/i18n/Translation-en Write error - write (28: No space left on device)
Odd part is I am only using 35% of the total disk on Linode but if I run df -h I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 16G 16G 35M 100% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 202M 1.8G 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/0I can see that DEV/ROOT is full but I cannot identify if those files are needed. Any kick in the right direction would be helpful.
What does
du -h --max-depth=1
Show?
root@www:~# du -h --max-depth=1
8.0K ./.local
4.0K ./.well-known
8.0K ./.vim
16K ./.aptitude
420M ./wordpress
436M . -
@wls-itguy said in Debian apt-get update error:
@dbeato said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
After running apt-get update I get the following error:
Failed to fetch http://mirrors.linode.com/debian/dists/stretch/main/i18n/Translation-en Write error - write (28: No space left on device)
Odd part is I am only using 35% of the total disk on Linode but if I run df -h I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 16G 16G 35M 100% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 202M 1.8G 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/0I can see that DEV/ROOT is full but I cannot identify if those files are needed. Any kick in the right direction would be helpful.
What does
du -h --max-depth=1
Show?
root@www:~# du -h --max-depth=1
8.0K ./.local
4.0K ./.well-known
8.0K ./.vim
16K ./.aptitude
420M ./wordpress
436M .Basically the / partition you have has only 35 M free. Those other big files are needed for your system to run. YOu need to find some folders or files you can get ride of on your /home partition or temporary logs.
-
@wls-itguy said in Debian apt-get update error:
Filesystem Size Used Avail Use% Mounted on
> /dev/root 16G 16G 35M 100% /That's your root partition and it is full.
-
@wls-itguy said in Debian apt-get update error:
@dbeato said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
After running apt-get update I get the following error:
Failed to fetch http://mirrors.linode.com/debian/dists/stretch/main/i18n/Translation-en Write error - write (28: No space left on device)
Odd part is I am only using 35% of the total disk on Linode but if I run df -h I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 16G 16G 35M 100% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 202M 1.8G 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/0I can see that DEV/ROOT is full but I cannot identify if those files are needed. Any kick in the right direction would be helpful.
What does
du -h --max-depth=1
Show?
root@www:~# du -h --max-depth=1
8.0K ./.local
4.0K ./.well-known
8.0K ./.vim
16K ./.aptitude
420M ./wordpress
436M .you ran that from the www directory. that doesn't help you.
run that from
/
cd / du -h --max-depth=1
then head down the rabbit hole chasing the largest subdirectory until you find the culprit
-
@jaredbusch said in Debian apt-get update error:
du -h --max-depth=1
Example from my personal Nextcloud:
I am starting in
/var/www/html/nextcloud/data/
as I know it is where everything is.[root@jrd-nc data]# du -h --max-depth=1 770G ./sorvani 7.3M ./ronnie 516K ./files_external 123M ./appdata_oc1m0ghp93dh 7.3M ./darkwulf 770G . [root@jrd-nc sorvani]#
[root@jrd-nc data]# cd sorvani/ [root@jrd-nc sorvani]# du -h --max-depth=1 8.0K ./files_trashbin 758M ./files_versions 248K ./cache 4.0K ./uploads 769G ./files 770G . [root@jrd-nc sorvani]#
[root@jrd-nc sorvani]# cd files [root@jrd-nc files]# du -h --max-depth=1 424G ./Pictures 4.0K ./Public 1.6G ./Downloads 170G ./Music 4.0K ./Desktop 36G ./Documents 4.0K ./Templates 140G ./Videos 769G . [root@jrd-nc files]#
Wow, 424 GB of pictures.
You can add
| sort -hr
to sort it largest first.[root@jrd-nc Pictures]# du -h --max-depth=1 | sort -hr 424G . 277G ./Picasa 126G ./ImageMixer3 6.5G ./Nikon D3200 5.1G ./Nikon Transfer 3.1G ./Photo Stream 2.0G ./Japan 2011 1.4G ./Video of kids&big kids playing Wii 1.3G ./100NIKON 896M ./iCloud Photos 711M ./Nicole's Pictures 601M ./101NIKON 203M ./Mom's Pictures 127M ./screenshots 27M ./Spiceworks Definitions 16M ./Spotlight Student 14M ./Photoshop Files 12M ./Medical 8.4M ./2013-01-08 7.9M ./Meme images 2.5M ./2013-12-11 Jared_Caricature 96K ./Clipart 4.0K ./Saved Pictures 4.0K ./Raptr Screenshots 4.0K ./Image Backup 4.0K ./Camera Roll [root@jrd-nc Pictures]#
-
This post is deleted! -
@jaredbusch said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
@dbeato said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
After running apt-get update I get the following error:
Failed to fetch http://mirrors.linode.com/debian/dists/stretch/main/i18n/Translation-en Write error - write (28: No space left on device)
Odd part is I am only using 35% of the total disk on Linode but if I run df -h I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 16G 16G 35M 100% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 202M 1.8G 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 395M 0 395M 0% /run/user/0I can see that DEV/ROOT is full but I cannot identify if those files are needed. Any kick in the right direction would be helpful.
What does
du -h --max-depth=1
Show?
root@www:~# du -h --max-depth=1
8.0K ./.local
4.0K ./.well-known
8.0K ./.vim
16K ./.aptitude
420M ./wordpress
436M .you ran that from the www directory. that doesn't help you.
run that from
/
cd / du -h --max-depth=1
then head down the rabbit hole chasing the largest subdirectory until you find the culprit
root@www:/# du -h --max-depth=1
43M ./lib
8.5M ./bin
436M ./root
4.0K ./lib64
0 ./dev
4.0K ./srv
24K ./home
4.0K ./boot
8.0K ./media
8.0K ./.well-known
du: cannot access './proc/7124/task/7124/fd/3': No such file or directory
du: cannot access './proc/7124/task/7124/fdinfo/3': No such file or directory
du: cannot access './proc/7124/fd/4': No such file or directory
du: cannot access './proc/7124/fdinfo/4': No such file or directory
0 ./proc
16K ./lost+found
4.0K ./pki-validation
0 ./sys
976M ./usr
14G ./var
6.0M ./etc
32K ./tmp
5.8M ./sbin
202M ./run
47M ./opt
4.0K ./mnt
16G . -
-
cd /var du -h --max-depth=1 | sort -hr
-
@jaredbusch said in Debian apt-get update error:
You can add
| sort -hr
to sort it largest first.[root@jrd-nc Pictures]# du -h --max-depth=1 | sort -hr 424G . 277G ./Picasa 126G ./ImageMixer3 6.5G ./Nikon D3200 5.1G ./Nikon Transfer 3.1G ./Photo Stream 2.0G ./Japan 2011 1.4G ./Video of kids&big kids playing Wii 1.3G ./100NIKON 896M ./iCloud Photos 711M ./Nicole's Pictures 601M ./101NIKON 203M ./Mom's Pictures 127M ./screenshots 27M ./Spiceworks Definitions 16M ./Spotlight Student 14M ./Photoshop Files 12M ./Medical 8.4M ./2013-01-08 7.9M ./Meme images 2.5M ./2013-12-11 Jared_Caricature 96K ./Clipart 4.0K ./Saved Pictures 4.0K ./Raptr Screenshots 4.0K ./Image Backup 4.0K ./Camera Roll [root@jrd-nc Pictures]#
Side note, /WTB someone to organize my shit for cheap.
-
@jaredbusch said in Debian apt-get update error:
cd /var du -h --max-depth=1 | sort -hr
Add sudo to the front of that so you can get all the folders info.
So:
sudo du -h --max-depth=1 | sort -hr
-
@jrc said in Debian apt-get update error:
@jaredbusch said in Debian apt-get update error:
cd /var du -h --max-depth=1 | sort -hr
Add sudo to the front of that so you can get all the folders info.
So:
sudo du -h --max-depth=1 | sort -hr
He is running as root already.
-
@jrc said in Debian apt-get update error:
sudo du -h --max-depth=1 | sort -hr
In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?
-
@wls-itguy said in Debian apt-get update error:
@jrc said in Debian apt-get update error:
sudo du -h --max-depth=1 | sort -hr
In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?
Your logs should be cycling. Is this a log for a single day?
-
@jaredbusch doubtful
-
@wls-itguy said in Debian apt-get update error:
@jaredbusch doubtful
I know the logs are set to cycle by most applications. No idea how your system was setup originally.
But to answer your question, stop the webserver
service apache stop
I think for Debian.Delete the log
Start the webserver again
service apache start
The apache process will recreate a new log.
-
@jaredbusch said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
@jrc said in Debian apt-get update error:
sudo du -h --max-depth=1 | sort -hr
In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?
Your logs should be cycling. Is this a log for a single day?
I'm downloading it now so I can go through it and verify that it isn't all one day. Can I delete it and create a new .log file and go on my way?
-
@jaredbusch said in Debian apt-get update error:
@wls-itguy said in Debian apt-get update error:
@jaredbusch doubtful
I know the logs are set to cycle by most applications. No idea how your system was setup originally.
But to answer your question, stop the webserver
service apache stop
I think for Debian.Delete the log
Start the webserver again
service apache start
The apache process will recreate a new log.
Gotcha