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.
4
  • Why would you replace deb with deb-src? Undo that and add deb-src lines instead.
    – muru
    Feb 6, 2016 at 7:08
  • @muru Ok I did that. Now I'm 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
    Feb 6, 2016 at 7:14
  • 1
    Edit your question if you have new information to add.
    – muru
    Feb 6, 2016 at 7:15
  • 1
    Possible duplicate of How do I install software using the Ubuntu Software Center? Feb 6, 2016 at 7:56

1 Answer 1

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
3
  • I am getting an error while using sudo apt-get build-dep octave 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
    Feb 6, 2016 at 8:59
  • Give a try to Download Octave and compile it ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz Feb 6, 2016 at 10:26
  • Octave is working without doing sudo apt-get build-dep octave . What is the need of this step then?
    – aayu5h
    Feb 6, 2016 at 11:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .