Friday, January 26, 2018

dpkg cannot find ldconfig/start-stop-daemon in the PATH variable


I have this problem in my ubuntu server 11.04,

Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: error: 2 expected programs not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)

And I found the solution from  https://ubuntuforums.org/showthread.php?t=1266104, I adjust it to my ubuntu version.

1. sudo apt-get download libc-bin    // download the library
2. sudo dpkg-deb -x libc-bin*.deb libc-bin-unpacked/              // unpack it
3. sudo cp libc-bin-unpacked/sbin/ldconfig* /sbin/    // copy to sbin folder
--- sometimes, you need to remove old one, I did it using sudo rm -rf /sbin/ldconfig*

4. sudo apt-get -f install
5. sudo dpkg-reconfigure libc-bin
6. sudo apt-get install --reinstall libc-bin

One error now is gone. Another one is solved using guide from https://ubuntuforums.org/showthread.php?t=1919127, Below is the guide:

1. Download the dpkg package from http://launchpadlibrarian.net/63806751/dpkg_1.15.8.10ubuntu1_amd64.deb


2. Copy the file into a temporary location:
mkdir ~/dpgk_temp
cp ~/Downloads/dpgk*.deb ~/dpkg_temp
cd ~/dpgk_temp


3. Extract the files from the archive:
ar x dpkg*.deb
tar xfvz data.tar.gz


4. Copy the file to /sbin:
sudo cp ./sbin/start-stop-daemon /sbin


5. Try update the apt information:
sudo apt-get update
sudo apt-get upgrade



Thank you to those who gives us solution, I just put this in here as my reference.


Tuesday, October 26, 2010

Resetting Password on MacOS

One of my friend called me and asked how could he reset the password on his macbook. quick browsing on google, found these interestings:

  • http://support.apple.com/kb/ht1274
  • http://sg.answers.yahoo.com/question/index?qid=20071012020748AAvXTi9

Not testing yet, but should be working since one of it is directly from Apple.

Tuesday, June 9, 2009

ICEfaces Day 1: Installing ICEfaces in NetBeans 6.5.1

The best explanation about ICEfaces can be seen at their website, http://www.icefaces.org/main/home/.

Now, the step to install it on the NetBeans 6.5.1:

1. Run NetBeans 6.5.1.

2. Navigate to the Tool -> Plugins. Go to Available Plugins tab, type "icefaces" on the search box. It is already there. However, they are not the latest version. Go with them if you just want to try ICEfaces. Install them and you are finish. Otherwise, follow the next steps to install the latest version (as for today it is ICEfaces 1.8.1 20090526).

3. Using your favourite browser go to http://www.icefaces.org/main/downloads/os-downloads.iface?category=NetBeans look for the plugin for NetBeans 6.5. Downloand it.

4. After finish downloading the file, extract it somewhere, for example in you Desktop or Download folder.

5. Back to NetBeans window, in Plugins window. Navigate to Downloaded tab. Click on "Add plugins ...". Navigate to where you extract the files and select org-icefaces-netbeans-modules-lib.nbm, org-icefaces-netbeans-modules-visualweb-frameworks.nbm, and org-icefaces-netbeans-modules-web-frameworks.nbm under nbms folder on your extracted folder. Then, click on "Install" button to start the installation.

6. During the installation process, a warning about the signing but not trusted plugin will appear. Just click on "Continue". This warning is appeared because this is not yet verified by NetBeans.

7. After the installation of the plugin is finished. Close the Plugins window. Start a new project and verify that the plugin has been installed by looking whether you can make a new Project, Web -> Web application then on the last wizard page (4. Framework), you can see "ICEfaces" and "Visual Web ICEfaces".


Now, that the ICEfaces is installed on the NetBeans, see you on the next day to "play" with it.