I installed ubuntu inside windows 7 using VMware. I wanted to execute a c program in ubuntu.
when I tried I got like this,
b@ubuntu:~/examples$ vim a.c The program 'vim' can be found in the following packages: * vim * vim-gnome * vim-tiny * vim-gtk * vim-nox Try: sudo apt-get install <selected-package> b@ubuntu:~/examples$ sudo apt-get install vim [sudo] password for b: Reading package lists... Done Building Dependency tree Reading state information... Done Package vim is not available, but is referred to by another Package. This may mean that the package is missing, has been obseleted, or is only available from another source E: Package 'vim' has no installation candidate I tried apt-get install vim E: Could not open lock file /var/lib/dpkg/lock - open (13:Permission denied) E:unable to lock the administration directory (/var/lib/dpkg/), are you root?
when I tried to do
su it asked me for a password . When I typed the root password its not accepting it and says "Authentication Failure"
I could not install the Vim package. Is there any way I can install it? Please suggest me. How do I regain my root paswword.