Как решить
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
Err:2 http://archive.ubuntu.com/ubuntu bionic-security InRelease
502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease 502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease 502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease 502 Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) [IP: 10.10.8.118 8080]
Это указывает, что Ваш прокси-сервер запретил Вас доступа к этому URL. Это не проблема с Ubuntu. Это - проблема с Вашим прокси-сервером, вероятно, выполненным Вашей компанией или школой.
необходимо связаться с администратором для прокси-сервера и спросить, могут ли они открыться для зеркал Ubuntu для Вас.