Unable to update because of "write error"

When I was notified that there were more than three hundred updates, I attempted to install them but it failed with

Download (curl) error for ‘http://download.opensuse.org/factory/repo/oss/suse/noarch/libreoffice-icon-theme-galaxy-4.4.1.2-1.1.noarch.rpm’:
Error code: Write error
Error message: Failed writing body (1124 != 1428)

The package varies when I reattempt the update. When I check disk usage, I get

df -h

Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.5G 0 3.5G 0% /dev
tmpfs 3.5G 196K 3.5G 1% /dev/shm
tmpfs 3.5G 11M 3.5G 1% /run
tmpfs 3.5G 0 3.5G 0% /sys/fs/cgroup
/dev/sda7 41G 40G 13M 100% /
/dev/sda7 41G 40G 13M 100% /.snapshots
/dev/sda7 41G 40G 13M 100% /var/tmp
/dev/sda7 41G 40G 13M 100% /var/spool
/dev/sda7 41G 40G 13M 100% /var/opt
/dev/sda7 41G 40G 13M 100% /var/log
/dev/sda7 41G 40G 13M 100% /var/lib/pgsql
/dev/sda7 41G 40G 13M 100% /var/lib/named
/dev/sda7 41G 40G 13M 100% /var/lib/mailman
/dev/sda7 41G 40G 13M 100% /var/crash
/dev/sda7 41G 40G 13M 100% /usr/local
/dev/sda7 41G 40G 13M 100% /tmp
/dev/sda7 41G 40G 13M 100% /srv
/dev/sda7 41G 40G 13M 100% /opt
/dev/sda7 41G 40G 13M 100% /boot/grub2/x86_64-efi
/dev/sda7 41G 40G 13M 100% /boot/grub2/i386-pc
/dev/sda2 96M 60M 37M 62% /boot/efi
/dev/sda8 690G 51G 640G 8% /home

I then removed everything from /tmp, and also from /var/tmp. I still have

df -h

Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.5G 0 3.5G 0% /dev
tmpfs 3.5G 200K 3.5G 1% /dev/shm
tmpfs 3.5G 11M 3.5G 1% /run
tmpfs 3.5G 0 3.5G 0% /sys/fs/cgroup
/dev/sda7 41G 39G 422M 99% /
/dev/sda7 41G 39G 422M 99% /.snapshots
/dev/sda7 41G 39G 422M 99% /var/tmp
/dev/sda7 41G 39G 422M 99% /var/spool
/dev/sda7 41G 39G 422M 99% /var/opt
/dev/sda7 41G 39G 422M 99% /var/log
/dev/sda7 41G 39G 422M 99% /var/lib/pgsql
/dev/sda7 41G 39G 422M 99% /var/lib/named
/dev/sda7 41G 39G 422M 99% /var/lib/mailman
/dev/sda7 41G 39G 422M 99% /var/crash
/dev/sda7 41G 39G 422M 99% /usr/local
/dev/sda7 41G 39G 422M 99% /tmp
/dev/sda7 41G 39G 422M 99% /srv
/dev/sda7 41G 39G 422M 99% /opt
/dev/sda7 41G 39G 422M 99% /boot/grub2/x86_64-efi
/dev/sda7 41G 39G 422M 99% /boot/grub2/i386-pc
/dev/sda2 96M 60M 37M 62% /boot/efi
/dev/sda8 690G 51G 640G 8% /home

After rebooting, disk usage is

df -h

Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.5G 0 3.5G 0% /dev
tmpfs 3.5G 116K 3.5G 1% /dev/shm
tmpfs 3.5G 2.3M 3.5G 1% /run
tmpfs 3.5G 0 3.5G 0% /sys/fs/cgroup
/dev/sda7 41G 39G 403M 100% /
/dev/sda7 41G 39G 403M 100% /.snapshots
/dev/sda7 41G 39G 403M 100% /var/tmp
/dev/sda7 41G 39G 403M 100% /var/spool
/dev/sda7 41G 39G 403M 100% /var/opt
/dev/sda7 41G 39G 403M 100% /var/log
/dev/sda7 41G 39G 403M 100% /var/lib/pgsql
/dev/sda7 41G 39G 403M 100% /var/lib/named
/dev/sda7 41G 39G 403M 100% /var/lib/mailman
/dev/sda7 41G 39G 403M 100% /var/crash
/dev/sda7 41G 39G 403M 100% /usr/local
/dev/sda7 41G 39G 403M 100% /tmp
/dev/sda7 41G 39G 403M 100% /srv
/dev/sda7 41G 39G 403M 100% /opt
/dev/sda7 41G 39G 403M 100% /boot/grub2/x86_64-efi
/dev/sda7 41G 39G 403M 100% /boot/grub2/i386-pc
/dev/sda2 96M 60M 37M 62% /boot/efi
/dev/sda8 690G 51G 640G 8% /home

I don’t know why disk space is being chewed up nor which other area to try to remove files from. Does anyone have any idea?

Apparently you are using btrfs. So that’s probably caused by the snapshots that are generated automatically.
Try to remove some with YaST->Snapper.

Many thanks. I threw away the entire update history with Snapper and that fixed the problem. :slight_smile: