Octave 4.0 installation on ubuntu 14.04 from PPA

Octave is one of the free and open source alternative to MATLAB, can be used for numerical computations, image processing, data analysis and in many fields. Ubuntu 14.04 comes with octave version 3.8, Which has some less features needed for image processing. Version 4.0 comes with the more features and therefore I install PPA on my system to get updated version of octave. Install the required dependencies using command:

$sudo apt-get build-dep octave

Now install octave: $ sudo apt-add-repository ppa:octave/stable
$ sudo apt-get update
$ sudo apt-get install octave
$ sudo apt-get install liboctave-dev
liboctave-dev comes with the necessary tools/ development files for the GNU Octave language

Note: during my installation I had some issues of incomplete configurations, which I solve as: https://jasleen7956.wordpress.com/2016/03/05/errors-were-encountered-while-processing-e-sub-process-usrbindpkg-returned-an-error-code-1/
Now octave is installed, to launch it type: $octave

To launch only cli, $octave-cli

To install packages inside octave, open octave and type 

octave >> pkg install -forge <package-name>

Now, the package is installed but you need to load the installed package in octave to use commands of this package

octave >> pkg load <package-name>

You can see the list of packages currently loaded in octave as:

octave >> pkg list

Now you can run octave commands for you work. That’s it 🙂

Advertisements
Posted in Image processing, octave | Leave a comment

Errors were encountered while processing: E: Sub-process /usr/bin/dpkg returned an error code (1)

During installation of octave, I got these errors regarding configuration of packages:

config-errors

This is because during installation of packages, they get installed but yet configured to octave configuration file. Therefore, I tried command

$sudo dpkg --configure -a && sudo apt-get update --fix-missing

But those errors still persists. On searching, I found solution is to remove the block of error creating packages from this filet /var/lib/dpkg/status, so I opened this file and remove those blocks. Those config errors got removed but there was still a little error :

/usr/bin/octave-cli: error while loading shared libraries: liboctave.so.2: cannot open shared object file: No such file or directory
dpkg: error processing package octave (–configure):
subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin (2.19-0ubuntu6.7) …
Errors were encountered while processing:
octave
E: Sub-process /usr/bin/dpkg returned an error code (1)

To remove this I purge all those octave-* packages  as:

$sudo apt-get purge octave-*

But there were still some octave files on my system which were creating troubles. So to remove all those things I manually search those files and deleted it. But there are many more files of octave. so its better to reduce such tedious job of deleting one by one with deleting at once, using:

$locate octave | xargs rm -Rf

what this command do is, it search for octave files in a system and xargs taking them as input one by one and append all those files to rm -RF. Thus we can delete every instance of octave 🙂

Now it was time to update,

$sudo apt-get update

and hence, problem solved 🙂

Posted in octave, Uncategorized | Leave a comment

Introducing myself.

Watery blue, Grassy’s green, these are the colors of my Dream.

Deep inside, walking alone, this is the home to whom I belong.

Thoughtful Days, Dreamy nights, these are my daily diets.

Reading books, exploring myself, this is my ever time best friends.

…………………………………………………………………………………………………………..

I am a child of God. 🙂

IMG-20160116-WA0010

 

 

 

 

 

 

 

 

…………………………………………………………………………………………………………

That’s all about me 🙂

Posted in Daily Dairy | Leave a comment

‘dance with the change’

Screenshot from 2016-01-21 01:13:01

Image | Posted on by | Leave a comment

Wifi problem solved in M$ Windows

I was having WiFi connection problem in M$ Windows which I had installed alongside  ubuntu but never use. I check BIOS Settings, then troubleshooting and all what I could do. After looking into all solutions/troubleshoots, I contact one of my expert friend Mandeep for this. He gave me solution for installing drivers from a site. I installed two drivers  Atheros Wireless LAN Driver and Intel Wireless LAN Driver.  and they solved my problem 🙂 Now I can connect to wifi 🙂

Thanks to Mandeep Singh. Your knowledge and care always help me in life. God bless you.

Posted in Uncategorized | Leave a comment

W: GPG error: http://linuxcnc.org lucid Release: The following signatures couldn’t be verified because the public key is not available.

While updating with command $sudo apt-get update I got warning,

W: GPG error: http://archive.canonical.com jaunty Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY *************

This means you have lost the signing key, or never got it.

Screenshot from 2015-07-09 00:00:35

To fix it, use command:

$sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys
3CB9FD148F374FEF

Where 3CB9FD148F374FEF is the my hexadecimal missing key to be verified. Replace it with your own. 🙂

Reference: fix apt-get update warning: the following signatures couldn’t be verified because the public key is not available

Posted in Uncategorized | Tagged , , | Leave a comment

“sha256sum mismatch jdk-7u3-linux-x64.tar.gz ” error when trying to install Oracle Java

When I tried to install Oracle Java with command

$sudo apt-get install oracle-java7-installer

I got error

...
..
Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-central (0.6.17ubuntu1) ...
Setting up python-eggtrayicon (2.25.3-11) ...
Setting up gmail-notify (1.6.1.1-1ubuntu1) ...
Processing triggers for python-central ...
Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

I start my search for this error

E: Sub-process /usr/bin/dpkg returned an error code (1)

I delete lock file from /var/lib/dpkg/ and also clear the partial packages from /var/cache/apt/archives and tried force installation too with $sudo apt-get -f install  . But still got same error.

When I look more precisely into it, I found this line:

sha256sum mismatch jdk-7u3-linux-x64.tar.gz

I googled about it and find that my oracle installation is conflicting with  halfly configured oracle( I tried before, but due to electricity cut off, I could not complete this installation).

I found these commands that help me.

sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Reference:  http://askubuntu.com/a/126419

Posted in Linux | Tagged , , | Leave a comment