I'm trying to edit the apt-daily.timer service because my boot time is very slow. I tried following the top answer on this question. However, when I try running sudo systemctl edit apt-daily.timer
I keep getting the error Cannot edit units if not on a tty. Apparently, it shouldn't be an issue in the first place, but I get the same error even when I am on a tty.
I'm on Ubuntu 20.04, upgraded from 18.04. And my Systemd version is 245 (245.4-4ubuntu3.2).