Question

How to update to PHP7.3 with Write Error 28: No space left on device

Posted May 22, 2020 76 views
PHPServer OptimizationDevelopment

I am currently on Ubuntu 16.04 and am running PHP 7.0.33. I am trying to update to. PHP 7.3 to make my Wordpress site run faster.

I followed the standard instructions

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3

But I received this error

E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.

Running df -h gives me

/dev/vda1 20G 20G 0 100% /

Which I tried to remove it by heading to FileZilla and manually deleting the file.

However, it still appears when I run df-h

Tried to do a reboot, but it is still there too.

Tried sudo apt-get clean too but it doesn’t clean anything.

What should I do?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @ngjiaquan,

It looks like that your disk space is full. You need to find which files or directories are using all of your webspace and delete them if they are not needed.

You can follow the steps from this answer here on how to do that:

https://www.digitalocean.com/community/questions/28-no-space-left-on-device-error

If there is nothing to delete, then I would recommend upgrading your Droplet so that you have more disk space.

Hope that this helps!
Regards,
Bobby

Submit an Answer