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 🙂

About Jasleen Kaur

Hi, I am Jasleen kaur, a Computer Science Student.
This entry was posted in octave, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s