rThe repository 'http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal Release' does not have a Release file

Asked by Arepalle Hima Siva Kalyan Reddy

My Ubuntu version is 20.04, every time I try to sudo apt-get update it stops to show the errors like
"E: The repository 'http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal Release' does not have a Release file".

I have read in some other post(the link) that we have to delete some related config file, but how to delete it? Or can it be removed by just uninstalling grub and reinstall using
sudo apt install grub-customizer as mentioned in answer of question https://answers.launchpad.net/grub-customizer/+question/688951?
Please help with method to delete the config file as many say that its too dangerous to modify sources.list related files.
Please find the outputs for requested commands below.

sivakalyan@hsk:~$ uname -a
Linux hsk 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

sivakalyan@hsk:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

sivakalyan@hsk:~$ sudo apt update
[sudo] password for sivakalyan:
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Ign:6 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Hit:8 http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu focal InRelease
Hit:9 http://archive.canonical.com/ubuntu focal InRelease
Hit:10 http://ppa.launchpad.net/linrunner/tlp/ubuntu focal InRelease
Hit:11 https://download.sublimetext.com apt/stable/ InRelease
Hit:12 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease
Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [18.7 kB]
Hit:14 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu focal InRelease
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [31.6 kB]
Err:16 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal Release
  404 Not Found [IP: 2001:67c:1560:8008::15 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

sivakalyan@hsk:~$ grep daniel /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-focal.list:deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal main
/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-focal.list:# deb-src http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal main

And also yes, I made Windows as default in grub menu.
Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The winehq problem has nothing to do with grub-customizer. You are running Ubuntu, so I move the whole question into the Ubuntu area.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

For diagnostic purposes please provide the output of the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo apt update
grep daniel /etc/apt/sources.list /etc/apt/sources.list.d/*.list

Remark: For Ubuntu 19.04 and later grub-customizer is available in the standard repositories, so you do not need the PPA any more.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Replying to the automated email and attaching a screenshot doesn't work. The commands given output text so why is a screenshot needed at all? Just copy and paste the output as an update on your question

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/

The grub-customizer PPA doesn't support Focal and should be removed.

By any chance are you trying to make Windows the default option in GRUB in a dual boot system?

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#6

You can make Windows the default option with two commands. You need to remove the PPA for the update command to complete without issues

Revision history for this message
Arepalle Hima Siva Kalyan Reddy (ahskr) said :
#7

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

For future reference

sudo mv /etc/grub.d/30_os-prober /etc/grub.d/09_os-prober
sudo update-grub

No need to use it now but that's all it takes. No PPA. No messing around.

Don't run those commands or it may undo whatever the grub customizer has done

Revision history for this message
Arepalle Hima Siva Kalyan Reddy (ahskr) said :
#9

Yes understood, thank you.

On Sun 7 Jun, 2020, 4:35 PM actionparsnip, <
<email address hidden>> wrote:

> Your question #691180 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/691180
>
> actionparsnip posted a new comment:
> For future reference
>
> sudo mv /etc/grub.d/30_os-prober /etc/grub.d/09_os-prober
> sudo update-grub
>
> No need to use it now but that's all it takes. No PPA. No messing
> around.
>
> Don't run those commands or it may undo whatever the grub customizer has
> done
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Sudarshan Wattamwar (sudarshan-pc) said :
#10

Solution for the Above question is that you need to remove " ppa:danielrichter2007/grub-customizer " by using following command

sudo add-apt-repository --remove ppa:danielrichter2007/grub-customizer