How to fix: Could not open ‘google-chrome-stable_current_i386.deb’

Problem:

I made a decision to switch to Linux Mint from Ubuntu. After the successful installation I tried to install some of my favorite applications that include Dropbox, Ubutnu One and Google Chrome.

To install Google Chrome, I downloaded the from Google Chrome website and when I double clicked on it to install it gave me following error: [Read more…]

How to fix: Linux Terminal hanged because of Ctrl+S [Quick Tip]

Problem:

It happened to me a number of times. Usually, I am habitual of using Ctrl+S to save a text editor like Word, Gedit etc. What goes wrong is when I am editing in command line editor such as Vi and I press Ctrl+S or if I accidently press this combination of key. Because it makes the terminal dead, frozen, hanged.

Reason:

Using Ctrl+S in Linux terminal locks the terminal output and it seems as if the terminal is frozen or hanged. It frustrates the most when it happens for the first time and user is simply unaware of the fact that he has accidently locked the terminal output.

Solution:

To unlock the terminal output use Ctrl+Q. It will resume the terminal output and put it back to normal.

Hope it helped you. Cheers :)

How to Solve: Can’t locate xxx.pm in @INC (@INC contains: …) in Perl [Quick Tip]

Problem:

When you install a Perl module, which depends upon other module, in a private directory, you may encounter an error like this:

Can’t locate Perl_Module_Name.pm in @INC (@INC contains: blah blah)

Reason:

As you can see, INC contains every other thing than the directory where your Perl module is installed.

Solution:

Try adding the concerned directory in the Perl library path like this:

export PERL5LIB=Path_to_the_Perl_Module_library

Hope it solves your problem.

How to copy all the content of a directory in Unix without “cp: omitting directory” error [Quick Tip]

Problem Scenario:

You want to copy all the contents of a directory (lets say source_dir) which contains lots of other files and subdirectories inside it to another directory (lets say target_dir). If you simply try cp command it may result in the following error:

command: cp source_dir target_dir
output: cp: omitting directory source_dir

If you try recursive copy (using option -r) the directory is copied inside the target directory which you may not be suitable if you want to duplicate the contents of the source directory.

command: cp -r source_dir target_dir
command: ls target_dir
output: source_dir

Solution:

If you want to copy just the contents of the source directory as in duplicating all its contents use the following command:

command: cp -r source_dir/* target_dir

This command will copy all the content (not the directory itself) in the target directory.

How to solve SSH error: REMOTE HOST IDENTIFICATION HAS CHANGED!

Problem:

A server which I regularly used to connect to using SSH one day gave me the following error:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! [Read more…]

How To Solve: apt-get install Error in Ubuntu

Problem:

An Ubuntu user often comes across an error (shown below the paragraph) while try to install an application using apt-get in the terminal, using synaptic or Ubuntu Software Center. This simple error may trouble a beginner Ubuntu User. The error looks something like this:

E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? [Read more…]