Falha no login do Ubuntu 16.04LTS

0

Eu tenho um Ubuntu rodando no VirtualBox no sistema operacional Windows. Tudo funcionou bem de muitos dias. Eu poderia ter alterado alguns arquivos de inicialização relacionados ao SO, como /etc/environment ou ~/.bashrc , para que ele funcionasse.

Quando reiniciei meu Ubuntu Box hoje, nunca passei da tela de login da GUI. Eu tentei muitas vezes com a senha correta, mas ela sempre volta para a tela de login.

Então eu tentei fazer o login a partir da linha de comando usando o SSH. Os erros que recebi estão listados abaixo. O login do SSH também é instável, pois será fechado após alguns segundos.

   Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-42-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

154 packages can be updated.
0 updates are security updates.

Last login: Fri Dec 29 10:51:00 2017 from 10.40.12.94
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
rajesh@rajesh-VirtualBox:~$

Acho que eu mudei alguns PATH e copiei o export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" para /etc/environment e ~/.bashrc também.

my /etc/envirronment está como abaixo

    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
export JAVA_HOME=/usr/local/java/jdk1.8.0_91
export JRE_HOME=$JAVA_HOME/jre
export PLAY_HOME=/home/rajesh/Downloads/play-1.3.4
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$PLAY_HOME/play
export PHANTOMJS_BIN=/usr/local/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin//phantomjs
export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8005"

Ele nunca funcionou e mostra as mesmas mensagens de login sempre que eu tento fazer SSH.

Há algo faltando aqui? Eu tenho alguns dados importantes nesta caixa que eu não consigo acessar via GUI ou SSH.

Alguém pode ajudar?

    
por rakeeee 29.12.2017 / 11:13

0 respostas