i recently downloaded BT5 from the website and installled it on a vertiual machine. once installation is finished i tried to update everything using the setps below

#apt-get update && apt-get upgrade

After that i tried to updating Metasploit by uninstalling and then reinstalled it, guessing that this would installed latested Metasploit, like below

#cd /opt/framework3
/opt/framework3#./uninstall
/opt/framework3#apt-get install metasploit

Then i tried to connecting to msfconsole , but it gave me an error asshown below

#msfconsole

shell-init:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/opt/metasploit/msf3/lib/fastlib.rb:362:in 'pwd' : No such file or directory - getcwd (errno: : ENOENT)
from /opt/metasploit/msf3/lib/fastlib.rb:362: in '<mudle:Kernel>'
from /opt/metasploit/msf3/lib/fastlib.rb:355: in '<top (required)>'
from /opt/metasploit/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36: in 'require'
from /opt/metasploit/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36: in 'require'
from /opt/metasploit/msf3/msfconsole:18: in '<main>'

can anyone help or can anyone tell me how to update metasploit on BT5, if im doing it wrongly.

Thanks