How to set Network for VM to resolve Unable to connect to azure.archive.ubuntu.com

Jiri 0 Reputation points
2023-10-18T18:20:55.9133333+00:00

Hello! We are running within virtual network (not sure about the specific as inherited from another owner with very little documentation) and we are adding a new Ubuntu Virtual Machine in there.

We need to install some new packages but unable to reach to azure.archive.ubuntu.com, we checked firewalls, security groups, allowed traffic on all ports, but we are still unable to ping or get reply.
Any tip how we can get the packages there?
What conditions are required for the virtual network to be able to hit the archive?

Unable to connect to azure.archive.ubuntu.com
Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/
Unable to fetch some archives

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,585 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,311 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 6,061 Reputation points
    2023-10-18T20:15:05.89+00:00

    Hi Jiri,

    I recommend you first check the effective security rules on the interface:

    User's image

    After that if you are completly sure that there no block trafic , execute a curl or wget to any file on that repository to verify if it's workin.

    wget http://azure.archive.ubuntu.com/ubuntu/pool/main/p/pacemaker/libcib-dev_1.1.14-2ubuntu1.9_amd64.deb

    curl http://azure.archive.ubuntu.com/ubuntu/pool/main/p/pacemaker/libcib-dev_1.1.14-2ubuntu1.9_amd64.deb --output package.deb

    Let me know if there is an error message.

    Cheers,

    Luis Arias

    0 comments No comments