Could Not Resolve Error in apt

Hello Everyone! Today while updating my Raspberry Pi I noticed an error that was not critical but wanted to resolve immediately. I did a quick Google and came across this similar issue from 2022. It appears a change at the CDN level has caused this.

:~ $ sudo apt update
Hit:1 https://download.docker.com/linux/debian bullseye InRelease
...
Err:7 https://packages.adoptium.net/artifactory/deb bullseye InRelease
  Could not resolve 'packages.adoptium.net'
...
Fetched 99.0 kB in 2s (48.1 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://packages.adoptium.net/artifactory/deb/dists/bullseye/InRelease  Could not resolve 'packages.adoptium.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Resolution Steps

I ran the following commands in the terminal. Once completed I was able to apt update & upgrade without error.

cd /etc/apt/sources.list.d
ls
sudo rm adoptium.list

By removing this list file, I will need to perform a reinstall of my OpenJDK package in the future. However for now I do not need to update my Java version.

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 ↑