sudo apt-get build-dep octave is not working.
The error message is
E: Build-Depends dependency for octave cannot be satisfied because the package automake cannot be found
I have modified the /etc/apt/sources.list file with deb replaced by deb-src. Even when I try sudo apt-get install octave, an error is displayed that the package is not located.
Edit: I have added deb-src lines into sources.list file(not replaced deb this time) and then sudo apt-get update. Now when I try to build the dependency I am getting this error :
The following packages have unmet dependencies: libgraphicsmagick++1-dev : Depends: libgraphicsmagick1-dev but it is not going to be installed.
E: Build-dependencies for octave could not be satisfied.