Errors when running `sudo apt-get upgrade`

I keep getting dpkg: cannot write to log file '/var/log/dpkg.log': No space left on device errors.

When I run df I see the following:

/dev/zram1         49560    48536         0 100% /var/log

Is there any way to increase the size of zram1? I tried a few suggestions that I found online, but none of them worked.

Or is there a better fix for this issue?

Thanks!

I’ve been intermittently trying to solve this issue myself with no luck. I think it started happening after I updated the ubuntu kernel–did you happen to update yours?

Yes. That’s when it started for me too.