Ubuntu 14.04ブートエラー - setterm:$ TERMが定義されていません。

Ubuntu 14.04ブートエラー - setterm:$ TERMが定義されていません。

昨日、Ubuntu 14.04を使用してラップトップを再起動しましたが、ログイン画面とロードUIの間に次のエラーメッセージが表示されました。

Error found when loading /etc/profile  
setterm: $TERM is not defined  
As a result the session will not be configured correctly. You should fix the problem as soon as feasible.   

ルーチンが開始されるたびにメッセージが再表示されます。この問題を引き起こす可能性がある特別な状況に言及することはできません。これまで目立った他の効果はありませんでした。

問題は何であり、どのように解決しますか?私は今このコンピュータを使用しているので、必要なすべてのコンテキスト情報を提供できます。

私のetc/profileファイルは次のとおりです。

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi 

ベストアンサー1

.profileの "setterm"行に-term xtermを追加してみてください。

例えば、

setterm -blength 0

移動:

setterm -term xterm -blength 0

おすすめ記事