Apt dist-upgrade fails ... server problem?

Having just followed the process as described here and summarised as follows:

sudo apt install apt-transport-https wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add - echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list sudo apt update sudo apt install jellyfin

I get the following output:

deb [arch=amd64] https://repo.jellyfin.org/debian buster main

which seems correct. After a sudo apt update (with no errors), I then give a sudo apt dist-upgrade and get the following:

Errore:1 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin-server amd64 10.7.0-1 Impossibile connettersi a fra1.mirror.jellyfin.org:443 (139.59.139.28). - connect (111: Connessione rifiutata) Impossibile iniziare la connessione a fra1.mirror.jellyfin.org:443 (2a03:b0c0:3:d0::727:4001). - connect (101: La rete non è raggiungibile) Errore:2 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin-web all 10.7.0-1 Impossibile iniziare la connessione a fra1.mirror.jellyfin.org:443 (2a03:b0c0:3:d0::727:4001). - connect (101: La rete non è raggiungibile) Errore:3 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin all 10.7.0-1 Impossibile iniziare la connessione a fra1.mirror.jellyfin.org:443 (2a03:b0c0:3:d0::727:4001). - connect (101: La rete non è raggiungibile) E: Impossibile recuperare https://fra1.mirror.jellyfin.org/debian/pool/main/j/jellyfin-server/jellyfin-server_10.7.0-1_amd64.deb Impossibile connettersi a fra1.mirror.jellyfin.org:443 (139.59.139.28). - connect (111: Connessione rifiutata) Impossibile iniziare la connessione a fra1.mirror.jellyfin.org:443 (2a03:b0c0:3:d0::727:4001). - connect (101: La rete non è raggiungibile) E: Impossibile recuperare https://fra1.mirror.jellyfin.org/debian/pool/main/j/jellyfin-web/jellyfin-web_10.7.0-1_all.deb Impossibile iniziare la connessione a fra1.mirror.jellyfin.org:443 (2a03:b0c0:3:d0::727:4001). - connect (101: La rete non è raggiungibile) E: Impossibile recuperare https://fra1.mirror.jellyfin.org/debian/pool/main/j/jellyfin/jellyfin_10.7.0-1_all.deb Impossibile iniziare la connessione a fra1.mirror.jellyfin.org:443 (2a03:b0c0:3:d0::727:4001). - connect (101: La rete non è raggiungibile) E: Impossibile scaricare alcuni pacchetti. Potrebbe essere utile eseguire "apt-get update" o provare l'opzione "--fix-missing".

Basically, its saying that it can’t establish a connection with fra1.mirror.jellyfin.org:443 as “network can’t be reached”. But what I don’t understand is that I can reach this link https://repo.jellyfin.org/releases/server/debian/versions/stable/server/10.7.0/ with my browser. Why is apt going to fra1.mirror.jellyfin.org:443 when jellyfin.list is pointing to https://repo.jellyfin.org/debian?

I guess this is because the Jellyfin server is pointing my apt to a mirror. But annoyingly, I’m always getting pointed to that mirror and it always fails. How can I fix this?

Thanks

So I think I have solved this. It must be the redirect of apt to a different mirror that has worked. In fact, I launched apt dist-upgrade for the 10th time today and it finally connected to a different mirror:

https://tor1.mirror.jellyfin.org/debian buster/main amd64 jellyfin-server amd64 10.7.0-1 [37,9 MB]

How annoying … The brief connection to tor1 server allowed me to update. Now Jellyfin is giving me a nice black screen on the web browser. Having looked a the logs, it looks like its trying to update the plugins to match the server version. But it can’t connect to fra1 server. It means I have patiently wait until I eventually get redirected to the any other server except fra1 which seems to always be offline or overloaded.

[2021-03-10 22:44:45.174 +00:00] [INF] Executing "Update Plugins"
[2021-03-10 22:44:45.815 +00:00] [ERR] An error occurred while accessing the plugin manifest: "https://repo.jellyfin.org/releases/plugin/manifest-stable.json"
System.Net.Http.HttpRequestException: Network is unreachable (fra1.mirror.jellyfin.org:443)
 ---> System.Net.Sockets.SocketException (101): Network is unreachable
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|283_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.DefaultConnectAsync(SocketsHttpConnectionContext context, CancellationToken cancellationToken)
   at System.Net.Http.ConnectHelper.ConnectAsync(Func`3 callback, DnsEndPoint endPoint, HttpRequestMessage requestMessage, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.ConnectAsync(Func`3 callback, DnsEndPoint endPoint, HttpRequestMessage requestMessage, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
   at System.Net.Http.Json.HttpClientJsonExtensions.GetFromJsonAsyncCore[T](Task`1 taskResponse, JsonSerializerOptions options, CancellationToken cancellationToken)
   at Emby.Server.Implementations.Updates.InstallationManager.GetPackages(String manifestName, String manifest, Boolean filterIncompatible, CancellationToken cancellationToken)
[2021-03-10 22:44:45.828 +00:00] [INF] "Update Plugins" Completed after 0 minute(s) and 0 seconds
[2021-03-10 22:44:45.857 +00:00] [INF] ExecuteQueuedTasks
[2021-03-10 22:45:32.470 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2021-03-10 22:45:44.471 +00:00] [INF] Lost 1 WebSockets.