I have the same old printer.
I got mine to work with the help of this guide:
https://bbs.archlinux.org/viewtopic.php?id=218509
Although the tutorial was made for the 1020 version, it worked here with the 1018 version in several distros. (Arch, Manjaro, EOS etc.)
I use foo2zjs-nightly 20201127-1 driver.
Edit:
One of the key points:
Forget about hplip
package - it is useless, it will work until first printer restart, unplug & plug or desktop reboot.