0

I have an offline Ubuntu 20.04 VM, which is pro enabled (enabled esm-apps, esm-infra and fips). I was thinking of using apt-offline to do the updates on this VM. For investigation purposes, I installed a package pdfresurrect which is known to have esm-apps security updates available for Ubuntu Pro enabled systems.

I then used another network connected VM (which is also pro enabled) to get the upgrades, following the instructions in https://docs.xubuntu.org/latest/user/C/offline-packages.html

  1. First, I generated the signature file on my offline VM: sudo apt-offline set –update --upgrade upgrade-offline.sig
  2. Copied upgrade-offline.sig to USB, and attached it to the network connected VM.
  3. In the network connected VM, run: sudo apt-offline get --bundle upgrade-offline-bundle.zip upgrade-offline.sig –verbose

Running the above command is giving 401 - Unauthorized error while downloading pdfresurrect:

VERBOSE: Item before split is: 'https://esm.ubuntu.com/apps/ubuntu/pool/main/p/pdfresurrect/pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb' pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb 17568 MD5Sum:daadb09ad3570b74bc6905d47669827a

VERBOSE: Item after split is: 'https://esm.ubuntu.com/apps/ubuntu/pool/main/p/pdfresurrect/pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb' pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb 17568 MD5Sum:daadb09ad3570b74bc6905d47669827a

VERBOSE: Stripped item URL is: https://esm.ubuntu.com/apps/ubuntu/pool/main/p/pdfresurrect/pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb
VERBOSE: Stripped item FILE is: pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb
VERBOSE: Stripped item SIZE is: 17568
VERBOSE: Stripped item CHECKSUM is: MD5Sum:daadb09ad3570b74bc6905d47669827a
VERBOSE: Thread is Thread-1
Downloading pdfresurrect - 17 KiB                                                             
VERBOSE: https://esm.ubuntu.com/apps/ubuntu/pool/main/p/pdfresurrect/pdfresurrect_0.19-1ubuntu0.1~esm1_amd64.deb - 401 - Unauthorized                                                             
VERBOSE: Will still try with other package uris

Downloaded data to /media/oks/1.8.4_test_separate/upgrades/bundle.zip
ERROR: Some items failed to download. Downloaded data may be incomplete
ERROR: Please run in verbose mode to see details about failed items

VERBOSE: The following files failed to be downloaded.
VERBOSE: Not all errors are fatal. For eg. Translation files are not present on all mirrors.
VERBOSE: pdfresurrect failed.

Is this the right way to do upgrades on an Ubuntu Pro offline VM? Note: apt-offline version is 1.8.4 in both VMs.

milsim
  • 9
  • 1

0 Answers0