![Ubuntu 14.04 부팅 오류 - setterm: $TERM이 정의되지 않았습니다.](https://linux55.com/image/61145/Ubuntu%2014.04%20%EB%B6%80%ED%8C%85%20%EC%98%A4%EB%A5%98%20-%20setterm%3A%20%24TERM%EC%9D%B4%20%EC%A0%95%EC%9D%98%EB%90%98%EC%A7%80%20%EC%95%8A%EC%95%98%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
어제 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