Monday 5 September 2016

Ubuntu Locale Warning from Perl

Error

perl: warning: Please check that your locale settings:
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Fix

Add the below two entries in ~/.bashrc

LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8

( or )

sudo locale-gen

sudo dpkg-reconfigure locales

Thursday 1 September 2016

No apport report written because MaxReports is reached already

This error comes mostly because of the debian broken packages. To fix broken packages, follow the below simple steps

Lets say for instance, I have foreman broken packages, to fix foreman installation,

sudo dpkg --purge foreman
sudo dpkg --purge foreman-proxy
sudo dpkg --purge foreman-compute
sudo dpkg --purge foreman-libvert
sudo dpkg --purge foreman-sqlite3
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get update
sudo apt-get -f install

Tuesday 30 August 2016

activesupport requires Ruby version >= 2.2.2

Rails installation error in Ubuntu

ERROR:  Error installing rails:
        activesupport requires Ruby version >= 2.2.2

Fix

gem install rails -v 4.2.2

Tuesday 23 August 2016

Remove APT Repository from newer versions of Ubuntu

To remove apt repository from newer versions of Ubuntu, Just type the below command in terminal

cd /etc/apt/sources.list.d

and then remove the files manually using

sudo rm -f <<filename>>.list
sudo rm -f <<filename>>.save

Puppet Master & Client Uninstallation in Ubuntu

Uninstall puppetmaster-common

sudo apt-get remove puppetmaster-common

This will remove just the puppetmaster-common package itself.

Uninstall puppetmaster-common and it's dependencies

sudo apt-get remove --auto-remove puppetmaster-common

This will remove the puppetmaster-common package and any other dependant packages that are no longer needed.

Purging your config/data

If you also want to delete your local/config files for puppetmaster-common then this will do the trick.

sudo apt-get purge puppetmaster-common

Or similarly, like this


sudo apt-get purge --auto-remove puppetmaster-common




Uninstall just puppet

sudo apt-get remove puppet

This will remove just the puppet package itself.

Uninstall puppet and it's dependencies

sudo apt-get remove --auto-remove puppet

This will remove puppet package and any other dependant packages that are no longer needed.

Purging your config/data too

If you also want to delete your local/config files for puppet then this will do the trick.

sudo apt-get purge puppet

Or like this,

sudo apt-get purge --auto-remove puppet

Saturday 19 December 2015

Android Studio JVM Error

Error:  android studio was unable to find a valid JVM

Fix:

  •    Go to Applications->Android Studio
  •    Right click and choose Show Package Contents
  •    Open Info.plist
  •    Change the key JVMversion to 1.7* or 1.8* ( depends on which jdk is installed in your mac )

Sunday 22 November 2015

setColor cocos2dx compile error

Error: setColor cocos2dx compile error

Fix:

  ccColor3B c3 = { 0, 0, 0 };
  selectedImage->setColor(c3);