Random error when opening shell

nanoken

New Member
Apr 29, 2023
12
2
3
Everything seems to be okay but each time I open shell I see the following error before it goes to the standard root screen

-bash: /root/.profile: line 6: syntax error near unexpected token `fi'
-bash: /root/.profile: line 6: ` fi'
 

Attachments

  • Screenshot 2023-07-29 at 23.18.15.png
    Screenshot 2023-07-29 at 23.18.15.png
    44.4 KB · Views: 7
In short there is an error in .profile that contains bash scripting code.

Did you perhaps modify .profile in /root ?
Did you perhaps install some sort of shell extension?

What does your .profile look like ? If you are not familiar with bash , you can post it into chatpgtp and ask the nice guy how you can fix it.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
In short there is an error in .profile that contains bash scripting code.

Did you perhaps modify .profile in /root ?
Did you perhaps install some sort of shell extension?

What does your .profile look like ? If you are not familiar with bash , you can post it into chatpgtp and ask the nice guy how you can fix it.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thanks, I backed it up and then deleted it, Seems okay.

It was filled with this, /.pr[[newhostname][newhostname]w[newhostname][newhostname][newhostname][newhostnam>if [ "$BASH" ]; [[newhostname][newhostname]w[newhostname][newhostname][newhostname][n> if [ -f ~/.b[[newhostname][newhostname]w[newhostname][newhostname][newhostname][new> . ~/.b[[newhostname][newhostname]w[newhostname][newhostname][newhostname][newhost> fifi[[newhostname][newhostname]w[newhostname][newhostname][newhostname][newhostname][newh>
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!