Suppose I have a trusted ISO Ubuntu 18.04 image on a USB stick. I have a brand new notebook and boot it from the USB stick. The notebook is connected through Wi-Fi with an unknown or untrusted internet provider ( suppose I am in a Wi-Fi Caffé), so I cannot trust dynamic DNS I got through DHCP.
AFAIK, when installing and upgrading packages, secure apt is used, so downloaded packages are signed and their signatures are checked by the public keys previously loaded in the ISO image. I conclude that under this situation the installation is secure, regardless of the reliability of the DNS you are using.
Are my assumptions true?
Note:
Although this question has been marked as a duplicate one of Are repository lists secure? Is there an HTTPS version? , it is slightly different because it has to do more with a brand new installation than with upgrading packages of an installed system, and my question is originally concerned with DNS reliability instead of HTTP vs HTTPS protocol.
Nevertheless, as fas as both cases use apt in a secure way, relying on public key infrastructure, the answer for both of them is the same.