I have Xubuntu 18.04.3 LTS installed on a live USB with persistence. With apt using http sources instead of https. How can I confirm that I am getting all the security updates? According to the accepted answer in this post How to use https with apt-get? an unscrupulous ISP could reroute the request to stale security packages. I have tried changing the APT sources to https, however, upon sudo apt-get update
I received the following connection failure warnings:
W: Failed to fetch https://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease
Could not connect to security.ubuntu.com:443 (91.189.91.14). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (2001:67c:1560:8001::11). - connect (113: No route to host)
Could not connect to security.ubuntu.com:443 (91.189.88.149). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (2001:67c:1360:8001::21). - connect (113: No route to host)
Could not connect to security.ubuntu.com:443 (91.189.88.174). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (91.189.88.24). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (91.189.88.162). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (2001:67c:1560:8001::14). - connect (113: No route to host)
Could not connect to security.ubuntu.com:443 (91.189.91.26). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (91.189.88.31). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (91.189.91.23). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (91.189.88.173). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (2001:67c:1360:8001::17). - connect (113: No route to host)
Could not connect to security.ubuntu.com:443 (91.189.91.24). - connect (111: Connection refused)
Could not connect to security.ubuntu.com:443 (2001:67c:1562::16). - connect (113: No route to host)
Could not connect to security.ubuntu.com:443 (2001:67c:1562::19). - connect (113: No route to host)
It gives the same warning for other sources as well. I am not able to pull up https://security.ubuntu.com on my browser either, but I am able to pull up other secure sites.
The contents of the APT sources are:
deb cdrom:[Xubuntu 18.04.3 LTS _Bionic Beaver_ - Release i386 (20190805)]/ bionic main multiverse restricted universe
deb https://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb https://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb https://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
EDIT: There may be three routes to ensuring that a given system is getting the latest updates. The first may be to provide the updates over SSL/TLS and thus fail by letting the victim know that the network isn't allowing the system to access a known secure resource. The second method could be to provide information about the availability of the update through SSL/TLS, and the actual update through mirrors which would also make noise if the system is prevented from getting the information related to the update, or the update itself. The third, and the simplest option would be to maintain a timestamp/serial number, or a set of timestamps/serial numbers by update type on a website secured by SSL/TLS, so that the admin for the given system can compare it with timestamps/serial numbers on the system to ensure that the system has the latest updates. My question is whether these or similar methods exist by which I can ensure that my system has the latest updates.
EDIT: It has been suggested that the answer to the post Are repository lists secure? Is there an HTTPS version? answers my question. Given the last method that I have suggested in my previous edit, there wouldn't be a necessity of having a direct SSL/TLS connection to the resource lists. My question is whether there is any way available, be it through SSL/TLS, or through simple HTTP, to ensure that my system has the updates that have been released up to that point? One can easily imagine an IT auditor asking the same question. Furthermore, being able to verify that his/her system has the latest updates can also allow a user to refrain from using the system for financial, or similar matters, when it's not, and is being prevented from receiving the updates. A good answer would be one that states that a method exists and explains the method by which one can confirm that a given system has the latest updates, or one that admits that no such mechanism exists at present.