-1

Can someone explain to me what is happening in this image? I'm relatively new to Ubuntu and I'm unsure how to fix this.

apt update error message

None of my repositories are updating anything. I've tried replacing all of the repositories with the stock ones I found below, but none of them seem to be able to connect, which I'm assuming is the error. Which is weird, because I just did an apt update last night but now I want to install Java and nothing is working.

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

I've tried deleting contents of sources.list and reverting with the software updater but that seems to crash for 20.04 when I click revert so I'm sol with that.

Eliah Kagan
  • 119,640
user25832
  • 277

1 Answers1

2

The message says that you have enabled a PPA that is no longer proving packages for your new version of Ubuntu 20.04. This can happen when you setup a PPA for Ubuntu 18.04, then upgrade your Ubuntu, and that PPA has no longer packages for the new version of Ubuntu (in this case, focal or Ubuntu 20.04).

Although the message says that the IP address is no found, the real issue is that the PPA has no support for Ubuntu 20.04.

When you remove a PPA, you need to take care of what happens with the orphan packages. Because those orphan packages will stay there and likely never get updated again.

In your specific case with grub-customizer, we can see from https://launchpad.net/grub-customizer/+packages that the package has actually been added as an official package to the newer versions of Ubuntu (starting from Ubuntu 19.04). That is, it is a case where a package, grub-customizer, has been promoted from a PPA to appear in Ubuntu for everyone to use.

Therefore, in your case, use the GUI tool to disable this specific PPA. Then, perform a package update and a package upgrade. Finally, verify the version of the grub-customizer package.

Here are the commands if you do not use the graphical interface,

$ sudo add-apt-repository --remove ppa:danielrichter2007/grub-customizer
$ sudo apt update
$ sudo apt upgrade
$ apt policy grub-customizer
grub-customizer:
  Installed: 5.1.0-2
  Candidate: 5.1.0-2
  Version table:
 *** 5.1.0-2 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status
$ 

You should get the version 5.1.0-2 as I do above.

user4124
  • 9,241