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:


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: 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:
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. 🙂











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: 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: 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 –recv-keys

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 ( ...
Processing triggers for python-central ...
Errors were encountered while processing:
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


Posted in Linux | Tagged , , | Leave a comment

Installation Oracle JDK-7 on Linux

Whenever you need to install java, do prefer the Oracle JDk rather than the OpenJDK, because Oracle JDK has more advance features support.

$sudo add-apt-repository ppa:webupd8team/java
 $sudo apt-get update
 $sudo apt-get install oracle-java7-installer
Check version of Java:
 $java -version
 java version "1.7.0_80"
 Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
 Java HotSpot(TM) Server VM (build 24.80-b11, mixed mode)

Posted in Linux | Tagged , , | Leave a comment