0

I do everything as indicated in the AptOffline tutorial:

#offline
sudo apt-offline set --update apt-offline.sig
  1. I create a .sig file on an offline machine,
#online
sudo apt-offline get apt-offline.sig --bundle bundle.zip
  1. I generate bundle.zip on an online machine,
#offline
sudo apt-offline install bundle.zip
  1. but when I try to install bundle.zip on an offline machine I get the error "File bundle.zip is not a valid zip file",
ERROR: File bundle.zip is not a valid zip file

why does the error occur? I work on Ubuntu 24.10 (offline) and Ubuntu 24.04 (online).

1 Answers1

0

Try repairing the zip file on the destination machine.

zip -FF archive.zip --out archive_repaired.zip -fz

Also, if you have a large number of files in the zip you may require the zip64 extension to unzip it.

Source