Ubuntu 18.04 on startup error, [-f: command not found
up vote
0
down vote
favorite
I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work

The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.  
so it seems there is a white space or some problem at that command (if I did add it to .profile). how can  I boot to Ubuntu now to make it correct? 
bash 18.04 permissions bashrc .profile
add a comment |
up vote
0
down vote
favorite
I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work

The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.  
so it seems there is a white space or some problem at that command (if I did add it to .profile). how can  I boot to Ubuntu now to make it correct? 
bash 18.04 permissions bashrc .profile
 
 
 
 
 
 
 The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
 – Alvin Liang
 Nov 29 at 9:44
 
 
 
 
 
 
 
 
 
 
 
 If he can't boot then- Ctrl+alt+f3won't work!
 – George Udosen
 Nov 29 at 9:47
 
 
 
 
 
 
 
 
 
 
 
 tty3 should work before login so won't be affected by- .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
 – Alvin Liang
 Nov 29 at 9:49
 
 
 
 
 
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work

The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.  
so it seems there is a white space or some problem at that command (if I did add it to .profile). how can  I boot to Ubuntu now to make it correct? 
bash 18.04 permissions bashrc .profile
I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work

The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.  
so it seems there is a white space or some problem at that command (if I did add it to .profile). how can  I boot to Ubuntu now to make it correct? 
bash 18.04 permissions bashrc .profile
bash 18.04 permissions bashrc .profile
edited Nov 29 at 9:43
asked Nov 29 at 9:36
Amir-Mousavi
13011
13011
 
 
 
 
 
 
 The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
 – Alvin Liang
 Nov 29 at 9:44
 
 
 
 
 
 
 
 
 
 
 
 If he can't boot then- Ctrl+alt+f3won't work!
 – George Udosen
 Nov 29 at 9:47
 
 
 
 
 
 
 
 
 
 
 
 tty3 should work before login so won't be affected by- .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
 – Alvin Liang
 Nov 29 at 9:49
 
 
 
 
 
add a comment |
 
 
 
 
 
 
 The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
 – Alvin Liang
 Nov 29 at 9:44
 
 
 
 
 
 
 
 
 
 
 
 If he can't boot then- Ctrl+alt+f3won't work!
 – George Udosen
 Nov 29 at 9:47
 
 
 
 
 
 
 
 
 
 
 
 tty3 should work before login so won't be affected by- .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
 – Alvin Liang
 Nov 29 at 9:49
 
 
 
 
 
The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
– Alvin Liang
Nov 29 at 9:44
The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
– Alvin Liang
Nov 29 at 9:44
If he can't boot then
Ctrl+alt+f3 won't work!– George Udosen
Nov 29 at 9:47
If he can't boot then
Ctrl+alt+f3 won't work!– George Udosen
Nov 29 at 9:47
tty3 should work before login so won't be affected by
.profile, but I don't know how bad the account status is.  May not be logged in into bash as well.– Alvin Liang
Nov 29 at 9:49
tty3 should work before login so won't be affected by
.profile, but I don't know how bad the account status is.  May not be logged in into bash as well.– Alvin Liang
Nov 29 at 9:49
add a comment |
                                1 Answer
                                1
                        
active
oldest
votes
up vote
1
down vote
To edit those files use these steps:
- Boot with installation media and select Try Ubuntu
 
 - Mount - rootat the point- /mnt
 
 - sudo mount /dev/sdaX /mnt
 
 
 - Make sure that you know your root, i.e. the partition that /was mounted on during installation.
 
 
 
 
- Make sure that you know your root, i.e. the partition that 
 - Then - chrootinto that location so you can edit your files:
 
 - sudo chroot /mnt
 
 
- Now use your editor and edit that file your previously edited.
NOTE: If your lost just do ls /mnt to see where your going!!
add a comment |
                                1 Answer
                                1
                        
active
oldest
votes
                                1 Answer
                                1
                        
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To edit those files use these steps:
- Boot with installation media and select Try Ubuntu
 
 - Mount - rootat the point- /mnt
 
 - sudo mount /dev/sdaX /mnt
 
 
 - Make sure that you know your root, i.e. the partition that /was mounted on during installation.
 
 
 
 
- Make sure that you know your root, i.e. the partition that 
 - Then - chrootinto that location so you can edit your files:
 
 - sudo chroot /mnt
 
 
- Now use your editor and edit that file your previously edited.
NOTE: If your lost just do ls /mnt to see where your going!!
add a comment |
up vote
1
down vote
To edit those files use these steps:
- Boot with installation media and select Try Ubuntu
 
 - Mount - rootat the point- /mnt
 
 - sudo mount /dev/sdaX /mnt
 
 
 - Make sure that you know your root, i.e. the partition that /was mounted on during installation.
 
 
 
 
- Make sure that you know your root, i.e. the partition that 
 - Then - chrootinto that location so you can edit your files:
 
 - sudo chroot /mnt
 
 
- Now use your editor and edit that file your previously edited.
NOTE: If your lost just do ls /mnt to see where your going!!
add a comment |
up vote
1
down vote
up vote
1
down vote
To edit those files use these steps:
- Boot with installation media and select Try Ubuntu
 
 - Mount - rootat the point- /mnt
 
 - sudo mount /dev/sdaX /mnt
 
 
 - Make sure that you know your root, i.e. the partition that /was mounted on during installation.
 
 
 
 
- Make sure that you know your root, i.e. the partition that 
 - Then - chrootinto that location so you can edit your files:
 
 - sudo chroot /mnt
 
 
- Now use your editor and edit that file your previously edited.
NOTE: If your lost just do ls /mnt to see where your going!!
To edit those files use these steps:
- Boot with installation media and select Try Ubuntu
 
 - Mount - rootat the point- /mnt
 
 - sudo mount /dev/sdaX /mnt
 
 
 - Make sure that you know your root, i.e. the partition that /was mounted on during installation.
 
 
 
 
- Make sure that you know your root, i.e. the partition that 
 - Then - chrootinto that location so you can edit your files:
 
 - sudo chroot /mnt
 
 
- Now use your editor and edit that file your previously edited.
NOTE: If your lost just do ls /mnt to see where your going!!
answered Nov 29 at 9:51


George Udosen
18.9k94266
18.9k94266
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097059%2fubuntu-18-04-on-startup-error-f-command-not-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
– Alvin Liang
Nov 29 at 9:44
If he can't boot then
Ctrl+alt+f3won't work!– George Udosen
Nov 29 at 9:47
tty3 should work before login so won't be affected by
.profile, but I don't know how bad the account status is. May not be logged in into bash as well.– Alvin Liang
Nov 29 at 9:49