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

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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

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