Skip to main content
tried some formating, removre self promotion
Source Link
Archemar
  • 32.3k
  • 18
  • 75
  • 107

user, I am a normal newbie at linux but getting stronger a it day by day. Still learning some new commands but i will master linux soon. According

According to ur question and the answers provided, u must have solved the issue but still i will give my views on it. According

According to some sources on the internet,i tried them all because i also had encountered that issue when i was removing (purging) my old kali kernel, none of them proved in solving my problem. them

them i resorted to use my own linux knowledge and lo! i found the solution. every time i did "update-grub" it would result the following, https://im.ge/i/9MH08 then i checked my /boot/grub/grub.cfg.new the error line was 260, so firstly i did in a terminal; "nano /boot/grub/grub.cfg.new"

nano /boot/grub/grub.cfg.new then i pressed "Ctrl+Shift+underscore(_)"Ctrl</kbd+Shift</kbd+_ and typed the error line number (mine was 260) i

i saw there was a menuentry giving the error but i couldn't clear it out what the problem was. i deleted whole menuentry and run "update-grub" but the grub configuration file was read-only so no effect of my changes. again

again a source said me that during "update-grub" the original grub.cfg stays same but a new grub.cfg.new is created so then i saw the grub.cfg(which was too read only.) which had the original thing without any errors or menentry so simply for every line or any error this solution 100% will work. just

just start a terminal Non-root user : first do sudo susudo su, then goto solution Root user : direct goto solution Solution:

  1. I removed (not completely, just backed up) the file grub.cfg.new by: mv /boot/grub/grub.cfg.new /home/grub.cfg.new.bak
  2. Then i replaced the original grub.cfg as grub.cfg.new by:

    I removed (not completely, just backed up) the file grub.cfg.new by:

    mv /boot/grub/grub.cfg /boot/grub/grub.cfg.new.

    mv /boot/grub/grub.cfg.new /home/grub.cfg.new.bak

    this will replace the original with the new one because the new is already backed up to directory "/home" and removed from "/boot/grub/" directory.
  3. Then i run "update-grub" in the terminal and got : https://im.ge/i/9QnRx everybody can try this simple solution

    Then i replaced the original grub.cfg as grub.cfg.new by:

    check out my other projects at :

    mv /boot/grub/grub.cfg /boot/grub/grub.cfg.new

    https://github.com/Coder-Takshil

this will replace the original with the new one because the new is already backed up to directory "/home" and removed from "/boot/grub/" directory.

  1. Then i run "update-grub" in the terminal and got : https://im.ge/i/9QnRx

everybody can try this simple solution

user, I am a normal newbie at linux but getting stronger a it day by day. Still learning some new commands but i will master linux soon. According to ur question and the answers provided, u must have solved the issue but still i will give my views on it. According to some sources on the internet,i tried them all because i also had encountered that issue when i was removing (purging) my old kali kernel, none of them proved in solving my problem. them i resorted to use my own linux knowledge and lo! i found the solution. every time i did "update-grub" it would result the following, https://im.ge/i/9MH08 then i checked my /boot/grub/grub.cfg.new the error line was 260, so firstly i did in a terminal; "nano /boot/grub/grub.cfg.new" then i pressed "Ctrl+Shift+underscore(_)" and typed the error line number (mine was 260) i saw there was a menuentry giving the error but i couldn't clear it out what the problem was. i deleted whole menuentry and run "update-grub" but the grub configuration file was read-only so no effect of my changes. again a source said me that during "update-grub" the original grub.cfg stays same but a new grub.cfg.new is created so then i saw the grub.cfg(which was too read only.) which had the original thing without any errors or menentry so simply for every line or any error this solution 100% will work. just start a terminal Non-root user : first do sudo su, then goto solution Root user : direct goto solution Solution:

  1. I removed (not completely, just backed up) the file grub.cfg.new by: mv /boot/grub/grub.cfg.new /home/grub.cfg.new.bak
  2. Then i replaced the original grub.cfg as grub.cfg.new by: mv /boot/grub/grub.cfg /boot/grub/grub.cfg.new. this will replace the original with the new one because the new is already backed up to directory "/home" and removed from "/boot/grub/" directory.
  3. Then i run "update-grub" in the terminal and got : https://im.ge/i/9QnRx everybody can try this simple solution check out my other projects at : https://github.com/Coder-Takshil

user, I am a normal newbie at linux but getting stronger a it day by day. Still learning some new commands but i will master linux soon.

According to ur question and the answers provided, u must have solved the issue but still i will give my views on it.

According to some sources on the internet,i tried them all because i also had encountered that issue when i was removing (purging) my old kali kernel, none of them proved in solving my problem.

them i resorted to use my own linux knowledge and lo! i found the solution. every time i did "update-grub" it would result the following, https://im.ge/i/9MH08 then i checked my /boot/grub/grub.cfg.new the error line was 260, so firstly i did in a terminal;

nano /boot/grub/grub.cfg.new then i pressed Ctrl</kbd+Shift</kbd+_ and typed the error line number (mine was 260)

i saw there was a menuentry giving the error but i couldn't clear it out what the problem was. i deleted whole menuentry and run "update-grub" but the grub configuration file was read-only so no effect of my changes.

again a source said me that during "update-grub" the original grub.cfg stays same but a new grub.cfg.new is created so then i saw the grub.cfg(which was too read only.) which had the original thing without any errors or menentry so simply for every line or any error this solution 100% will work.

just start a terminal Non-root user : first do sudo su, then goto solution Root user : direct goto solution Solution:

  1. I removed (not completely, just backed up) the file grub.cfg.new by:

    mv /boot/grub/grub.cfg.new /home/grub.cfg.new.bak

  2. Then i replaced the original grub.cfg as grub.cfg.new by:

    mv /boot/grub/grub.cfg /boot/grub/grub.cfg.new

this will replace the original with the new one because the new is already backed up to directory "/home" and removed from "/boot/grub/" directory.

  1. Then i run "update-grub" in the terminal and got : https://im.ge/i/9QnRx

everybody can try this simple solution

Source Link

user, I am a normal newbie at linux but getting stronger a it day by day. Still learning some new commands but i will master linux soon. According to ur question and the answers provided, u must have solved the issue but still i will give my views on it. According to some sources on the internet,i tried them all because i also had encountered that issue when i was removing (purging) my old kali kernel, none of them proved in solving my problem. them i resorted to use my own linux knowledge and lo! i found the solution. every time i did "update-grub" it would result the following, https://im.ge/i/9MH08 then i checked my /boot/grub/grub.cfg.new the error line was 260, so firstly i did in a terminal; "nano /boot/grub/grub.cfg.new" then i pressed "Ctrl+Shift+underscore(_)" and typed the error line number (mine was 260) i saw there was a menuentry giving the error but i couldn't clear it out what the problem was. i deleted whole menuentry and run "update-grub" but the grub configuration file was read-only so no effect of my changes. again a source said me that during "update-grub" the original grub.cfg stays same but a new grub.cfg.new is created so then i saw the grub.cfg(which was too read only.) which had the original thing without any errors or menentry so simply for every line or any error this solution 100% will work. just start a terminal Non-root user : first do sudo su, then goto solution Root user : direct goto solution Solution:

  1. I removed (not completely, just backed up) the file grub.cfg.new by: mv /boot/grub/grub.cfg.new /home/grub.cfg.new.bak
  2. Then i replaced the original grub.cfg as grub.cfg.new by: mv /boot/grub/grub.cfg /boot/grub/grub.cfg.new. this will replace the original with the new one because the new is already backed up to directory "/home" and removed from "/boot/grub/" directory.
  3. Then i run "update-grub" in the terminal and got : https://im.ge/i/9QnRx everybody can try this simple solution check out my other projects at : https://github.com/Coder-Takshil