Message pops up on booting ubuntu 16.04 lts

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
Error found when loading /home/user/.profile
/home/user/.profile line 20: command not found
As a result the session will not be configured correctly
Fix the problem as soon as feasible
This is the output of cat -n /home/user/.profile:
1 # ~/.profile: executed by the command interpreter for login shells.
2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3 # exists.
4 # see /usr/share/doc/bash/examples/startup-files for examples.
5 # the files are located in the bash-doc package.
6
7 # the default umask is set in /etc/profile; for setting the umask
8 # for ssh logins, install and configure the libpam-umask package.
9 #umask 022
10
11 # if running bash
12 if [ -n "$BASH_VERSION" ]; then
13 # include .bashrc if it exists
14 if [ -f "$HOME/.bashrc" ]; then
15 . "$HOME/.bashrc"
16 fi
17 fi
18
19 # set PATH so it includes user's private bin directories
20 if [ -d "$HOME/bin"] ; then
21 PATH="$HOME/BIN:$PATH"
22 fi
23
24 #Make JAVA_HOME first...
25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
26 PATH="$PATH:$JAVA_HOME/bin"
What should I do?
16.04 bash
add a comment |Â
up vote
0
down vote
favorite
Error found when loading /home/user/.profile
/home/user/.profile line 20: command not found
As a result the session will not be configured correctly
Fix the problem as soon as feasible
This is the output of cat -n /home/user/.profile:
1 # ~/.profile: executed by the command interpreter for login shells.
2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3 # exists.
4 # see /usr/share/doc/bash/examples/startup-files for examples.
5 # the files are located in the bash-doc package.
6
7 # the default umask is set in /etc/profile; for setting the umask
8 # for ssh logins, install and configure the libpam-umask package.
9 #umask 022
10
11 # if running bash
12 if [ -n "$BASH_VERSION" ]; then
13 # include .bashrc if it exists
14 if [ -f "$HOME/.bashrc" ]; then
15 . "$HOME/.bashrc"
16 fi
17 fi
18
19 # set PATH so it includes user's private bin directories
20 if [ -d "$HOME/bin"] ; then
21 PATH="$HOME/BIN:$PATH"
22 fi
23
24 #Make JAVA_HOME first...
25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
26 PATH="$PATH:$JAVA_HOME/bin"
What should I do?
16.04 bash
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Error found when loading /home/user/.profile
/home/user/.profile line 20: command not found
As a result the session will not be configured correctly
Fix the problem as soon as feasible
This is the output of cat -n /home/user/.profile:
1 # ~/.profile: executed by the command interpreter for login shells.
2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3 # exists.
4 # see /usr/share/doc/bash/examples/startup-files for examples.
5 # the files are located in the bash-doc package.
6
7 # the default umask is set in /etc/profile; for setting the umask
8 # for ssh logins, install and configure the libpam-umask package.
9 #umask 022
10
11 # if running bash
12 if [ -n "$BASH_VERSION" ]; then
13 # include .bashrc if it exists
14 if [ -f "$HOME/.bashrc" ]; then
15 . "$HOME/.bashrc"
16 fi
17 fi
18
19 # set PATH so it includes user's private bin directories
20 if [ -d "$HOME/bin"] ; then
21 PATH="$HOME/BIN:$PATH"
22 fi
23
24 #Make JAVA_HOME first...
25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
26 PATH="$PATH:$JAVA_HOME/bin"
What should I do?
16.04 bash
Error found when loading /home/user/.profile
/home/user/.profile line 20: command not found
As a result the session will not be configured correctly
Fix the problem as soon as feasible
This is the output of cat -n /home/user/.profile:
1 # ~/.profile: executed by the command interpreter for login shells.
2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3 # exists.
4 # see /usr/share/doc/bash/examples/startup-files for examples.
5 # the files are located in the bash-doc package.
6
7 # the default umask is set in /etc/profile; for setting the umask
8 # for ssh logins, install and configure the libpam-umask package.
9 #umask 022
10
11 # if running bash
12 if [ -n "$BASH_VERSION" ]; then
13 # include .bashrc if it exists
14 if [ -f "$HOME/.bashrc" ]; then
15 . "$HOME/.bashrc"
16 fi
17 fi
18
19 # set PATH so it includes user's private bin directories
20 if [ -d "$HOME/bin"] ; then
21 PATH="$HOME/BIN:$PATH"
22 fi
23
24 #Make JAVA_HOME first...
25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
26 PATH="$PATH:$JAVA_HOME/bin"
What should I do?
16.04 bash
16.04 bash
edited Mar 15 at 13:50
RoVo
5,5641237
5,5641237
asked Mar 15 at 13:40
yashkanna 6à Ãhkà ññÃ
12
12
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".
Replace
if [ -d "$HOME/bin"] ; then
PATH="$HOME/BIN:$PATH"
fi
with
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".
Replace
if [ -d "$HOME/bin"] ; then
PATH="$HOME/BIN:$PATH"
fi
with
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
add a comment |Â
up vote
4
down vote
There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".
Replace
if [ -d "$HOME/bin"] ; then
PATH="$HOME/BIN:$PATH"
fi
with
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
add a comment |Â
up vote
4
down vote
up vote
4
down vote
There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".
Replace
if [ -d "$HOME/bin"] ; then
PATH="$HOME/BIN:$PATH"
fi
with
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".
Replace
if [ -d "$HOME/bin"] ; then
PATH="$HOME/BIN:$PATH"
fi
with
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
edited Mar 15 at 13:49
pa4080
12.3k52256
12.3k52256
answered Mar 15 at 13:45
RoVo
5,5641237
5,5641237
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1015193%2fmessage-pops-up-on-booting-ubuntu-16-04-lts%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password