I'm trying to install packages on an offline PC using apt-offline, but I'm getting a 403 error on the online PC
https://askubuntu.com/questions/1566635/im-trying-to-install-packages-on-an-offline-pc-using-apt-offline-but-im-getti
Offline PC: Ubuntu 24.04.4
sudo apt update (Online only at this point)
sudo apt install apt-offline_1.8.5-1_all.deb (Online only at this point)
Online PC: Ubuntu 24.04.4
sudo apt update
sudo apt install apt-offline
I tried to install various packages on the offline PC using apt-offline, following instructions I found online.
However, when I transfer the sig file generated on the offline PC to the online PC and try to download the packages as instructed, I get the same message for every package, and the download fails, creating a zip file with 0 bytes.
VERBOSE: http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/mozc-data_2.28.4715.102%2bdfsg-2.2build7_all.deb - 403 - Forbidden
I can download the corresponding deb file by accessing this URL directly from my browser (Firefox) at online PC.
I don't understand why downloading with `apt-offline get *.sig --bundle *.zip` results in a 403 error, even though I can download it from the browser.
How can I obtain the zip file using apt-offline?
Both my offline and online PCs are mostly in their original Ubuntu 24.04.4 state, except for enabling the firewall.
I haven't touched any repository settings. The image used to install Ubuntu 24.04.4 was "ubuntu-24.04.4-desktop-amd64.iso," which was downloaded from the official Ubuntu website.
Both events are scheduled to take place around May 8, 2026.
The following are the details of the execution in the terminal on the offline PC.
sudo apt-offline set /media/uzi/uzi-main-data/05-ibus-mozc.sig --install-packages ibus-mozc
Gathering installation details for package \['ibus-mozc'\]
The following are the details of the execution in the terminal on the online PC.
apt-offline get /media/uzi/uzi-net-data/05-ibus-mozc.sig --bundle /media/uzi/uzi-net-data/05-ibus-mozc.zip --threads 2 --verbose
VERBOSE: Namespace(verbose=True, quiet=False, get='/media/uzi/uzi-net-data/05-ibus-mozc.sig', socket_timeout=30, download_dir=None, cache_dir=None, disable_md5check=False, num_of_threads=2, bundle_file='/media/uzi/uzi-net-data/05-ibus-mozc.zip', deb_bugs=False, proxy_host=None, proxy_port=None, https_cert_file=None, https_key_file=None, http_basicauth=\[\], disable_cert_check=False, func=\<function fetcher at 0x7aee00995080\>)
VERBOSE: Default timeout now is: 30.
Fetching APT Data
VERBOSE: Item before split is: 'http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb' ibus-mozc_2.28.4715.102+dfsg-2.2build7_amd64.deb 189526 MD5Sum:cf60424448bfaa8e974b629f54f6e679
VERBOSE: Item after split is: 'http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb' ibus-mozc_2.28.4715.102+dfsg-2.2build7_amd64.deb 189526 MD5Sum:cf60424448bfaa8e974b629f54f6e679
VERBOSE: Stripped item URL is: http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb
VERBOSE: Stripped item FILE is: ibus-mozc_2.28.4715.102+dfsg-2.2build7_amd64.deb
VERBOSE: Stripped item SIZE is: 189526
VERBOSE: Stripped item CHECKSUM is: MD5Sum:cf60424448bfaa8e974b629f54f6e679
VERBOSE: Item before split is: 'http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb' ibus-mozc_2.28.4715.102+dfsg-2.2build7_amd64.deb 189526 MD5Sum:cf60424448bfaa8e974b629f54f6e679
VERBOSE: Item after split is: 'http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb' ibus-mozc_2.28.4715.102+dfsg-2.2build7_amd64.deb 189526 MD5Sum:cf60424448bfaa8e974b629f54f6e679
VERBOSE: Stripped item URL is: http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb
VERBOSE: Stripped item FILE is: ibus-mozc_2.28.4715.102+dfsg-2.2build7_amd64.deb
VERBOSE: Stripped item SIZE is: 189526
VERBOSE: Stripped item CHECKSUM is: MD5Sum:cf60424448bfaa8e974b629f54f6e679
VERBOSE: Thread is Thread-1 (run)
**VERBOSE: http://archive.ubuntu.com/ubuntu/pool/main/m/mozc/ibus-mozc_2.28.4715.102%2bdfsg-2.2build7_amd64.deb - 403 - Forbidden**
VERBOSE: Will still try with other package uris
ERROR: Failed to download ibus-mozc
Downloaded data to /media/uzi/uzi-net-data/05-ibus-mozc.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.
ERROR: ibus-mozc failed.