Fixing apt error, 'list of sources could not be read'

The Error

While attempting routine package updates, I encountered an error that I had not seen before.What I do know is that the source of truth for apt is located in /etc/apt; and that filepath is mentioned in the error message. Let me go look what I can find.

matt@mediaserver:~$ sudo apt update
E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ bullseye: /etc/apt/keyrings/docker.asc != /usr/share/keyrings/download.docker.com.gpg
E: The list of sources could not be read.

The Resolution

I went into the apt config folder and deleted the .list file for download.docker.com because that was the URL in the error message. Now I am able to successfully update my packages as expected.

matt@mediaserver:/etc/apt/sources.list.d$ ls
adoptium.list  docker.list  download.docker.com.list  jellyfin.sources  longview.list  newrelic-infra.list  repo.cubecoders.com.list  tailscale.list
matt@mediaserver:/etc/apt/sources.list.d$ sudo rm download.docker.com.list
matt@mediaserver:/etc/apt/sources.list.d$ sudo apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
...

2024

Back to top ↑

2023

Mom Said Redefine Success

In High School I had one dream that stands out. Own a Porsche by the time I was 26. Looking back, I have no idea where this dream came from; because I was ra...

Back to top ↑

2022

Back to top ↑

2021

Back to top ↑