Trying to update && upgrade but getting that error. I'm not sure how it happened but should I just manually add the DNS record for ports.ubuntu.com? I'm using pi-hole. I'm worried this is a MITM attack or some hacker trying to push malware. Does anyone have experience with this?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 6 months ago* (last edited 6 months ago)

i just used a third-party mirror. found one that was better and faster than ubuntu's own ever has been for me:
https://launchpad.net/ubuntu/+archivemirrors

in case launchpad isn't accessible:
https://web.archive.org/web/20260425125013/https://launchpad.net/ubuntu/+archivemirrors

for 'ports', see here as well, which directs you to this mirror:
https://launchpad.net/ubuntu/+mirror/ftp.tu-chemnitz.de-archive

https://ftp.tu-chemnitz.de/pub/linux/ubuntu-ports/

  • source