Categories
Linux Open Source Solutions Web

Fixing WiFi regulatory rule in Unix

Wifi routers usually specify the regulatory rules for all devices connected to their network. In rare cases a router may go rouge and specify the wrong regulatory domain, which might effect the quality of the connection and at times may make the network unreachable even if the network says that its connected.

Below are the debug messages from the command “dmesg” in one such case:

Categories
Android Apps

How to Fix the “Could Not Install On USB Storage Or SD Card” Error – Android

Android Market
Image via Wikipedia

The “Could Not Install On USB Storage Or SD Card” error on Android phones apparently occurs when something goes wrong with the installation of an app and temp file is left on your Android OS. There is a work around and a fix for this problem.

The Work Around:

  • Unmount your SD card
  • Install the app
  • Mount your SD card
  • Move the app to the SD card
{adinserter 3}

The Fix:
Note: I suggest you backup your sd card before you try this method. It worked perfectly on my Galaxy Ace but there is no guarantee that it might not cause any data loss.

  • Connect your phone to your PC as a mass storage device
  • Backup important data
  • Find the folder named “.android_secure”
  • Inside it, delete the file called “smdl2tmp1.asec”
  • Disconnect your phone
  • Install the App you were trying to install

Hope this helps you 🙂

Categories
Open Source Ubuntu

Fixing – “Internal error: Segmentation fault”

Recently while compiling some programs I received an unique error message:

c++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.

Even compiling a simple Hello World program gave the same error.

To fix the problem I needed to use a program called debsums on Ubuntu. debsums is a program used to check the MD5 checksums of your installed deb packages. You can install it using the command:

sudo apt-get install debsums

and run it using the command:

debsums | grep -v OK

The above command lists all the packages which have not been installed correctly. If the following line is present in the output:

/usr/lib/gcc/i486-linux-gnu/4.4/cc1plus FAILED

then all you need to do to fix your system is the following command:

sudo apt-get –reinstall install g++-4.4

Now when you compile your code the earlier error shouldn’t appear.