Ошибка on loading after upgrade to 14.04LTS

I have recently upgraded my system to 14.04LTS from 12.04LTS. After the kubuntu display, I received this message

Error found when loading /home/username/.profile :\n\nstdin is not a tty\n\n As a result the session will not be configured correctly. You should fix this problem as soon as feasible.

After, I clicked the OK button, it disappeared and I could and my screen came up в per the нормальный fashion. But this message, reappears each украл I start my system.

I tried the following command in vain

cp /etc/skel/.profile ~/.profile

The contents of my .profile file пахал

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then    
 if [ -f ~/.bashrc ]; then    
    . ~/.bashrc    
 fi    
fi

mesg n
0
задан 23 December 2015 в 13:03

1 ответ

Согласно это сообщение Форумов Ubuntu , проблема mesg n:

В конце того файла Вы имеете:

mesg n

, Но это не делает работ в графическом режиме, потому что (взятый от человека mesg) "mesg предполагает, что его стандартный вход подключен к Вашему терминалу".

Изменение это к:

if `tty -s`; then
   mesg n
fi

я сказал бы, что mesg n должен быть в Вашем .bashrc, не в .profile, который должен только предположить, что это выполняется в оболочке POSIX.

1
ответ дан 26 July 2019 в 11:34

Другие вопросы по тегам:

Похожие вопросы: