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 bullseye: /etc/apt/keyrings/docker.asc != /usr/share/keyrings/
E: The list of sources could not be read.

The Resolution

I went into the apt config folder and deleted the .list file for 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  jellyfin.sources  longview.list  newrelic-infra.list  tailscale.list
matt@mediaserver:/etc/apt/sources.list.d$ sudo rm
matt@mediaserver:/etc/apt/sources.list.d$ sudo apt update
Hit:1 bullseye InRelease
Get:2 bullseye-security InRelease [48.4 kB]
Get:3 bullseye-updates InRelease [44.1 kB]


Back to top ↑


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 ↑


Back to top ↑


Back to top ↑