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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2017, 03:03 PM
|
#1
|
LQ Newbie
Registered: Apr 2017
Posts: 4
Rep: 
|
-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 ?
|
|
|
04-13-2017, 04:25 PM
|
#2
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
|
|
|
04-13-2017, 05:40 PM
|
#3
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
in terminal, issue
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.
|
|
|
04-14-2017, 09:53 AM
|
#4
|
LQ Newbie
Registered: Apr 2017
Posts: 4
Original Poster
Rep: 
|
Quote:
Originally Posted by r3sistance
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
|
|
|
04-14-2017, 10:01 AM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
|
|
04-14-2017, 10:09 AM
|
#6
|
LQ Newbie
Registered: Apr 2017
Posts: 4
Original Poster
Rep: 
|
Quote:
Originally Posted by Habitual
in terminal, issue
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
|
|
|
04-14-2017, 10:41 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,336
|
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...
|
|
|
04-14-2017, 11:16 AM
|
#8
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Quote:
Originally Posted by The_Engineer_
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.
|
|
|
04-14-2017, 05:18 PM
|
#9
|
LQ Newbie
Registered: Apr 2017
Posts: 4
Original Poster
Rep: 
|
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.
|
|
|
04-14-2017, 05:33 PM
|
#10
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Glad it worked out.
|
|
|
All times are GMT -5. The time now is 12:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|