apt-offline 1.8.0 released

Ritesh Raj Sarraf's picture

I am pleased to announce the release of apt-offline, version 1.8.0. This release is mainly a forward port of apt-offline to Python 3 and PyQt5. There are some glitches related to Python 3 and PyQt5, but overall the CLI interface works fine. Other than the porting, there's also an important bug fixed, related to memory leak when using the MIME library. And then there's some updates to the documentation (user examples) based on feedback from users.

Release is availabe from Github and Alioth




What is apt-offline ?

Description: offline APT package manager
apt-offline is an Offline APT Package Manager.
apt-offline can fully update and upgrade an APT based distribution without
connecting to the network, all of it transparent to APT.
apt-offline can be used to generate a signature on a machine (with no network).
This signature contains all download information required for the APT database
system. This signature file can be used on another machine connected to the
internet (which need not be a Debian box and can even be running windows) to
download the updates.
The downloaded data will contain all updates in a format understood by APT and
this data can be used by apt-offline to update the non-networked machine.
apt-offline can also fetch bug reports and make them available offline.




Issues with apt-offline

Tried to run apt-offline via python/Windows and via Ubuntu get same results. Not sure whats wrong

Tail end of command execution
ERROR: The following files failed to be downloaded.
ERROR: Not all errors are fatal. For eg. Translation files are not present on all mirrors.
ERROR: linux-cloud-tools-virtual-lts-xenial failed.
ERROR: linux-firmware failed.
ERROR: linux-libc-dev failed.
ERROR: linux-tools-virtual-lts-xenial failed.
ERROR: linux-virtual-lts-xenial failed.

Ritesh Raj Sarraf's picture

This is fine. Overall the

This is fine. Overall the operation succeeded, with the exception that the mentioned files failed to download. 

Multiple reasons for it are:

  1. The files are outdated and no more available on the remote servers
  2. Your apt database is outdated. Run apt-offline set --update
  3. The downloaded payload was corrupt and thus not included in the final dataset.

If you share the full console log, it'd be easier to conclude the actual cause. 

Note: Even it the screenshot in this blog entry's example, there are some files which aren't available (404 errors), which is perfectly fine.

I tried this using the GUI

I tried this using the GUI via Windows & Python but had the same errors.

Tried to run the update command:
$ sudo apt-offline set --update
usage: apt-offline set [-h] [--verbose] [--simulate]
[--install-packages [PKG [PKG ...]]]
[--install-src-packages [SOURCE PKG [SOURCE PKG ...]]]
[--src-build-dep] [--release release_name] [--update]
[--upgrade] [--upgrade-type upgrade]
apt-offline set: error: too few arguments

How can I dump the console log?

Thanks for the help

A bug looking for packages with different format

WARN: http://.../multiverse/dep11/icons-64x64.tar.xz - 404 - Not Found <- Indeed not there, but ...
WARN: http://.../multiverse/dep11/icons-64x64.gz - 404 - Not Found <- the ".gz" is there but the ".tar" is now missing
AptOfflineCoreLib.py:1278 NewPackageFile = PackageFile.split(".")[0] + "." + Format
AptOfflineCoreLib.py:1278 NewPackageFile = PackageFile.rsplit(".",1)[0] + "." + Format

Thanks for the good work

Add new comment