Eu substituí o PATH em sudo gedit /etc/environment
pelo caminho usual do Linux /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
. O atual /etc/environment
tem apenas:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Também corri export PATH=$PATH:/usr/local/java/jdk1.8.0_111
.
Após reiniciar o sistema, estou preso em um loop de login infinito.
Ajuda por favor.
Estou mostrando a saída de tail ~/.xsession-errors
, ls /sbin/init
, type -a init
, init
, which init
tail ~/.xsession-errors
retorna
Script for ibus started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
/etc/x11/Xsession.d/99*11-common _start: line 5: exec: init: not found
ls /sbin/init
retorna /sbin/int
type -a init
retorna -bash: type: init: not found
init
retorna
Command 'init' is available in '/sbin/init'
The command could not be loaded because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your account.
init: command not found
which init
O shell permanece quieto e retorna o cursor piscando.
As soluções que já experimentei são:
1) Eu digitei chown hvs:hvs .Xauthority
e apertei enter a concha ficou quieta e retornei ao cursor piscante. Fui para a tela de login, ainda preso.
2) Eu digitei sudo dpkg-reconfigure lightdm
, então eu peguei este menu para selecionar o gerenciador de exibição padrão: gdm ou lightdm. Ao selecionar lightdm, ele retorna ao cursor intermitente. Eu reiniciei e a única diferença é que o Ubuntu mudou para o lightdm do GDM. Não funcionou também.
3) Eu também tentei redefinir minha configuração de unidade .
4) Eu Reinstalei o desktop do Ubuntu . Não funcionou, então eu instalei o Gnome . Não funcionou também.
5) Editado ~/.profile
no GNU nano para o script padrão:
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
6) criou uma nova conta de usuário . Não use.
Ainda não tentei o menu do GRUB e o modo de recuperação para montar o sistema de arquivos em rw mode
e editar o arquivo
Alguém tem alguma outra solução?