@ Sajjad I'm not sure of the result but try this after taking a back up
Chnge the repositories
deb
http://archive.ubuntu.com/ubuntu dapper main restricted deb
http://security.ubuntu.com/ubuntu dapper-security main restricted
Then update the package list and install sudo if you don't already have it installed:
# apt-get update
As a first step to getting all the installed packages in order, you can
manually force a reinstall of every package on your system to the
specific version available in Ubuntu, but since a typical Debian system
has over a thousand packages installed, that can be rather tedious. You
can save yourself some time by writing a little script like this:
#!/bin/sh
for name in \Qdpkg --get-selections | grep '[[:space:]]install$' \\
| awk '{print $1}'\Q
do
sudo apt-get install --assume-yes ${name}=\Qapt-cache show $name \\
| grep '^Version' | awk '{print $2}'\Q
done
It's highly likely that some packages you have previously installed
from the Debian archives won't "cross-grade" cleanly to the version
available in Ubuntu, and you may have to manually uninstall some
packages to allow the process to complete. Depending on how your system
is set up, you may need to do a lot of poking and prodding to get to
the point where:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
can execute cleanly.
Once you have your existing packages converted to the Ubuntu versions, it's time to pull in the core Ubuntu packages:
$ sudo apt-get install ubuntu-standard ubuntu-desktop
The result won't be perfect, but you should then have a system that is a reasonable approximation of a full Ubuntu install.
Saral
Seen at a link
http://ubuntuforums.org/archive/index.php/t-21741.html