My Pi has been running good for a while until I try to update and upgrade, I’ve started getting these errors saying that I am low in space.
When I use sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Err:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Error writing to output file - write (28: No space left on device) [IP: 93.93. 128.193 80]
Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Err:2 http://archive.raspberrypi.org/debian buster InRelease
Error writing to output file - write (28: No space left on device) [IP: 46.235 .231.145 80]
Reading package lists... Done
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease Error writing to output file - write (28: No space left on device) [IP: 93.93.128.193 80]
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease Error writing to output file - write (28: No space left on device) [IP: 46.235.231.145 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
When I use sudo apt-get upgrade
spberrypi:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
binutils binutils-arm-linux-gnueabihf binutils-common ffmpeg libavcodec58 libavdevice58 libavfilter7
libavformat58 libavresample4 libavutil56 libbinutils libgl1-mesa-dri libpostproc55 libswresample3 libswscale5
python-rpi.gpio python3-rpi.gpio raspberrypi-ui-mods
The following packages will be upgraded:
arandr base-files bluez-firmware chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek freetype2-doc
libegl-mesa0 libexif12 libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libfreetype6
libfreetype6-dev libgbm1 libglapi-mesa libgles2-mesa libglx-mesa0 libgssdp-1.0-3 libgupnp-1.0-4 liblirc-client0
libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5printsupport5 libqt5sql5
libqt5sql5-sqlite libqt5widgets5 libqt5xml5 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc
libraspberrypi0 libx11-6 libx11-data libx11-xcb1 libzmq5 lxpanel lxpanel-data lxplug-bluetooth lxplug-ejecter
lxplug-network lxplug-ptbatt lxplug-volume pcmanfm pipanel pishutdown pprompt qt5-gtk-platformtheme
raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspi-config rc-gui rp-prefapps rpi-chromium-mods
rpi-eeprom tzdata xserver-common xserver-xorg-core
70 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 260 MB of archives.
After this operation, 19.3 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
My Pi has a 32gb sd and is plugged into a 4tb external drive. I currently use as a media server for Plex.
Many forums I’ve visited have told me to use the sudo autoclean, but it doesn’t work. I’ve even used commands that work similarly to only reach another dead end.
I have a theory though. When I started my server, I didn’t have lots of media, but over time as I added more and more. Around the same time I’ve been getting this error, my Plex server was unable to update the metadata for new content I’ve added.
I believe the metadata from the Plex Server may be the issue for the low space on my PI and would like to know if there is a way to move the PLEX metadata to the external drive in hopes that it will clear space for me to have it upgrade and update.
P.S
(I remember seeing instructions on the Plex website (not forum) on how to move the metadata from the sd to external drive, but can’t find it.)