I am trying to install the Geant4.10.04.p02 on Ubuntu 18.04 and when I switch the environment-variables using the command sudo vi /etc/profile.d/geant4.sh and restart Ubuntu gives an error.
How can I login to Ubuntu again?
Asked
Active
Viewed 105 times
1
karel
- 122,292
- 133
- 301
- 332
1 Answers
1
Edit: looking at the error message again, it seems like you specified relative paths where absolute paths were expected, so deleting may be overkill.
The error message clearly states that geant4.sh is trying to cd to directories that don't exist. Thus, the X session is not started. To be able to use the desktop environment again, fix, move or delete geant4.sh:
Hit Ctrl+Alt+F4 to switch to tty4. Login with your username and password. Then run the following command to edit the file:
sudo vi /etc/profile.d/geant4.sh
Or, to remove it:
sudo rm /etc/profile.d/geant4.sh
Alternative 1: You can boot Ubuntu in recovery mode and access the file from a root shell.
Alternative 2: You can boot a live system and access the file from there.
danzel
- 6,533
