The issue for me was that i put a loadbalancer in front the vm with a link to the NIC, when i changed that to IP it started to work again.
Unable to connect to azure.archive.ubuntu.com
It seems like the ubuntu mirrors are not working on Azure VMs as I am getting the following error
Err:114 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libgtk2.0-bin amd64 2.24.33-2ubuntu2
Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.252.75.106 80]
3 answers
Sort by: Most helpful
-
-
deherman-MSFT 37,841 Reputation points Microsoft Employee
2023-02-07T20:25:21.0666667+00:00 @Kata Containers
I understand your Ubuntu VMs are not currently able to connect to the Azure Ubuntu mirrors. Please correct me if I am misunderstanding the issue.I checked on my Azure Ubuntu 22.04 VM and I was able to run apt-get update and apt-get install without any issues.
This could be caused by a number of factors, such as network connectivity issues or firewall rules that are blocking access to the Ubuntu mirrors.
Here are a few steps you can try to troubleshoot this issue:
- Check your network connectivity: Make sure that your Azure VM has a stable internet connection and that you can access other websites.
- Check your firewall rules: Make sure that your Azure VM's firewall is not blocking access to the Ubuntu mirrors. You can check this by running the following command:
sudo ufw status
- Check your DNS settings: Make sure that your Azure VM is configured to use the correct DNS servers. You can check this by running the following command:
cat /etc/resolv.conf
- Check your proxy settings: Make sure that your Azure VM is not configured to use a proxy server that is blocking access to the Ubuntu mirrors. You can check this by running the following command:
env | grep -i proxy
- Check the Azure VM's network security group: Make sure that the Azure VM's network security group is configured to allow traffic to the Ubuntu mirrors.
- Check the Azure VM's network interface: Make sure that the Azure VM's network interface is configured to allow traffic to the Ubuntu mirrors.
- Check the Azure VM's virtual network: Make sure that the Azure VM's virtual network is configured to allow traffic to the Ubuntu mirrors.
Hope this helps! If you are still facing issues please let me know and we can work with you directly to troubleshoot this issue.
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
-
Dan Morris 0 Reputation points
2023-06-29T01:12:41.0233333+00:00 In my case I just waited it out; the issue persisted for about five minutes, then disappeared. This was on an Ubuntu 22.04 Azure VM.