Ubuntu karmic koala 9.10

I am using Ubuntu Karmic Koala Version 9.10 installed in a VMWARE on my Windows Lappie. My issue is that i am not able to spawn a korn shell with the ksh command that we generally use. Could someone help me out?

Most Linux distributions do not install the Korn Shell by default. You'll have to do that by running

sudo aptitude install ksh

from a terminal.

hi all!
I have tried the command that you replied, but for that its asking for the SU password which is not set as i am the superuser and didnot set the Su password. Could you help me out.

sudo isn't asking for the root password (which is something random by default in Ubuntu) but for your (the users) password.

Where can i find the default Su password in Ubuntu?

Again: by default the root user on Ubuntu is made unavailable by setting a random password. That's because the philosophy of Ubuntu is not to confuse the user with differentiating between a regular user and root.

For that reason, Ubuntu uses sudo instead of su for anything that requires administration privileges. sudo, by default, asks for the password of the user trying to run a command, instead of the password of the user you're trying to run as. So if you're logged in as user 'bdiwakarteja', sudo will ask for the password of the user 'bdiwakarteja', not for the root password.

i tried the command

sudo apt-get install ksh

i received the error:

Well, according to the official package list, it's called ksh. What are the contents of your /etc/apt/sources.list ?

Hey buddy!
I tried searching in Ubuntu forums site and found a solution to the problem. the link is
Ubuntu Desktop Computing Made Easy Karmic Koala 9.10 - Ubuntu Forums .
will let u know if it worked....:b:

I highly doubt that will help you with your original problem, as that's a description on how to add software that's not part of the Ubuntu repositories. The Korn Shell, however, is already a part of these repos.

if ksh was a part of my repositories then why would it give the error as "couldnt find the package"

In order to find the solution to that I already asked you for the contents of your /etc/apt/sources.list
Maybe you've got a wrong mirror set, or even none at all. Or maybe it's just way out of date.

i cant paste what i have in my VMware output.. thats my only problem.. any particular string that u want me to check in the output of the command for?

Karmic Koala needs extra repositories to install ksh, see these directions.

Yep Pludi. Will check the mirror and mail to you shortly.had to discontinue the conversation as it was late night and went to sleep.

try this

 sudo su 

then

passwd root

enter new password for root

then

log in as root

su root
vi /etc/apt/sources.list

add this in the end of file

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse

run

apt-get update 

then install ksh

apt-get install ksh

and this will show

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
ksh