2

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.
aayu5h
  • 121

1 Answers1

1

You can install Octave latest by using below:

sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave

apt-get build-dep octave

Or

Adding a line to your /etc/apt/sources.list

amd64: http://packages.ubuntu.com/trusty/amd64/libgraphicsmagick3/filelist

i386: http://packages.ubuntu.com/trusty/i386/libgraphicsmagick3/download

Or

You can Download and compile octave:

sudo apt-get build-dep octave
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz
tar xf octave-4.0.0.tar.gz
cd octave-4.0.0/
./configure
make 
sudo make install
Ramesh Chand
  • 7,564