LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2017, 03:03 PM   #1
The_Engineer_
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Rep: Reputation: Disabled
-bash error after Java installation (debian 8 jessie)


Hello there!

I installed Java 8 with this instructions (https://debian-blog.org/java-8-installieren) a few days ago.

Now, when i login through putty, i get this error messages:

-bash: id: command not found
-bash: [: : integer expression expected
-bash: dircolors: command not found
-bash: mesg: command not found

can you help me ?
 
Old 04-13-2017, 04:25 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Does this happen with all users or just one user? If you only have one user, try creating another user and cross comparing. It'd help figure out if it is something related to the specific user or to the system overall. Have you confirmed if other shells are also affected such as dash for example.
 
Old 04-13-2017, 05:40 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
in terminal, issue
Code:
bash --norc
and if there's no further error message, then have a look at ~/.bashrc, or possibly ~/.profile

Once you have found this code (looks like a compound function) and edited it, or commented...
just issue
Code:
source ~/.bashrc # or
source ~/.profile
and verify.
 
Old 04-14-2017, 09:53 AM   #4
The_Engineer_
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by r3sistance View Post
Does this happen with all users or just one user? If you only have one user, try creating another user and cross comparing. It'd help figure out if it is something related to the specific user or to the system overall. Have you confirmed if other shells are also affected such as dash for example.
It happens with all users
 
Old 04-14-2017, 10:01 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
That's an ubuntu ppa. Not exactly compatible with debian.

You might try java-package to make a compatible .deb from the oracle tarball via make-jpkg.
 
Old 04-14-2017, 10:09 AM   #6
The_Engineer_
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by Habitual View Post
in terminal, issue
Code:
bash --norc
and if there's no further error message, then have a look at ~/.bashrc, or possibly ~/.profile

Once you have found this code (looks like a compound function) and edited it, or commented...
just issue
Code:
source ~/.bashrc # or
source ~/.profile
and verify.
well, i think i did something wrong ... when i connect to the server putty shuts down after 5 seconds
 
Old 04-14-2017, 10:41 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,513

Rep: Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552
yes, because either .bashrc or .profile (or some other file) was damaged during install. You must not install ubuntu packages on debian.
you need to find which file was changed during install, probably you can check their time and fix them...
 
Old 04-14-2017, 11:16 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by The_Engineer_ View Post
well, i think i did something wrong ... when i connect to the server putty shuts down after 5 seconds
Please describe the elements of this connection to the server using putty.
Specifically, who is "connecting" to the server using putty? User, root, other_with_privs?
How is the connection being made? Key or password?
Without details, it's guessing.
 
Old 04-14-2017, 05:18 PM   #9
The_Engineer_
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks all for your help but i don't have the time to figure out what the problem is.
I already set up a new debian 8 server which works fine.
 
Old 04-14-2017, 05:33 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After new installation of debian jessie prudra General 5 03-22-2016 07:34 AM
Java 8 jre-8u74 installation after downloading on to Debian GNU/Linux 8 (jessie) 64 bit windsurfer1 Debian 2 03-18-2016 11:15 PM
LXer: RoundCube installation on Debian 8 (Jessie) LXer Syndicated Linux News 0 09-22-2015 04:21 PM
how to install openjdk or oracle java on debian 8 jessie to run eclipse? detr Linux - Newbie 1 05-01-2015 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration