How to update VM running on Ubuntu

Patryk Koprowski 25 Reputation points
2024-08-15T14:43:47.8933333+00:00

Hi All,

I have an issue updateing VM running in Azure.

Its Ubuntu.

I am running yum update $$ yum upgrade and getting below error message.

Anyone can advise?

apt update && apt upgrade

Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease

Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease

Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease

Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease

Hit:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease

Hit:6 https://download.docker.com/linux/ubuntu jammy InRelease

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

25 packages can be upgraded. Run 'apt list --upgradable' to see them.

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Calculating upgrade... Done

The following NEW packages will be installed:

linux-azure-6.5-cloud-tools-6.5.0-1025 linux-azure-6.5-headers-6.5.0-1025 linux-azure-6.5-tools-6.5.0-1025 linux-cloud-tools-6.5.0-1025-azure

linux-headers-6.5.0-1025-azure linux-image-6.5.0-1025-azure linux-modules-6.5.0-1025-azure linux-tools-6.5.0-1025-azure

The following packages will be upgraded:

apport busybox-initramfs busybox-static docker-buildx-plugin docker-ce docker-ce-cli docker-ce-rootless-extras landscape-common libldap-2.5-0

libldap-common linux-azure linux-cloud-tools-azure linux-headers-azure linux-image-azure linux-tools-azure nvme-cli python3-apport

python3-problem-report tzdata ubuntu-advantage-tools ubuntu-minimal ubuntu-pro-client ubuntu-pro-client-l10n ubuntu-server ubuntu-standard

25 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.

2 standard LTS security updates

Need to get 63.3 MB/143 MB of archives.

After this operation, 278 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Err:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-minimal amd64 1.481.3

404 Not Found [IP: my_VM_public_IP_address 80]

Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 busybox-static amd64 1:1.30.1-7ubuntu3.1

Err:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-standard amd64 1.481.3

404 Not Found [IP: my_VM_public_IP_address 80]

Err:4 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-problem-report all 2.20.11-0ubuntu82.6

404 Not Found [IP: my_VM_public_IP_address 80]

Err:5 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-apport all 2.20.11-0ubuntu82.6

404 Not Found [IP: my_VM_public_IP_address 80]

Err:6 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 apport all 2.20.11-0ubuntu82.6

404 Not Found [IP: my_VM_public_IP_address 80]

Ign:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 busybox-initramfs amd64 1:1.30.1-7ubuntu3.1

Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 landscape-common amd64 23.02-0ubuntu1~22.04.3 [88.7 kB]

Err:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.18+dfsg-0ubuntu0.22.04.2

404 Not Found [IP: my_VM_public_IP_address 80]

Err:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.18+dfsg-0ubuntu0.22.04.2

404 Not Found [IP: my_VM_public_IP_address 80]

Err:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-6.5.0-1025-azure amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-6.5.0-1025-azure amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-azure amd64 6.5.0.1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-azure amd64 6.5.0.1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-azure-6.5-headers-6.5.0-1025 all 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:16 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-6.5.0-1025-azure amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:17 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-azure amd64 6.5.0.1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:18 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-azure-6.5-tools-6.5.0-1025 amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:19 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-tools-6.5.0-1025-azure amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:20 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-tools-azure amd64 6.5.0.1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:21 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-azure-6.5-cloud-tools-6.5.0-1025 amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:22 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-cloud-tools-6.5.0-1025-azure amd64 6.5.0-1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:23 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-cloud-tools-azure amd64 6.5.0.1025.26~22.04.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:24 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nvme-cli amd64 1.16-3ubuntu0.2

404 Not Found [IP: my_VM_public_IP_address 80]

Err:25 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-server amd64 1.481.3

404 Not Found [IP: my_VM_public_IP_address 80]

Err:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 busybox-static amd64 1:1.30.1-7ubuntu3.1

404 Not Found [IP: my_VM_public_IP_address 80]

Err:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 busybox-initramfs amd64 1:1.30.1-7ubuntu3.1

404 Not Found [IP: my_VM_public_IP_address 80]

Fetched 88.7 kB in 0s (226 kB/s)

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-meta/ubuntu-minimal_1.481.3_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/b/busybox/busybox-static_1.30.1-7ubuntu3.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-meta/ubuntu-standard_1.481.3_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apport/python3-problem-report_2.20.11-0ubuntu82.6_all.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apport/python3-apport_2.20.11-0ubuntu82.6_all.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/a/apport/apport_2.20.11-0ubuntu82.6_all.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/b/busybox/busybox-initramfs_1.30.1-7ubuntu3.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.5-0_2.5.18%2bdfsg-0ubuntu0.22.04.2_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-common_2.5.18%2bdfsg-0ubuntu0.22.04.2_all.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-modules-6.5.0-1025-azure_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-signed-azure-6.5/linux-image-6.5.0-1025-azure_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-meta-azure-6.5/linux-azure_6.5.0.1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-meta-azure-6.5/linux-image-azure_6.5.0.1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-azure-6.5-headers-6.5.0-1025_6.5.0-1025.26%7e22.04.1_all.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-headers-6.5.0-1025-azure_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-meta-azure-6.5/linux-headers-azure_6.5.0.1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-azure-6.5-tools-6.5.0-1025_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-tools-6.5.0-1025-azure_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-meta-azure-6.5/linux-tools-azure_6.5.0.1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-azure-6.5-cloud-tools-6.5.0-1025_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-azure-6.5/linux-cloud-tools-6.5.0-1025-azure_6.5.0-1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/linux-meta-azure-6.5/linux-cloud-tools-azure_6.5.0.1025.26%7e22.04.1_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nvme-cli/nvme-cli_1.16-3ubuntu0.2_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-meta/ubuntu-server_1.481.3_amd64.deb 404 Not Found [IP: my_VM_public_IP_address 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,793 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 36,836 Reputation points Microsoft Employee
    2024-08-15T17:36:22.43+00:00

    @Patryk Koprowski

    It looks like you are getting a 404 on all of the repo URLs. There is likely something misconfigured with your repository configuration. Based on my research it appears this could be related to building docker and sources.list being cached. Can you check the first solution here to see if it resolves your issue?

    https://askubuntu.com/questions/1131280/sudo-apt-get-upgrade-results-in-404-errors-for-everything


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Patryk Koprowski 25 Reputation points
    2024-08-15T18:36:27.1966667+00:00

    @deherman-MSFT

    Thank You fir hit - docker, that helped a lot!

    I had a file called "docker.list" in "/etc/apt/sources.list.d".

    When I moved this file away and restarted VM, I was able to run "apt update && apt upgrade --fix-missing".

    I had to run apt 3 times are do 1 restart before I was able to process all updates.

    Once all updates where done, I moved "docker.list" back and run apt again.

    All worked as expected.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.