Upgrade octave-signal package
GNU Octave remez() is for Parks-McClellan FIR filter coefficient design in the signal package. This is approximately equivalent to Matlab firpm().
From Octave prompt, install the signal package:
pkg install -verbose -forge signal
For more details, including compilers needed, see the GNU Octave pkg install page