Thursday, November 22, 2012

Package 'make' has no installation candidate

If you encounter the message stated on the title post when you try to install make on your Ubuntu server as shown below:

abc@abc:/etc/apt$ sudo apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'make' has no installation candidate

There is a possibility that your source is down and this is what happen to me when i do sudo apt-get update
As you can see there are a lot of "Gateway Timeout" message. So to solve this, i have to manually change the source from sg.archive.ubuntu.com to source like us.archive.ubuntu.com.

Open this file, /etc/apt/sources.list and replace all the sg.archive.ubuntu.com to us.archive.ubuntu.com. After that, do the sudo apt-get update and if the source is workable, you should not see any error messages as shown below:
And now i can install make without problem
abc@abc:/etc/apt$ sudo apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  make-doc
The following NEW packages will be installed:
  make
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 119 kB of archives.
After this operation, 324 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main make amd64 3.81-8.1ubuntu1.1 [119 kB]
Fetched 119 kB in 3s (36.6 kB/s)
Selecting previously unselected package make.
(Reading database ... 84546 files and directories currently installed.)
Unpacking make (from .../make_3.81-8.1ubuntu1.1_amd64.deb) ...
Processing triggers for man-db ...
Setting up make (3.81-8.1ubuntu1.1) ...

Thursday, November 15, 2012

Noisy laptop CPU fan

If you have a laptop that start to generate a lot of noise, this might be because your CPU fan need some lubricant treatment. Steps below show you how i do that to my Fujitsu laptop T5010. (Please note that if your laptop is still under warranty, it is probably wiser for you to contact the manufacturer on this issue before you attempt to do the steps below)

Firstly, you need to prepare the following:

  • screw driver
  • Singer oil

Singer oil is actually very cheap and i actually got it for just 1 SGD.


After that, you need to start to unscrew the back cover of your laptop. But before you do that, make sure your laptop is powered down and also battery is taken out. Unscrew the screws as shown below with the red arrow.


After take out the back cover. Unscrew your fan as well so you can take it out. You also need to unplug the power connector.


The fan that is used in this laptop uses brushless motor. There is copper wire coil on the main fan frame and magnet on the blade.The change of magnetic filed once the coil is energized is what caused the blade to spin.My explanation is probably a bit brief but if you are rather interested on how this works, you can refer to this link.

So to put the oil to the bearing, you actually have to separate out the blade from the main fan frame. with just a little force, you can take out the blade rather easily, it is attached to the main fan frame with some magnetic force. After you take out the blade, you just need to put the oil onto the bearing and shaft as shown below with red arrow point to it.


After oil is applied to it, assemble everything back and you should be able to enjoy your quiet CPU fan again