E: Sub-process /usr/bin/dpkg returned an error code (1)

October 10, 2014 2.6k views

I wanted to reinstall MySQL database earlier today and when I want to install them back, this error happens. Can anyone please help me with this?


  • I typed df -h and this is the result

    root@azalelnation:~# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/vda1        79G   76G     0 100% /
    none            4.0K     0  4.0K   0% /sys/fs/cgroup
    udev            3.9G  4.0K  3.9G   1% /dev
    tmpfs           799M  332K  799M   1% /run
    none            5.0M     0  5.0M   0% /run/lock
    none            3.9G     0  3.9G   0% /run/shm
    none            100M     0  100M   0% /run/user
    overflow        1.0M  768K  256K  75% /tmp

    Does this really look like it's full? the /dev/vda1 still has 3 gigabytes left

  • As it says: Avail 0

  • What file should I delete? In which folder? Because Idk how to reduce it ):

  • Nvm. Solved. Thanks!

2 Answers

ERROR: There's not enough space in /var/lib/mysql/

I've checked /var/lib/mysql and there is nothing in it. How do I solve this? Oh and uh, I don't really know much about linux.. Sorry if I annoy you with my lack of knowledge

Have another answer? Share your knowledge.