Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to ignore a package while adding a new one to apt-repo?

I’m running add-apt-repository ppa:ondrej/php command to install PHP on a server, but it throws something related to Docker:

Get:7 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
Err:7 https://download.docker.com/linux/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
Reading package lists... Done
W: GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/ubuntu focal InRelease' is not signed.
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.

I don’t need Docker on this server. Not sure who in the past was trying to add Docker. Anyway, I want to ignore Docker, any idea in which place "Docker" is defined that causes that error? I just need to comment it.

Noted that, I opened this file using nano editor nano /etc/apt/sources.list, but there is nothing related to Docker.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Your PPAs files are mostly stored under:

/etc/apt/sources.list.d/

So, you run ls /etc/apt/sources.list.d/ command to see if there are files like these:

docker.list
docker.list.save 

Then you can just remove them.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading