Failed to execute sudo -u ubuntu /home/ubuntu/build-target/launcher/upgrade-services.sh
search cancel

Failed to execute sudo -u ubuntu /home/ubuntu/build-target/launcher/upgrade-services.sh

book

Article ID: 445843

calendar_today

Updated On:

Products

VCF Operations for Networks

Issue/Introduction

  • Upgrade to VCF Operations for Networks 9.1.0.100 fails with error:

    Failed to execute sudo -u ubuntu /home/ubuntu/build-target/launcher/upgrade-services.sh /tmp/upgrade_infra-base_25427421kz_7o2ow.tar.gz /home/ubuntu/build-target/infra-base ubuntu /home/ubuntu/build-target/deployment infra-base 25427421 /home/ubuntu/build-target/infra-base >> /var/log/arkin/centralized_upgrade.log 2>&1

  • Within the Platform logs the following error is observed.

    /var/log/arkin/cinc-run.log
    22.04 amd64 6.8.0-111.111~22.04.1 [2,390 B]
        Err:3 file:/var/cache/apt-cacher-ng/svc.ni.vmware.com/upstream-ubuntu-arch-debian-virtual jammy-security/main amd64 linux-tools-generic-hwe-22.04 amd64 6.8.0-111.111~22.04.1
          File not found - /var/cache/apt-cacher-ng/svc.ni.vmware.com/upstream-ubuntu-arch-debian-virtual/pool/main/l/linux-meta-hwe-6.8/linux-tools-generic-hwe-22.04_6.8.0-111.111~22.04.1_amd64.deb (2: No such file or directory)
        STDERR: E: Failed to fetch file:/var/cache/apt-cacher-ng/svc.ni.vmware.com/upstream-ubuntu-arch-debian-virtual/pool/main/l/linux-meta-hwe-6.8/linux-tools-generic-hwe-22.04_6.8.0-111.111%7e22.04.1_amd64.deb  File not found - /var/cache/apt-cacher-ng/svc.ni.vmware.com/upstream-ubuntu-arch-debian-virtual/pool/main/l/linux-meta-hwe-6.8/linux-tools-generic-hwe-22.04_6.8.0-111.111~22.04.1_amd64.deb (2: No such file or directory)
        E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing

Environment

VCF Operations 9.x
VCF Operations for Networks 9.x

Resolution

This is a known issue impacting VCF Operations for Networks.

Workaround:

1. SSH to Platform with "support" user.
2. Switch to ubuntu user "ub"
3. Run the following command:

     sudo apt purge -y linux-tools-generic-hwe-22.04

4. Retry upgrade.