You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
[ SOLVED ] Strange problem with the PATH

Author (Read 3139 times)

0 Members and 1 Guest are viewing this topic.

Strange problem with the PATH
« on: October 11, 2018, 04:20:59 PM »
 

axiomaabsurdo

  • Mr.
  • New to Forums
  • *
  • 6
    Posts
  • Country: uy
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: FX 8120

  • MEMORY: 24Gb

  • VIDEO CARD: 1080ti
Dear linux users.
I have searched the forum using the search tools if there is a thread with a problem equal or similar to what happens to me.
I have also read what could be the correct way to diagnose and explain the problem I have in my current installation of Linux Lite 3.8

The beginning of the problem is not clear, I will detail what I did and what were the consequences.

I was installing STEAM, in a terminal, already with root permissions.
The installation asked me to confirm a procedure to download some packages.
And to proceed I had to write textually in the console "Yes, as i say!"
With that, after confirming, the download of the packages required by the installation began.

After the installation, the terminal was at its prompt waiting for some new command. At that time I needed to move to the SEAM installation directory and wrote

Code: [Select]
cd "route to the directory"
and in a very strange way, the command responded with a
Code: [Select]
command not found
I repeated the command and I get the same answer.
I opened a new terminal tab and I see that the prompt marker does not appear and the initial route from where the terminal is opened is not present either.
I went back to the tab with the error messages and I started send different commands but they all returned
Code: [Select]
command not found
At that time I see some icons from my taskbar, which lost their icon of the application by the typical icon of the circle with the prohibited signal. I tried to launch those programs from the terminal and they did not run, I had my internet browser searched for a problem similar to what was happening to me.
I could read in an article that the problem could be related to the PATH variable, so I went back to the terminal to see if the variable had been modified in any way.
When I tried to see the value the answer was empty.

I thought to close session, keeping in mind that maybe I could not restart my user session, but I have access to my root user.
When I logged out I could no longer see the login window to the desktop.

Reboot my computer, place a USB with a boot image of the Rescatux system, I use it for these cases of errors.
Since it has a tool to fix packages and also change passwords that you can forget and other tools.

But Rescatux could not recover my user session or password

Well ... and this is mostly everything that happened ...
I await your comments.

Thank you all!
Last Edit: October 18, 2018, 08:19:41 PM by axiomaabsurdo
 


Re: Strange problem with the PATH
« Reply #1 on: October 11, 2018, 06:25:10 PM »
 

DeepThought

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: wales
  • Reputation: 40
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 5.0 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480

  • Kernel: 5.x
Did you actually type :

Quote
cd "route to the directory"

if so I think you misunderstood the instructions.

The

Quote
"Yes, as i say!"


is a security question and needs to be answered by typing in the exact words, but the

Quote
cd "route to the directory"


is an instruction and you should have typed in the actual path to the steam folder. e.g.

Code: [Select]
cd /home/user/Downloads/steam-folder

or wherever it was downloaded to.
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

Re: Strange problem with the PATH
« Reply #2 on: October 11, 2018, 07:41:10 PM »
 

axiomaabsurdo

  • Mr.
  • New to Forums
  • *
  • 6
    Posts
  • Country: uy
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: FX 8120

  • MEMORY: 24Gb

  • VIDEO CARD: 1080ti
@DeepThought
Thanks for your answer.
I understand clearly how the cd command works, just put it in the post.
I can't currently access the login screen, I see a black screen with the console tty1 or tty2. And my

And I remember perfectly the access credentials of my user as well as the root user but this console tty1 and tty2 do not recognize me.

Do you have anything that can help me with this?

Thanks again! ;D
 

Re: Strange problem with the PATH
« Reply #3 on: October 11, 2018, 07:56:02 PM »
 

DeepThought

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: wales
  • Reputation: 40
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 5.0 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480

  • Kernel: 5.x
Have you tried Control-Alt-F7 to get back to your desktop....... but if it is not recognising your password then that won't do any good.

The only thing I can think of is to boot using a live cd/usb, then browse to /etc/passwd on your original system and edit it by deleting the x e.g.
changing:

Code: [Select]
root:x:0:0:/root:/bin/bash
to

Code: [Select]
root::0:0:/root:/bin/bash
will delete the root passwd, same can be done for your user, then you should be able to login with no passwd. Don't forget to set up passwd's once you are back in.

Hope this will help.
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

Re: Strange problem with the PATH
« Reply #4 on: October 11, 2018, 08:42:25 PM »
 

axiomaabsurdo

  • Mr.
  • New to Forums
  • *
  • 6
    Posts
  • Country: uy
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: FX 8120

  • MEMORY: 24Gb

  • VIDEO CARD: 1080ti
@DeepThought

I have accessed the grub, to select the option recovery, reset the passwords of the users but when I go to the terminal that only starts with a # some commands return an error

Code: [Select]
sulogin: failed to execute /bin/bash: No such file or directory
Now, from where I am now what do you think I could do?
 

Re: Strange problem with the PATH
« Reply #5 on: October 11, 2018, 08:55:04 PM »
 

DeepThought

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: wales
  • Reputation: 40
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 5.0 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480

  • Kernel: 5.x
Can you check your /etc/passwd file again, it looks like there might be an error on the root line, it should look like

Code: [Select]
root:x:0:0:/root:/bin/bash
where the x this time will represent your new passwd.

the # at the start indicates you are logged in as root and in a root shell, a normal users prompt is $
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

Re: Strange problem with the PATH
« Reply #6 on: October 11, 2018, 09:00:19 PM »
 

axiomaabsurdo

  • Mr.
  • New to Forums
  • *
  • 6
    Posts
  • Country: uy
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: FX 8120

  • MEMORY: 24Gb

  • VIDEO CARD: 1080ti
@DeepThought
Thank you very much dude, tomorrow I will try to follow what you indicate.
Go to rest and here is late and tomorrow I have another 9 hours to put code ...
Thank you very much again for taking the time to help me.
 

Re: Strange problem with the PATH
« Reply #7 on: October 11, 2018, 09:04:45 PM »
 

DeepThought

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: wales
  • Reputation: 40
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 5.0 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480

  • Kernel: 5.x
@axiomaabsurdo  No probs, got to go to bed myself, but it does sound like a typo in the /etc/passwd file.... maybe you deleted one of the : as well as the x by mistake.
Anyway off to bed myself, will have a think for other solutions, unless someone more knowledgeable solves it before me :)
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

Re: Strange problem with the PATH [SOLVED]
« Reply #8 on: October 18, 2018, 08:13:40 PM »
 

axiomaabsurdo

  • Mr.
  • New to Forums
  • *
  • 6
    Posts
  • Country: uy
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: FX 8120

  • MEMORY: 24Gb

  • VIDEO CARD: 1080ti
Hi again.
Thanks  @DeepThought for your time and help.

I did not solve this problem the way I wanted, but at least I managed to learn some things I did not know.
I'm already working again, now on a new installation of Linux Lite.

Thanks  again.
Last Edit: October 18, 2018, 08:19:27 PM by axiomaabsurdo
 


Tags: path error bash terminal steam user 
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements