PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, August 21, 2022

[FIXED] How do I get rid of jenv in Ubuntu?

 August 21, 2022     command-line-interface, environment-variables, jenv, ubuntu     No comments   

Issue

I think I need to undo some commands I entered when trying to get jenv on my ubuntu instance and I am not sure how to do that.

Here's what I did:

brew install jenv

echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile

echo 'eval "$(jenv init -)"' >> ~/.bash_profile

jenv add /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

That last command gave me an error, and I ended up restarting my shell for whatever reason. Since then, all text is white (used to be multicolored), brew no longer works, and it says this:

Command 'jenv' not found, did you mean:

command 'env' from deb coreutils (8.30-3ubuntu2)

Try: sudo apt install

Couldn't find an alternative telinit implementation to spawn. user@DESKTOP-FG073RE:/mnt/c/Users/user$

I fear I messed up the PATH but I am not sure how to fix it. I tried to run the same command again but omitting the 'j' but that did nothing. Can't seem to find anything about this error online either. I also tried to uninstall jenv but that also did nothing.


Solution

I went into the ~/.bash_profile I made and deleted everything from it



Answered By - notnoahkirby
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing