Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 16645  / 2 Years ago, sat, march 26, 2022, 8:14:04

I'm stuck in a login loop now. What I did was edited /etc/profile as root and added the following line:



export PATH = /opt/my jdk 7 path/bin:$PATH


After logging out and trying to login, I cannot, so I have tried booting in recovery mode, entering the root shell editing the file in vi but it always opens in read only mode and hence cannot be saved.



I just need a way to delete that line and boot into Ubuntu again.


More From » boot

 Answers
7

Select recovery mode at the GRUB bootloader, and then it will give you a menu.



Select the dpkg menu item.



Say "Yes" when it asks you if you want to continue.



It will fix some stuff (or at least, try to). This might take a while, you can safely ignore most of the 'errors' there.



It will say



Finished, press enter


press enter, and then it will be in read/write mode
so you can then select root prompt, and edit your stuff, and then reboot.



Now, to add it to your $PATH, add the following to your ~/.profile.



PATH=/opt/jre1.7.0_04/:$PATH


and then log out, log back in and you should be good to go!


[#37749] Monday, March 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bewre

Total Points: 164
Total Questions: 108
Total Answers: 106

Location: Ghana
Member since Sun, Mar 27, 2022
2 Years ago
bewre questions
Sun, May 14, 23, 13:27, 1 Year ago
Mon, Aug 2, 21, 03:57, 3 Years ago
Thu, Aug 26, 21, 18:05, 3 Years ago
Sat, Aug 6, 22, 21:41, 2 Years ago
Sat, Jul 24, 21, 22:52, 3 Years ago
;