I have a lot of issues recently when trying to update packages on my Spark system:
apt-get update often fails to get all metadata.
Additionally, when I am able to run apt-get dist-upgrade, it gets some packages quickly, but then it slows down to a crawl.
The apt-get update issue seems related to apt-get trying to use IPv6 addresses, even though I have IPv4 on the local network, and my Internet provider has assigned me a public IPv4 address. Sometimes the command resolves all endpoints to IPv4 addresses, but that’s rare.
The apt-get dist-upgrade slowdown seems unrelated. It might be a kind of throttling, but it’s so brutal that the command take a very long time, and eventually times out.
The end result is that updates are failing behind.