I am trying to get rid of a couple of rain rate errors in my database using the guide here
when I run
echo "SELECT * FROM archive WHERE (rainRate > 10);" | sqlite3 /var/tmp/backup.sdb
it shows the two records I need to get rid of but when I run
echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sqlite3 /var/tmp/backup.sdb
it says Error: near line 1: attempt to write a readonly database. I have tried with sudo with the same results