Git Product home page Git Product logo

apt-offline's Introduction

apt-offline -- An Offline Package Manager

(C) 2005 - 2022 Ritesh Raj Sarraf

apt-offline-gui

apt-offline is an offline package management tool written in the Python Programming Language. This program, as of now, is intended for people using Debian (And Debian based) systems.

It can help you install/upgrade packages, and their dependencies, on a Debian box with no direct internet connection. It can also download full bug report (Debian only) for those packages.

For Developers, it can help you download a source deb package, along with all its build dependencies.

This program allows leveraging the power of Debian (more precisely APT) onto a completely disconnected machine. Most people with slow or no internet connection (mostly people from 3rd world countries), may not have considered using Debian (or Debian derived distributions), because Debian's real taste is experienced when it is connected to the internet.

This utility is an attempt in making that problem eradicate. I hope this utility comes of use to you. I'd be eager to hear your comments/suggestions. Feel free to drop an email at rrs AT researchut |DOT| com

Dedication

This software is dedicated in memory of my father Santosh Kumar Sarraf. We miss you a lot.

apt-offline's People

Contributors

appaji avatar blaimi avatar eighthave avatar ideamonk avatar kunal avatar manish avatar ndpu avatar pabs3 avatar patryk27 avatar ralequi avatar rickysarraf avatar ruediger101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apt-offline's Issues

iOS support

Could this be ported on iOS please? There are no methods for iPhone users to disocnect (like using cellular data) I would really appreciate it.

apt-offline should use patch-delta when downloading the index from server/servers

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795487

Package: apt-offline
Version: 1.6.1
Severity: wishlist

Dear Maintainer,
From couple of years back Debian has has been using the concept of
diff. when updating the index.

https://wiki.debian.org/RepositoryFormat#indices_difference_files_.28diffs.29

What it basically does is calculate the delta between the index
Packages.gz or whatever it is and the one installed on the system and
only in case of hash sum mismatches or something it downloads a clean
copy from upstream/debian.org otherwise calculates diffs which make it
a much cheaper operation.

Now apt-offline aims to help in the same regard and the issue hurts
most of people who are in developing countries where we do not have
access to fat pipes and in some cases we have to even pay for a single
bit. In such scenarios if apt-offline is able to use the diff process,
it would be cheaper and faster operation as well.

Look forward to seeing it in a newer version of apt-offline. From what
I could figure out, apt does have some support of it.

Look forward to hopefully see the idea implemented in a new release.

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt-offline depends on:
ii apt 1.0.10.1
ii less 458-3
ii libpython2.7-stdlib [python-argparse] 2.7.10-3
ii python 2.7.9-1
pn python:any

Versions of packages apt-offline recommends:
ii debian-archive-keyring 2014.3
ii python-magic 1:5.22+15-2
ii python-soappy 0.12.22-1

apt-offline suggests no packages.

-- no debconf information

apt-offline: duplicate file during bug report download

rrs@chutzpah:~/devel/apt-offline/apt-offline (master)$ ./apt-offline get /var/tmp/upgrade.uris --cache-dir /var/cache/apt/archives/ --threads 5 --bug-reports --bundle /tmp/foo.zip

Fetching APT Data

WARNING: If you are on a slow connection, it is good to
WARNING: limit the number of threads to a low number like 2.
WARNING: Else higher number of threads executed could cause
WARNING: network congestion and timeouts.

libcupsppdc1 copied from local cache directory /var/cache/apt/archives/.
cups-core-drivers copied from local cache directory /var/cache/apt/archives/.
libcupsimage2 copied from local cache directory /var/cache/apt/archives/.
libcupscgi1 copied from local cache directory /var/cache/apt/archives/.
libcupsmime1 copied from local cache directory /var/cache/apt/archives/.
cups-server-common copied from local cache directory /var/cache/apt/archives/.
cups-daemon copied from local cache directory /var/cache/apt/archives/.
/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py:383: UserWarning: Duplicate name: 'libcups2{}658714{}__apt__bug__report'
filename.write( files_to_compress, os.path.basename( files_to_compress ), zipfile.ZIP_DEFLATED )
cups-common copied from local cache directory /var/cache/apt/archives/.
cups-ppdc copied from local cache directory /var/cache/apt/archives/.
/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py:383: UserWarning: Duplicate name: 'libcups2{}729713{}__apt__bug__report'
filename.write( files_to_compress, os.path.basename( files_to_compress ), zipfile.ZIP_DEFLATED )
/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py:383: UserWarning: Duplicate name: 'libcups2{}658966{}__apt__bug__report'
filename.write( files_to_compress, os.path.basename( files_to_compress ), zipfile.ZIP_DEFLATED )
libcups2 copied from local cache directory /var/cache/apt/archives/.
/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py:383: UserWarning: Duplicate name: 'libcups2{}588455{}__apt__bug__report'
filename.write( files_to_compress, os.path.basename( files_to_compress ), zipfile.ZIP_DEFLATED )
libcups2 copied from local cache directory /var/cache/apt/archives/.
icedtea-7-jre-jamvm copied from local cache directory /var/cache/apt/archives/.
amarok-utils copied from local cache directory /var/cache/apt/archives/.
cups-client copied from local cache directory /var/cache/apt/archives/.
ffmpegthumbs copied from local cache directory /var/cache/apt/archives/.
kde-sc-dev-latest copied from local cache directory /var/cache/apt/archives/.
openjdk-7-jre copied from local cache directory /var/cache/apt/archives/.
libchromaprint0 copied from local cache directory /var/cache/apt/archives/.
libffms2-4 copied from local cache directory /var/cache/apt/archives/.
openjdk-7-jre-headless copied from local cache directory /var/cache/apt/archives/.
libgegl-0.2-0 copied from local cache directory /var/cache/apt/archives/.
libkf5filemetadata3 copied from local cache directory /var/cache/apt/archives/.
libgsl0ldbl copied from local cache directory /var/cache/apt/archives/.
libkf5filemetadata-bin copied from local cache directory /var/cache/apt/archives/.
libkfilemetadata4 copied from local cache directory /var/cache/apt/archives/.
libkworkspace5-5 copied from local cache directory /var/cache/apt/archives/.
libmlt++3 copied from local cache directory /var/cache/apt/archives/.
libqapt3 copied from local cache directory /var/cache/apt/archives/.
qapt-batch copied from local cache directory /var/cache/apt/archives/.
libasound2-plugins copied from local cache directory /var/cache/apt/archives/.

apt-offline get ... failing

Howdy Ricky. I'm having trouble using "apt-offline get ..." on my Ubuntu 12.04.01 machine. The offline machine is Ubuntu 12.04. (Both are 64 bit and apt-offline is ver. 1.1) On my offline machine I did:

apt-offline set --verbose --update --install-packages pkg1 pkg2 pkg3 ... -- apt-offline.sig

I then followed up on my online machine:

apt-offline get --verbose -d <dirname> -s /var/cache/apt/archives apt-offline.sig

The pkg1... deb's download, but I don't get any other deb's for the update. The total download is 19MB, which can't be on a machine that has not been updated in months.

While downloading, I get a whole lot of output with 404 errors (http://pastebin.com/04pZasYM), and at the end it gives me the errors below (below the signature).

While I don't get any .deb's for the update, I do get a lot of files that look like (for example):

./download.virtualbox.org_virtualbox_debian_dists_precise_contrib_binary-amd64_Packages
./download.virtualbox.org_virtualbox_debian_dists_precise_contrib_binary-i386_Packages
./download.virtualbox.org_virtualbox_debian_dists_precise_Release
./download.virtualbox.org_virtualbox_debian_dists_precise_Release.gpg

Any thoughts?

/DA

ERROR: http://archive.canonical.com/ubuntu/dists/precise/partner/i18n/Index.lzma failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Index.gz failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Index.lzma failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/i18n/Index.gz failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/multiverse/i18n/Index.lzma failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/restricted/i18n/Index.gz failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/restricted/i18n/Index.lzma failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/universe/i18n/Index.gz failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/universe/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/main/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/main/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/main/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/main/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/i18n/Index.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Index.gz failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Index.lzma failed.

bug in fetch debian bts

Downloading libc0.1 2.21-6 - 2 MiB B
Fetched bug reports for package libxml-libxml-perl
libxml-libxml-perl 2.0123+dfsg-1+b1 done
Downloading libc-bin 2.21-6 - 708 KiB
Ignoring err: Possibly multiarch package locales{}555168{}__apt__bug__report

Fetched bug reports for package libc0.1-dev
libc0.1-dev 2.21-6 done
Downloading libicu55 55.1-7 - 7 MiB
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(_self.__args, *_self.__kwargs)
File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py", line 636, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 965, in DataFetcher
if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]:
File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 206, in FetchBugsDebian
self.AddToArchive( self.ArchiveFile, self.fileName )
File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 219, in AddToArchive
os.unlink(fileName)
OSError: [Errno 2] No such file or directory: 'locales{}555168{}__apt__bug__report'

Fetched bug reports for package libc0.1
libc0.1 2.21-6 done
Downloading libxml2 2.9.3+dfsg1-1 - 867 KiB
Fetched bug reports for package libicu55
libicu55 55.1-7 done
Downloading liblz4-1 0.0~r131-1 - 31 KiB

selectable backend

As commented in #50, we need to have an option to select the apt backend. Will help in cycling through available backends.

Progress bar does not increment the counter

When an item is found and picked from the cacheDir, the item counter in the progress bar is not incremented.

This gives the wrong overall progress status. :-(

libopencv-stitching2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-video2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-calib3d2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-features2d2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-objdetect2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-imgproc2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-gpu2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-flann2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-highgui2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-ts2.4 copied from local cache directory /var/cache/apt/archives/.
libopencv-core2.4 copied from local cache directory /var/cache/apt/archives/.
libplasma-geolocation-interface5 copied from local cache directory /var/cache/apt/archives/.
libstreams0 copied from local cache directory /var/cache/apt/archives/.
libquicktime2 copied from local cache directory /var/cache/apt/archives/.
libtaskmanager5 copied from local cache directory /var/cache/apt/archives/.
libvlccore8 copied from local cache directory /var/cache/apt/archives/.
libstreamanalyzer0 copied from local cache directory /var/cache/apt/archives/.
libweather-ion7 copied from local cache directory /var/cache/apt/archives/.
libvlc5 copied from local cache directory /var/cache/apt/archives/.
muon-common copied from local cache directory /var/cache/apt/archives/.
muon-notifier copied from local cache directory /var/cache/apt/archives/.
Downloading vlc 2.2.1-2+b2 - 1 MiB
melt copied from local cache directory /var/cache/apt/archives/.
Downloading vlc-nox 2.2.1-2+b2 - 2 MiB

1 / 74 items: [############^Z####### ] 69.8% of 6 MiB

item count broken in progress bar

Version 1.7.1

The item count is broken in the progress bar.

Downloading libpadwalker-perl - 18 KiB                                                             
libglewmx1.13 done                                                             
libpcap0.8 found in cache                                                            
linux-base found in cache                                                            
libpadwalker-perl done                                                             
Downloading modemmanager - 612 KiB                                                             
python-dateutil found in cache                                                            
python3-dateutil found in cache                                                            
Downloading qemu-system-misc - 7 MiB                                                             
modemmanager done                                                             
Downloading qemu-system-sparc - 2 MiB                                                             
g++-6 done                                                             
Downloading qemu-user - 6 MiB                                                             
gcc-6 done                                                             
Downloading qemu-utils - 715 KiB                                                             
qemu-utils done                                                             
Downloading qemu-user-static - 6 MiB                                                             
qemu-system-sparc done                                                             
Downloading spl - 12 KiB                                                             
spl done                                                             
gnome-photos found in cache                                                            
qemu-system-misc done                                                             
qemu-user done                                                             
qemu-user-static done                                                             
 94 /  72 items: [##############################] 100.0% of 231 MiB

Downloads binary .gz files as .bz2 and causes errors

This downloads the Debian Jessie package list files as .bz2 instead of the proper .gz and I have to manually rename them for them to work. Only some are wrong, but it's the i386-binary, which is most of them.

Issue in --bug-reports

libcupsmime1 copied from local cache directory /var/cache/apt/archives/.
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 620, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 629, in DataFetcher
if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]:
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 197, in FetchBugsDebian
self.AddToArchive( self.ArchiveFile, self.fileName )
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 209, in AddToArchive
if self.compress_the_file(ArchiveFile, fileName):
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 383, in compress_the_file
filename.write( files_to_compress, os.path.basename( files_to_compress ), zipfile.ZIP_DEFLATED )
File "/usr/lib/python2.7/zipfile.py", line 1123, in write
st = os.stat(filename)
OSError: [Errno 2] No such file or directory: 'cups-server-common{}729802{}__apt__bug__report'

cups-server-common copied from local cache directory /var/cache/apt/archives/.

apt-offline bug on Ubuntu

Hello, I am back and having trouble again. I have a newly installed machine from CDROM and the machine has never been on the Internet.

The manual page says that I must first run the apt-offline command with just the --update option, so that is what I attempted to do with steps 1 through 4 below.

I beleive that the problem begins with step #4 below when apt-offline produces a zero-length sig file. I must be doing something wrong before this point.

I have included the output from each of the 4 steps inline. Please let me know if there is any additional information that I can provide.

Thanks in advance,

  1. <<< Output >>> sudo ./apt-offline/apt-offline set step1.sig --update --verbose VERBOSE: Namespace(func=, set='step1.sig', set_install_packages=None, set_install_release=None, set_install_src_packages=None, set_update=True, set_upgrade=False, simulate=False, src_build_dep=False, upgrade_type='upgrade', verbose=True) VERBOSE: APT Update Method is of type: apt-get

Generating database of files that are needed for an update.
VERBOSE: Set environment variable for LANG from en_US.UTF-8 to C temporarily.
VERBOSE: Set environment variable for LANG back to its original from C to en_US.UTF-8.
VERBOSE: Calling __FixAptSigs to fix the apt sig problem

ls -l step1.sig

-rw-r--r-- 1 root root 4184 Jun 25 09:33 step1.sig

<<< End Output >>>

  1. <<< Output >>> # apt-offline get step1.sig -d step1 --verbose VERBOSE: Namespace(bundle_file=None, cache_dir=None, deb_bugs=False, disable_md5check=False, download_dir='step1', func=, get='step1.sig', num_of_threads=1, proxy_host=None, proxy_port=None, simulate=False, socket_timeout=30, verbose=True) VERBOSE: Default timeout now is: 30.

Fetching APT Data

VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_InRelease', '0', '\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_InRelease
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: APT uses new InRelease auth mechanismVERBOSE: Printing GPG URL/FilesVERBOSE: 'http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release.gpg us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpgVERBOSE: Printing Release URL/FilesVERBOSE: 'http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release us.archive.ubuntu.com_ubuntu_dists_utopic_ReleaseVERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_InRelease', '0', '\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_InRelease
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: APT uses new InRelease auth mechanismVERBOSE: Printing GPG URL/FilesVERBOSE: 'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release.gpg us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpgVERBOSE: Printing Release URL/FilesVERBOSE: 'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release us.archive.ubuntu.com_ubuntu_dists_utopic-updates_ReleaseVERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-amd64/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-amd64/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-amd64/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-amd64/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-amd64/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-amd64/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/i18n/Translation-en.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/main/i18n/Translation-en.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/i18n/Translation-en.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/i18n/Translation-en.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/i18n/Translation-en.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/restricted/i18n/Translation-en.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/i18n/Translation-en.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/universe/i18n/Translation-en.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release.gpg";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg', '0', '']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release.gpg
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release.gpg.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release.gpg done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_Release', '0', '']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_Release
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release.
http://us.archive.ubuntu.com/ubuntu/dists/utopic/Release done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic_InRelease', '0', '\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic_InRelease
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease failed. Retry with the remaining possible formats
VERBOSE: Retry download http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.bz2.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.bz2 - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: Failed with URL http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.bz2.
VERBOSE: Retry download http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.gz.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.gz - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: Failed with URL http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.gz.
VERBOSE: Retry download http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.lzma.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.lzma - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: Failed with URL http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.lzma.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-amd64/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-amd64/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-amd64/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-amd64/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-amd64/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/i18n/Translation-en.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/i18n/Translation-en.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/i18n/Translation-en.bz2'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en', '0', ':\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/i18n/Translation-en.bz2
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is: :
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/i18n/Translation-en.bz2.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/i18n/Translation-en.bz2 done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release.gpg";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg', '0', '']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release.gpg
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release.gpg.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release.gpg done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release', '0', '']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release.
http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/Release done.
VERBOSE: Item is ["'http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease'";, 'us.archive.ubuntu.com_ubuntu_dists_utopic-updates_InRelease', '0', '\n']
VERBOSE: Stripped item URL is: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease
VERBOSE: Stripped item FILE is: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_InRelease
VERBOSE: Stripped item SIZE is: 0
VERBOSE: Stripped item CHECKSUM is:
VERBOSE: Thread is Thread-1
Downloading http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease failed. Retry with the remaining possible formats
VERBOSE: Retry download http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.bz2.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.bz2 - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: Failed with URL http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.bz2.
VERBOSE: Retry download http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.gz.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.gz - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: Failed with URL http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.gz.
VERBOSE: Retry download http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.lzma.
VERBOSE: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.lzma - 404 - Not Found.
VERBOSE: Will still try with other package uris
VERBOSE: Failed with URL http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.lzma.

ERROR: The following files failed to be downloaded.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/utopic/InRelease.lzma failed.
ERROR: http://us.archive.ubuntu.com/ubuntu/dists/utopic-updates/InRelease.lzma failed.

Downloaded data to /g/g19/martymcf/install/step1

<<< End Output >>

  1. <<>> # sudo ./apt-offline/apt-offline install step1 --verbose VERBOSE: Namespace(allow_unauthenticated=False, func=, install='step1', install_src_path=None, simulate=False, skip_bug_reports=False, verbose=True) VERBOSE: Adding /usr/share/keyrings/ubuntu-archive-keyring.gpg to the apt-offline keyring VERBOSE: Adding /usr/share/keyrings/ubuntu-archive-removed-keys.gpg to the apt-offline keyring VERBOSE: Adding /usr/share/keyrings/ubuntu-master-keyring.gpg to the apt-offline keyring VERBOSE: {} VERBOSE: Great!!! No bugs found for all the packages that were downloaded.

VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources file synced to /var/lib/apt/lists/partial.
VERBOSE: us.archive.ubuntu.com_ubuntu_dists_utopic_Release file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en file synced to /var/lib/apt/lists/partial.
VERBOSE: File is us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg, hence 'True'.
VERBOSE: us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en file synced to /var/lib/apt/lists/partial.
VERBOSE: File is us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg, hence 'True'.
VERBOSE: us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg file synced to /var/lib/apt/lists/partial.
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg
gpgv: Signature made Thu 25 Jun 2015 06:25:11 AM PDT using DSA key ID 437D05B5
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key [email protected]"
gpgv: Signature made Thu 25 Jun 2015 06:25:11 AM PDT using RSA key ID C0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) [email protected]"
VERBOSE: us.archive.ubuntu.com_ubuntu_dists_utopic-updates is gpg clean
VERBOSE: /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg
gpgv: Signature made Tue 02 Dec 2014 06:11:25 PM PST using DSA key ID 437D05B5
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key [email protected]"
gpgv: Signature made Tue 02 Dec 2014 06:11:25 PM PST using RSA key ID C0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) [email protected]"
VERBOSE: us.archive.ubuntu.com_ubuntu_dists_utopic is gpg clean
VERBOSE: ['us.archive.ubuntu.com_ubuntu_dists_utopic-updates', 'us.archive.ubuntu.com_ubuntu_dists_utopic']
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_Release.gpg synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_multiverse_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic-updates_universe_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_Release synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_Release.gpg synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_main_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_main_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_main_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_multiverse_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_restricted_source_Sources synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-amd64_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_universe_binary-i386_Packages synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_universe_i18n_Translation-en synced.
us.archive.ubuntu.com_ubuntu_dists_utopic_universe_source_Sources synced.

<<>>

  1. <<>> # sudo ./apt-offline/apt-offline set step2.sig --upgrade --verbose VERBOSE: Namespace(func=, set='step2.sig', set_install_packages=None, set_install_release=None, set_install_src_packages=None, set_update=False, set_upgrade=True, simulate=False, src_build_dep=False, upgrade_type='upgrade', verbose=True) VERBOSE: APT Upgrade Method is of type: apt-get

Generating database of files that are needed for an upgrade.

ls -l step2.sig

-rw-r--r-- 1 root root 0 Jun 25 09:44 step2.sig

<<>>

Update docs to clarify how (if) to use apt-offline for updates for a cd-install'd system

Have been unsuccessful getting apt-offline to download security updates for a system installed via the debian DVDs. While the description of apt-offline makes it sound like a perfect apt-offline use case, digging through code and docs, it appears that maybe this isn't expected to work.

All of the .sig file entries in a installed-from-DVD, never-connected system are crdom URLs, instead of web URLs, and in AptOfflineCoreLib.py there's code to skip cdrom entries (lines 1148 to 1154).

Documentation should be clearer.

  • If this isn't supposed to work, documentation should spell that out so people don't spend time on it.
  • If this is supposed to work, documentation should have more detail on how to do it.

[Debian Stable Jessie] fix apt-offline in jessie

Hello again!

Warning: This is a long one.

I had some time to clone the current version of apt-offline from git and
try it out. It does seem like the problem with apt-offline not being
able to understand .gpg-files is fixed.

Unfortunately I ran into a couple of new issues. Here's what I did.
(In the following, the virtualisation host's hostname is 'iupiter' and
the container's hostname is 'metis'. The directory that both systems
share is always named /srv/lxc/${other_hostname}/, so it's
/srv/lxc/metis/ on the host 'iupiter' and it's /srv/lxc/iupiter/ on the
container 'metis'. I chose to omit some output with [...] where there
were no warnings or errors and everything worked as it should.)

  • First, I cloned the current apt-offline version from github and
    installed it on the container:

root@iupiter:# mkdir -p git/github
root@iupiter:
# cd git/github
root@iupiter:~/git/github# git clone
https://github.com/rickysarraf/apt-offline.git
Cloning into 'apt-offline'...
[...]

root@iupiter:/git/github# cd apt-offline/
root@iupiter:
/git/github/apt-offline# python setup.py build
running build
[...]

root@iupiter:~# cp -r git /srv/lxc/metis/

--- switch to container ---

root@metis:~# apt-get remove apt-offline
[...]

root@metis:~# cd /srv/lxc/iupiter/git/github/apt-offline/
root@metis:/srv/lxc/iupiter/git/github/apt-offline# python setup.py install
[...]

root@metis:~# which apt-offline
/usr/local/bin/apt-offline

  • Then I ran a little test

root@metis:~# /usr/local/bin/apt-offline set
/srv/lxc/iupiter/apt-offline.sig

Generating database of files that are needed for an update.

WARNING: /usr/bin/apt does not have a stable CLI interface yet. Use with
caution in scripts.

Generating database of file that are needed for operation upgrade

WARNING: /usr/bin/apt does not have a stable CLI interface yet. Use with
caution in scripts.

Those warning can be ignored.

--- switch to host ---

root@iupiter:~# /usr/bin/apt-offline get /srv/lxc/metis/apt-offline.sig
--download-dir /srv/lxc/metis/apt-offline --cache-dir
/var/cache/apt/archives

Fetching APT Data

Downloading
http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages.bz2.
ERROR:
http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages.bz2 -
404 - Not Found.
ERROR: Will still try with other package uris
http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages.gz
done.
Downloading
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.bz2.
ERROR:
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.bz2

ERROR: The following files failed to be downloaded.
ERROR:
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.gz failed.
ERROR:
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.lzma
failed.
ERROR: http://http.debian.net/debian/dists/jessie/InRelease.bz2 failed.
ERROR: http://http.debian.net/debian/dists/jessie/InRelease.gz failed.
ERROR: http://http.debian.net/debian/dists/jessie/InRelease.lzma failed.

Downloaded data to /srv/lxc/metis/apt-offline

  • As I understand it, the error messages about the failed downloads of
    Translation-en_US.... and InRelease... are nothing to fret about.
    The exception is more worrying, though.

The translation files are non-fatal. But InRelease is important. But in Jessie, I think they don't apply.

Now, at this point, the container, metis, had the current github version
of apt-offline installed in /usr/local/..., while the host, iupiter,
still ran version 1.5.1 from Debian's jessie repos.
I thought that maybe the signature file's format had subtly changed
between version, so I tried updating the host's apt-offline to the
github version, too:

root@iupiter:~# apt-get remove apt-offline
[...]

root@iupiter:# cd git/github/apt-offline/
root@iupiter:
/git/github/apt-offline# python setup.py install
[...]

root@iupiter:~/git/github/apt-offline# which apt-offline
/usr/local/bin/apt-offline

  • And then reran 'apt-offline get ...'

root@iupiter:~# apt-offline get /srv/lxc/metis/apt-offline.sig
--download-dir /srv/lxc/metis/apt-offline --cache-dir
/var/cache/apt/archives

Fetching APT Data

Downloading
http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages.bz2
http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages.gz
done
Downloading
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.bz2
Downloading
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en.bz2
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en.bz2 done
Downloading http://http.debian.net/debian/dists/jessie/Release.gpg
http://http.debian.net/debian/dists/jessie/Release.gpg done
Downloading http://http.debian.net/debian/dists/jessie/Release
http://http.debian.net/debian/dists/jessie/Release done
Downloading http://http.debian.net/debian/dists/jessie/InRelease
Downloading 0
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File
"/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py",
line 636, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File
"/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py",
line 1273, in DataFetcher
if DownloadPackages(url) is False and guiTerminateSignal is False:
File
"/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py",
line 1247, in DownloadPackages
if FetcherInstance.download_from_web(url, pkgFile, Str_DownloadDir)
== True:
File
"/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py",
line 682, in download_from_web
temp = urllib2.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 423, in open
protocol = req.get_type()
File "/usr/lib/python2.7/urllib2.py", line 285, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: 0

ERROR: The following files failed to be downloaded.
Not all errors are fatal. For eg. Translation files are not present on
all mirrors.
ERROR:
http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.lzma
failed.
ERROR: http://http.debian.net/debian/dists/jessie/InRelease.lzma failed.

Downloaded data to /srv/lxc/metis/apt-offline

  • Still the same exception. I decided to have a look at the signature
    file to see where the "URL type 0" comes from:

root@iupiter:~# cat /srv/lxc/metis/apt-offline.sig
'http://http.debian.net/debian/dists/jessie/main/binary-amd64/Packages.bz2'
http.debian.net_debian_dists_jessie_main_binary-amd64_Packages 0 :
'http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en_US.bz2'
http.debian.net_debian_dists_jessie_main_i18n_Translation-en%5fUS 0 :
'http://http.debian.net/debian/dists/jessie/main/i18n/Translation-en.bz2' http.debian.net_debian_dists_jessie_main_i18n_Translation-en
0 :
'http://http.debian.net/debian/dists/jessie/InRelease'
http.debian.net_debian_dists_jessie_InRelease 0
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Oh!! This bit again. I thought my fix in ec764f5 should have fixed it. But looks like Jessie's apt tool has older verison. As David suggested in the bug repot (referenced in the commit) I'm going to change the default back to apt-get. apt is much nicer but it needs more time to stabilize.

  • Clearly, the last line is the culprit. I suppose it's output from apt
    that should't ordinarily end up in the .sig-file. I suspect apt's output
    has changed. (To be fair, apt warns us about this. The message 'WARNING:
    /usr/bin/apt does not have a stable CLI interface yet. Use with caution
    in scripts.' turns up in the output of 'apt-offline set ...'.)
    Since the rest of the URLs get handled correctly it seems that
    everything that's needed should still get downloaded, so this is more of
    an annoyance. Still, it's a bug and should get fixed. If you're not in a
    great hurry about this, though, I'd file it and try my hand at fixing it
    myself.

I think I'll add a new option in the 'set' target. Currently it is hardcoded to the default and there's now simple way to opt in for a different apt backend. As much as I like the newer4 apt, its interface isn't stable. And David already mentioned that ther's no plan for a stable interface soon.

On with the programme... now I tried installing the downloaded packages
on the container:

root@metis:~# /usr/local/bin/apt-offline install
/srv/lxc/iupiter/apt-offline/
...
ERROR: Path for keyring is invalid: /etc/apt/trusted.gpg
gpgv: Signature made Sat 23 Jan 2016 02:19:39 PM CET using RSA key ID
46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key
(7.0/wheezy) [email protected]"
gpgv: Signature made Sat 23 Jan 2016 02:19:39 PM CET using RSA key ID
2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key
(8/jessie) [email protected]"
gpgv: Signature made Sat 23 Jan 2016 02:25:24 PM CET using RSA key ID
518E17E1
gpgv: Good signature from "Jessie Stable Release Key
[email protected]"
http.debian.net_debian_dists_jessie_Release synced.
http.debian.net_debian_dists_jessie_Release.gpg synced.
http.debian.net_debian_dists_jessie_main_binary-amd64_Packages synced.
http.debian.net_debian_dists_jessie_main_binary-amd64_Packages.bz2 synced.
http.debian.net_debian_dists_jessie_main_i18n_Translation-en synced.
http.debian.net_debian_dists_jessie_main_i18n_Translation-en.bz2 synced.

root@metis:~# ls -l /etc/apt/trusted.gpg
ls: cannot access /etc/apt/trusted.gpg: No such file or directory

  • OK, so for some reason the keyring's path is other than expected on
    the container:

root@metis:~# ls -Al /etc/apt/
total 20
drwxr-xr-x 2 root root 4096 Feb 18 11:51 apt.conf.d
drwxr-xr-x 2 root root 4096 Sep 15 2015 preferences.d
-rw-r--r-- 1 root root 531 Mar 29 13:11 sources.list
drwxr-xr-x 2 root root 4096 Sep 15 2015 sources.list.d
drwxr-xr-x 2 root root 4096 Feb 18 11:50 trusted.gpg.d

root@metis:~# ls -Al /etc/apt/trusted.gpg.d/
total 36
-rw-r--r-- 1 root root 5138 Nov 30 2014 debian-archive-jessie-automatic.gpg
-rw-r--r-- 1 root root 5147 Nov 30 2014
debian-archive-jessie-security-automatic.gpg
-rw-r--r-- 1 root root 2775 Nov 30 2014 debian-archive-jessie-stable.gpg
-rw-r--r-- 1 root root 4084 Nov 30 2014
debian-archive-squeeze-automatic.gpg
-rw-r--r-- 1 root root 2853 Nov 30 2014 debian-archive-squeeze-stable.gpg
-rw-r--r-- 1 root root 3780 Nov 30 2014 debian-archive-wheezy-automatic.gpg
-rw-r--r-- 1 root root 2851 Nov 30 2014 debian-archive-wheezy-stable.gpg

  • Still, the package signature could be verified OK and the packages
    were installed (well, 'synced') successfully, so I should be able to
    carry on:

/etc/apt/trusted.gpg is for backward compatibility. So it errored but is not fatal. So I think we should be okay here.

root@metis:~# apt-get upgrade
Reading package lists... Error!
E: BZ2_bzread: Read error (-5: DATA_ERROR_MAGIC)
E: Problem opening
/var/lib/apt/lists/http.debian.net_debian_dists_jessie_main_binary-amd64_Packages.bz2
E: The package lists or status file could not be parsed or opened.

..... snipped......

That error is from apt. It happens if it finds a corrupted file there. Now that corrupted file residing there could be for multiple reasons, but I'm sure apt-offline's bugs (in Jessie) resulted in that broken file there. :-(

Can you try the following ?

root@learner:/var/tmp/lxc# sudo dpkg -i apt-offline_1.5.2_all.deb 
-bash: sudo: command not found
root@learner:/var/tmp/lxc# dpkg -i apt-offline_1.5.2_all.deb 
(Reading database ... 10753 files and directories currently installed.)
Preparing to unpack apt-offline_1.5.2_all.deb ...
Unpacking apt-offline (1.5.2) over (1.5.2) ...
Setting up apt-offline (1.5.2) ...
Processing triggers for man-db (2.7.0.2-5) ...
root@learner:/var/tmp/lxc# apt-offline set /tmp/set.uris 

Generating database of files that are needed for an update.

Generating database of files that are needed for an upgrade.
E: BZ2_bzread: Read error (-5: DATA_ERROR_MAGIC)
E: Problem opening /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2
E: The package lists or status file could not be parsed or opened.
ERROR: FATAL: Something is wrong with the apt system.
root@learner:/var/tmp/lxc# rm /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_
httpredir.debian.org_debian_dists_jessie_Release
httpredir.debian.org_debian_dists_jessie_Release.gpg
httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages
httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2
httpredir.debian.org_debian_dists_jessie_main_i18n_Translation-en.bz2
root@learner:/var/tmp/lxc# rm /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2 
root@learner:/var/tmp/lxc# apt-offline set /tmp/set.uris 
Generating database of files that are needed for an update.

Generating database of files that are needed for an upgrade.
E: BZ2_bzread: Read error (-5: DATA_ERROR_MAGIC)
E: The package lists or status file could not be parsed or opened.
ERROR: FATAL: Something is wrong with the apt system.
root@learner:/var/tmp/lxc# apt-offline set /tmp/set.uris --update

Generating database of files that are needed for an update.
root@learner:/var/tmp/lxc# apt-offline set /tmp/set.uris --upgrade

Generating database of files that are needed for an upgrade.
E: BZ2_bzread: Read error (-5: DATA_ERROR_MAGIC)
E: The package lists or status file could not be parsed or opened.
ERROR: FATAL: Something is wrong with the apt system.
root@learner:/var/tmp/lxc# cat /tmp/set.uris 
root@learner:/var/tmp/lxc# apt-offline set /tmp/set.uris --update

Generating database of files that are needed for an update.
root@learner:/var/tmp/lxc# cp /tmp/set.uris .
root@learner:/var/tmp/lxc# apt-offline get set.uris --threads 5 --bundle jessie.zip 

Fetching APT Data

WARNING: If you are on a slow connection, it is good to
WARNING: limit the number of threads to a low number like 2.
WARNING: Else higher number of threads executed could cause
WARNING: network congestion and timeouts.

Downloading http://httpredir.debian.org/debian/dists/jessie/main/binary-amd64/Packages.bz2.                              
Downloading http://httpredir.debian.org/debian/dists/jessie/main/i18n/Translation-en.bz2.                              
Downloading http://httpredir.debian.org/debian/dists/jessie/Release.gpg.                              
Downloading http://httpredir.debian.org/debian/dists/jessie/Release.                              
Downloading http://httpredir.debian.org/debian/dists/jessie/InRelease.                              
ERROR: http://httpredir.debian.org/debian/dists/jessie/main/binary-amd64/Packages.bz2 - 404 - Not Found.                              
ERROR: Will still try with other package uris
ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease - 404 - Not Found.                              
ERROR: Will still try with other package uris
  0 /  5 items: [#        ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease.bz2 - 404 - Not Found.                              
ERROR: Will still try with other package uris
http://httpredir.debian.org/debian/dists/jessie/Release.gpg done.                                                            
  ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease.gz - 404 - Not Found.                              
ERROR: Will still try with other package uris
  1 /  5 items: [##              ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease.lzma - 404 - Not Found.                              
ERROR: Will still try with other package uris
http://httpredir.debian.org/debian/dists/jessie/Release done.                                                            
http://httpredir.debian.org/debian/dists/jessie/main/i18n/Translation-en.bz2 done.                                                            
http://httpredir.debian.org/debian/dists/jessie/main/binary-amd64/Packages.gz done.                                                            


ERROR: The following files failed to be downloaded.
ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease.bz2 failed.
ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease.gz failed.
ERROR: http://httpredir.debian.org/debian/dists/jessie/InRelease.lzma failed.

Downloaded data to /var/tmp/lxc/jessie.zip
root@learner:/var/tmp/lxc# apt-offline install /var/tmp/lxc/jessie.zip
gpgv: Signature made Sat Apr  2 15:26:05 2016 IST using RSA key ID 46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>"
gpgv: Signature made Sat Apr  2 15:26:05 2016 IST using RSA key ID 2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <[email protected]>"
gpgv: Signature made Sat Apr  2 15:32:07 2016 IST using RSA key ID 518E17E1
gpgv: Good signature from "Jessie Stable Release Key <[email protected]>"
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_Release synced.
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_Release.gpg synced.
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2 synced.
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_main_i18n_Translation-en.bz2 synced.
root@learner:/var/tmp/lxc# apt-offline install /var/tmp/lxc/jessie.zip
gpgv: Signature made Sat Apr  2 15:26:05 2016 IST using RSA key ID 46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>"
gpgv: Signature made Sat Apr  2 15:26:05 2016 IST using RSA key ID 2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <[email protected]>"
gpgv: Signature made Sat Apr  2 15:32:07 2016 IST using RSA key ID 518E17E1
gpgv: Good signature from "Jessie Stable Release Key <[email protected]>"
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_Release synced.
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_Release.gpg synced.
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2 synced.
/var/lib/apt/lists/partial/httpredir.debian.org_debian_dists_jessie_main_i18n_Translation-en.bz2 synced.
root@learner:/var/tmp/lxc# apt-offline set /tmp/upgrade.uris   

Generating database of files that are needed for an update.

Generating database of files that are needed for an upgrade.
E: BZ2_bzread: Read error (-5: DATA_ERROR_MAGIC)
E: Problem opening /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2
E: The package lists or status file could not be parsed or opened.
ERROR: FATAL: Something is wrong with the apt system.

errors in debianbts - SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)

My hunch is that this happens with simultaneous connections to the BTS. But then, the exception rasied is: SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)

Need to think on what will be the optimal handle for it.....

rrs@chutzpah:~/devel/apt-offline/apt-offline (master)$ ./apt-offline get /tmp/install.uris --threads 5 --cache-dir /var/cache/apt/archives/ --bundle /var/tmp/vbox.zip --bug-reports

Fetching APT Data

WARNING: If you are on a slow connection, it is good to
WARNING: limit the number of threads to a low number like 2.
WARNING: Else higher number of threads executed could cause
WARNING: network congestion and timeouts.

Downloading libsmartcols1 2.27-1 - 112 KiB
Downloading mount 2.27-1 - 170 KiB
Fetched bug reports for package libseccomp2.
libseccomp2 copied from local cache directory /var/cache/apt/archives/.
Fetched bug reports for package libsmartcols1.
Fetched bug reports for package libapparmor1.
libsmartcols1 2.27-1 done.
libapparmor1 copied from local cache directory /var/cache/apt/archives/.
Fetched bug reports for package libsystemd0.
libsystemd0 copied from local cache directory /var/cache/apt/archives/.
Downloading libfdisk1 2.27-1 - 188 KiB
Fetched bug reports for package libfdisk1.
libfdisk1 2.27-1 done.
Downloading util-linux 2.27-1 - 876 KiB
Fetched bug reports for package libgcrypt20.
libgcrypt20 copied from local cache directory /var/cache/apt/archives/.
7 /22Exception in thread Thread-3: ] 35.9% of 5 MiB
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in *bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py", line 632, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 636, in DataFetcher
if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]:
File "/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 166, in FetchBugsDebian
bugReport = debianbts.get_bug_log(eachBug)
File "/usr/lib/python2.7/dist-packages/debianbts.py", line 235, in get_bug_log
reply = server.get_bug_log(nr)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 545, in __call

return self.*r_call(_args, _kw)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 567, in __r_call
self.__hd, self.__ma)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 430, in __call
timeout = self.timeout)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 244, in call
r.endheaders()
File "/usr/lib/python2.7/httplib.py", line 1048, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 892, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 854, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1273, in connect
server_hostname=server_hostname)
File "/usr/lib/python2.7/ssl.py", line 352, in wrap_socket
_context=self)
File "/usr/lib/python2.7/ssl.py", line 579, in __init

self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)

Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in *bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py", line 632, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 765, in DataFetcher
if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]:
File "/home/rrs/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 166, in FetchBugsDebian
bugReport = debianbts.get_bug_log(eachBug)
File "/usr/lib/python2.7/dist-packages/debianbts.py", line 235, in get_bug_log
reply = server.get_bug_log(nr)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 545, in __call

return self.*r_call(_args, _kw)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 567, in __r_call
self.__hd, self.__ma)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 430, in __call
timeout = self.timeout)
File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 244, in call
r.endheaders()
File "/usr/lib/python2.7/httplib.py", line 1048, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 892, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 854, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1273, in connect
server_hostname=server_hostname)
File "/usr/lib/python2.7/ssl.py", line 352, in wrap_socket
_context=self)
File "/usr/lib/python2.7/ssl.py", line 579, in __init

self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)

CacheDir gets set to None and writeToCache blows up

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 669, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1201, in DataFetcher
    FetcherInstance.writeToCache(pkgFile)
  File "/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1020, in writeToCache
    self.copy_file(data, self.CacheDir)
  File "/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 552, in copy_file
    destFile = os.path.join(dest, os.path.basename(src))
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

zipfile exception on hurd platform

rrs@learner:~$ cat apt-offline-hurd-bug.txt
debianutils_4.7_hurd-i386.deb file synced.
libuuid1_2.27.1-3_hurd-i386.deb file synced.
gnumach-dev_2%3a1.6+git20160114-1_hurd-i386.deb file synced.
libblkid1_2.27.1-3_hurd-i386.deb file synced.
libp11-kit0_0.23.1-3_hurd-i386.deb file synced.
libc-dev-bin_2.21-7_hurd-i386.deb file synced.
libc-bin_2.21-7_hurd-i386.deb file synced.
hurd-libs0.3_1%3a0.7.git20160114-1_hurd-i386.deb file synced.
init-system-helpers_1.28_all.deb file synced.
sysvinit-utils_2.88dsf-59.3_hurd-i386.deb file synced.
bash_4.3-14+b1_hurd-i386.deb file synced.
sysv-rc_2.88dsf-59.3_all.deb file synced.
insserv_1.14.0-5.2_hurd-i386.deb file synced.
initscripts_2.88dsf-59.3_hurd-i386.deb file synced.
libc0.3-dev_2.21-7_hurd-i386.deb file synced.
libparted2_3.2-14_hurd-i386.deb file synced.
libsub-name-perl_0.14-1+b1_hurd-i386.deb file synced.
libc0.3_2.21-7_hurd-i386.deb file synced.
libxml-libxml-perl_2.0123+dfsg-1+b1_hurd-i386.deb file synced.
hurd_1%3a0.7.git20160114-1_hurd-i386.deb file synced.
perl_5.22.1-1_hurd-i386.deb file synced.
hurd-dev_1%3a0.7.git20160114-1_hurd-i386.deb file synced.
Traceback (most recent call last):
File "/usr/bin/apt-offline", line 28, in
main()
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1997, in main
args.func(args)
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1368, in installer
data.file.write( zipBugFile.read( filename ) )
File "/usr/lib/python2.7/zipfile.py", line 935, in read
return self.open(name, "r", pwd).read()
File "/usr/lib/python2.7/zipfile.py", line 630, in read
data = self.read1(n)
File "/usr/lib/python2.7/zipfile.py", line 684, in read1
max(n - len_readbuffer, self.MIN_READ_SIZE)
zlib.error: Error -3 while decompressing: invalid block type
2016-02-09 / 00:33:02 ♒♒♒ ☺

bug with bogus path

Executing command 'install /tmp/apt-offline-tests-9285.zip --simulate --skip-bug-reports'

Installing src package file icewm_1.3.8+githubmod+20150914+fa3fdef-2.dsc to /tmp/apt-offline-src-downloads-26071.
ERROR: Failed to unlink /tmp/apt-update-target-path-26071/lxde-metapackages_6.tar.xzapt-offline
Installing src package file lxde-metapackages_6.dsc to /tmp/apt-offline-src-downloads-26071.
Installing src package file eclipse_3.8.1-8.dsc to /tmp/apt-offline-src-downloads-26071.
ERROR: Failed to unlink /tmp/apt-update-target-path-26071/icewm_1.3.8+githubmod+20150914+fa3fdef-2.debian.tar.xzapt-offline
ERROR: Failed to unlink /tmp/apt-update-target-path-26071/eclipse_3.8.1-8.debian.tar.xzapt-offline
ERROR: Failed to unlink /tmp/apt-update-target-path-26071/icewm_1.3.8+githubmod+20150914+fa3fdef.orig.tar.xzapt-offline
ant-optional_1.9.6-1_all.deb file synced.
libaspectj-java_1.8.5-1_all.deb file synced.
aspectj_1.8.5-1_all.deb file synced.
ant_1.9.6-1_all.deb file synced.
libxml-namespacesupport-perl_1.11-1_all.deb file synced.
libxml-sax-base-perl_1.07-1_all.deb file synced.
libxml-sax-expat-perl_0.40-2_all.deb file synced.
libintl-perl_1.24-1_all.deb file synced.


and


Executing command 'install /tmp/apt-offline-tests-9285.zip --skip-bug-reports'
Installing src package file icewm_1.3.8+githubmod+20150914+fa3fdef-2.dsc to /tmp/apt-offline-src-downloads-26108.
ERROR: Failed to unlink /tmp/apt-update-target-path-26108/lxde-metapackages_6.tar.xzapt-offline
Installing src package file lxde-metapackages_6.dsc to /tmp/apt-offline-src-downloads-26108.
Installing src package file eclipse_3.8.1-8.dsc to /tmp/apt-offline-src-downloads-26108.
ERROR: Failed to unlink /tmp/apt-update-target-path-26108/icewm_1.3.8+githubmod+20150914+fa3fdef-2.debian.tar.xzapt-offline
ERROR: Failed to unlink /tmp/apt-update-target-path-26108/eclipse_3.8.1-8.debian.tar.xzapt-offline
ERROR: Failed to unlink /tmp/apt-update-target-path-26108/icewm_1.3.8+githubmod+20150914+fa3fdef.orig.tar.xzapt-offline
ant-optional_1.9.6-1_all.deb file synced.
libaspectj-java_1.8.5-1_all.deb file synced.
aspectj_1.8.5-1_all.deb file synced.
ant_1.9.6-1_all.deb file synced.
libxml-namespacesupport-perl_1.11-1_all.deb file synced.
libxml-sax-base-perl_1.07-1_all.deb file synced.
libxml-sax-expat-perl_0.40-2_all.deb file synced.
libintl-perl_1.24-1_all.deb file synced.

blacklist non {http|ftp} repositories

No, I mean I have that in
/etc/apt/sources.list

deb copy:/uba/ilarinoma/avatutJessie/dvd1 jessie main contrib
deb copy:/uba/ilarinoma/avatutJessie/dvd2 jessie main contrib
deb copy:/uba/ilarinoma/avatutJessie/dvd3 jessie main contrib

And I get in signature file:

# apt-offline set Raj_example

Generating database of files that are needed for an update.
Generating database of files that are needed for an upgrade.

And signature includes:

'copy:/uba/ilarinoma/avatutJessie/dvd1/dists/jessie/contrib/i18n/Translation-en.bz2' _uba_ilarinoma_avatutJessie_dvd1_dists_jessie_contrib_i18n_Translation-en.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd1/dists/jessie/contrib/i18n/Translation-fi.bz2' _uba_ilarinoma_avatutJessie_dvd1_dists_jessie_contrib_i18n_Translation-fi.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd1/dists/jessie/main/i18n/Translation-en.bz2' _uba_ilarinoma_avatutJessie_dvd1_dists_jessie_main_i18n_Translation-en.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd1/dists/jessie/main/i18n/Translation-fi.bz2' _uba_ilarinoma_avatutJessie_dvd1_dists_jessie_main_i18n_Translation-fi.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd1/dists/jessie/InRelease' _uba_ilarinoma_avatutJessie_dvd1_dists_jessie_InRelease 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/main/binary-i386/Packages.bz2' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_main_binary-i386_Packages.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/contrib/binary-i386/Packages.bz2' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_contrib_binary-i386_Packages.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/contrib/i18n/Translation-en.bz2' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_contrib_i18n_Translation-en.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/contrib/i18n/Translation-fi.bz2' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_contrib_i18n_Translation-fi.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/main/i18n/Translation-en.bz2' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_main_i18n_Translation-en.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/main/i18n/Translation-fi.bz2' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_main_i18n_Translation-fi.bz2 0 :
'copy:/uba/ilarinoma/avatutJessie/dvd2/dists/jessie/InRelease' _uba_ilarinoma_avatutJessie_dvd2_dists_jessie_InRelease 0 :

And now those copy lines in signature are stupid. Sorry for my english, it is hard to use right words.

Two documentation requests

First and foremost --- nice work. I'm working with machines that are air-gapped due to security concerns and apt-offline is the most sane way I've found to make sure they remain up to date. Well done.

Two requests:

First, I found that --install-package wouldn't work unless I had already done an --update --upgrade pass. It's possible this was due to my own messing around with sources.list, but if it is a dependency I'd like to see that early on in the man page.

Second, libmagic changed its API without bumping the version number. Version 5.22 (January 2, 2015) has magic_list. Version 4.26 (August 30, 2008) does not. And both compile to libmagic.so.1.0.0 despite the API change. I haven't narrowed down the issue beyond that, but adding a note about magic_list might be useful. I worked around the problem by installing the latest version in my home directory and using LD_LIBRARY_PATH to point to it. (The OS in question is a Red Hat derivative used at LLNL and a few other US National labs like Sandia and Los Alamos.)

Happy to provide more details if that would be useful.

Best,

Barry

Resolving errors with Linux Mint

I'm trying to update a Linux Mint 18 distribution but I have the current errors on the offline machine:

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  firefox firefox-locale-en mint-mirrors mint-upgrade-info mintinstall mintupdate ubuntu-drivers-common
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.4 MB of archives.
After this operation, 2'432 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://packages.linuxmint.com sarah/upstream amd64 ubuntu-drivers-common amd64 1:0.4.17.2linuxmint1
  Temporary failure resolving 'packages.linuxmint.com'
Err:2 http://packages.linuxmint.com sarah/upstream amd64 firefox amd64 50.1.0+linuxmint1+serena
  Temporary failure resolving 'packages.linuxmint.com'
Err:3 http://packages.linuxmint.com sarah/upstream amd64 firefox-locale-en amd64 50.1.0+linuxmint1+serena
  Temporary failure resolving 'packages.linuxmint.com'
Ign:4 http://packages.linuxmint.com sarah/main i386 mint-mirrors all 1.1.5
Ign:5 http://packages.linuxmint.com sarah/main i386 mint-upgrade-info all 1.0.6
Ign:6 http://packages.linuxmint.com sarah/main i386 mintinstall all 7.7.5
Ign:7 http://packages.linuxmint.com sarah/main i386 mintupdate all 5.1.0.4
Err:4 http://packages.linuxmint.com sarah/main i386 mint-mirrors all 1.1.5
  Temporary failure resolving 'packages.linuxmint.com'
Err:5 http://packages.linuxmint.com sarah/main i386 mint-upgrade-info all 1.0.6
  Temporary failure resolving 'packages.linuxmint.com'
Err:6 http://packages.linuxmint.com sarah/main i386 mintinstall all 7.7.5
  Temporary failure resolving 'packages.linuxmint.com'
Err:7 http://packages.linuxmint.com sarah/main i386 mintupdate all 5.1.0.4
  Temporary failure resolving 'packages.linuxmint.com'
E: Failed to fetch http://packages.linuxmint.com/pool/upstream/u/ubuntu-drivers-common/ubuntu-drivers-common_0.4.17.2linuxmint1_amd64.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Failed to fetch http://packages.linuxmint.com/pool/upstream/f/firefox/firefox_50.1.0+linuxmint1+serena_amd64.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Failed to fetch http://packages.linuxmint.com/pool/upstream/f/firefox/firefox-locale-en_50.1.0+linuxmint1+serena_amd64.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Failed to fetch http://packages.linuxmint.com/pool/main/m/mint-mirrors/mint-mirrors_1.1.5_all.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Failed to fetch http://packages.linuxmint.com/pool/main/m/mint-upgrade-info/mint-upgrade-info_1.0.6_all.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Failed to fetch http://packages.linuxmint.com/pool/main/m/mintinstall/mintinstall_7.7.5_all.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Failed to fetch http://packages.linuxmint.com/pool/main/m/mintupdate/mintupdate_5.1.0.4_all.deb  Temporary failure resolving 'packages.linuxmint.com'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

ERROR: I don't understand this error code 403

apt-offline is producing this message when the 'get' step tries to access some files from "extra" repositories like Docker.

Snippet:
Downloading https://apt.dockerproject.org/repo/dists/ubuntu-trusty/main/i18n/Translation-en_US.bz2
ERROR: I don't understand this error code 403
Please file a bug reportERROR: I don't understand this error code 403
Please file a bug reportERROR: I don't understand this error code 403
Please file a bug reportERROR: I don't understand this error code 403

Other requests to the same repo work fine:

Downloading https://apt.dockerproject.org/repo/dists/ubuntu-trusty/main/binary-i386/Packages.bz2                                                             
https://apt.dockerproject.org/repo/dists/ubuntu-trusty/main/binary-i386/Packages.bz2 done                                                             

Getting a 403 for this URL seems reasonable, as the page is indeed "forbidden" when accessed from a browser.

A potential fix might be just to add an if test and some logging code around line 850 of AptOfflineCoreLib.py, but I don't know the apt-offline code.

streamlining the process with defaults

Thanks again for apt-offline, it is a wonderful tool and makes it actually possible to run a machine offline! There are a couple of little details that would make it a lot easier, mostly it is a matter of setting default values for the signature file and the downloaded files, be it either the bundle or the individual files. Ultimately, I'd like to be able to use apt-offline like this:

apt-offline set
apt-offline get
apt-offline install

That means there would need to be defaults for the signature file location, the action (.e.g --update, and/or --upgrade, and the downloaded file location. There are a bunch of different ways this could be achieved, so I'm opening this issue to figure that out. Then I'd be happy to implement it and submit a pull request.

There could be /etc/apt-offline.conf where the defaults are set. On Debian, it could use a default mount location like /media/usb and build default paths off of that. In that case, it would make sense to have a --basepath option to override just the /media/usb part. Or other ways like using the current directory as the path, then use default filenames for the signature file and the downloads.

Local folder cache_dir ignored

I am trying to download the packages on the web-enabled machine with --cache-dir something or --cache-dir ./something but it seems the directive is ignored. No files are copied to the folder once downloaded and thus there is no caching. If a download fails then all of the files would have to be downloaded again.

From some sniffing I've done in the code the cache folder is not writable when trying to cache the downloaded file. The cache directory is writable when trying a simple open() and write from the main entry [point of the program. Or something like that.

Thanks!

Build instructions

Hello,
I have installed apt-offline on my raspberry pi with big hopes that it will solve my problem. My despair has returned after I (after lot of googling) have found this repository that is meant to be the windows version.
Why is there not a single sentence telling me what these files mean? Does really every linux user have to know everything and be an unstoppable hacker? I've been a programmer for several years by the way - I'm not just a 14 years old script-kiddie coming along.

Exception in download

This, IMO, is triggered on a congested network. It should be an intermittent corner case issue. Still, investigate the exception and handle it.

file 1%3a5.24-2 done.
Downloading gettext-base 0.19.6-1 - 119 KiB
47 /12Exception in thread Thread-4:# ] 68.3% of 108 MiB
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 620, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 734, in DataFetcher
if FetcherInstance.download_from_web( url, pkgFile, Str_DownloadDir ) == True:
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 250, in download_from_web
temp = urllib2.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1131, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 417, in _read_status
raise BadStatusLine(line)
BadStatusLine: ''

gettext-base 0.19.6-1 done.
libkeyutils1 copied from local cache directory /var/cache/apt/archives/.

MemoryError when installing bundle

Using v1.6.1:

  1. Updated the package tree using apt-offline.
  2. Did an upgrade from Raspbian jessie to stretch, with the following command:

sudo apt-offline set --install-packages vim tmux samba zsh redmine redmine-mysql apache2 --update --upgrade apt-offline.sig

Once I downloaded all the packages into the bundle.zip, I install it. It gets quite far but always breaks on the same point:

passenger_5.0.7-3_armhf.deb file synced.
libjs-coffeescript_1.9.3~dfsg-1_all.deb file synced.
ruby-coffee-script-source_1.9.1.1-1_all.deb file synced.
ruby-execjs_2.6.0-1_all.deb file synced.
ruby-coffee-script_2.4.1-1_all.deb file synced.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-coffee-rails_4.0.1-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby2.1-dev_2.1.5-4_armhf.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-dev_1%3a2.1.5.1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-ffi_1.9.6debian-2+b1_armhf.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-jbuilder_2.3.1-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-rb-inotify_0.9.5-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-listen_3.0.3-2_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-oj_2.12.10-3_armhf.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-passenger_5.0.7-3_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-sass_3.4.19-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-sass-rails_5.0.3-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-sdoc_0.4.1-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-spring_1.1.3-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-sqlite3_1.3.10-1_armhf.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-turbolinks_2.2.2-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-uglifier_2.7.2-1_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ruby-yajl_1.2.0-3_armhf.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type samba-vfs-modules_2%3a4.1.17+dfsg-4_armhf.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type ssl-cert_1.0.37_all.deb.
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
ERROR: I couldn't understand file type tmux_2.1-1_armhf.deb.
Traceback (most recent call last):
  File "/usr/local/bin/apt-offline", line 28, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1997, in main
    args.func(args)
  File "/usr/local/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1368, in installer
    data.file.write( zipBugFile.read( filename ) )
  File "/usr/lib/python2.7/zipfile.py", line 935, in read
    return self.open(name, "r", pwd).read()
  File "/usr/lib/python2.7/zipfile.py", line 630, in read
    data = self.read1(n)
  File "/usr/lib/python2.7/zipfile.py", line 665, in read1
    data = self._fileobj.read(nbytes)
MemoryError

I monitored the memory usage: I still have 900MB of RAM and 2GB unused swap right before the break. Also none of the mounted filesystems run out of space.

bundle.zip doesn't seem to be that big: only 391MB. When I did apt-offline get --bundle the only errors were with downloading "Translation" files, but I always ignore that and it doesn't pose any problems.

PS: Many thanks for creating this very useful program.

Travis CI test failure

ERROR: I couldn't understand file type icewm_1.3.7.orig.tar.gz.

ERROR: I couldn't understand file type icewm_1.3.7-1ubuntu1.debian.tar.gz.

ERROR: I couldn't understand file type eclipse_3.7.2-1.debian.tar.gz.

Traceback (most recent call last):

File "./apt-offline", line 28, in

main()

File "/home/travis/build/rickysarraf/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 1997, in main

args.func(args)

File "/home/travis/build/rickysarraf/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 1383, in installer

magic_check_and_uncompress( archive_file, filename )

File "/home/travis/build/rickysarraf/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 1171, in magic_check_and_uncompress

os.unlink(temp_filename)

OSError: [Errno 2] No such file or directory: '/tmp/apt-update-target-path-2422/eclipse_3.7.2.orig.tar.xzapt-offline'

The command "sudo ./tests/apt-offline-tests.sh 1>/dev/null" exited with 1.

Done. Your build exited with 1.

apt-offline not downloading updates

I faced the same issue as mentioned in issue#5. Followed the steps 1to3 and repeated again. However, no updated .deb files were downloaded. I generated the signature file from a fresh install of Ubuntu 12.04 LTS from cdrom. The version of apt-offline i used is 1.3.

Your help would be greately appreciated

Regards

Ramesh

bug during fetch debian bts

Another bug found today. But this one doesn't look to be out problem. Possibly debianbts's problem.

Fetched bug reports for package libhogweed4                               
libhogweed4 3.1.1-4 done                                                             
Downloading python2.7 2.7.11-3 - 258 KiB                               
 34 / 122 itemsException in thread Thread-5:####]  99.9% of 31 MiB
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py", line 636, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 1097, in DataFetcher
    if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]:
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 174, in FetchBugsDebian
    bugReport = debianbts.get_bug_log(eachBug)
  File "/usr/lib/python2.7/dist-packages/debianbts.py", line 320, in get_bug_log
    reply = _soap_client_call('get_bug_log', nr)
  File "/usr/lib/python2.7/dist-packages/debianbts.py", line 477, in _soap_client_call
    return getattr(soap_client, method_name)(soap_client, *soap_args)
  File "/usr/lib/python2.7/dist-packages/pysimplesoap/client.py", line 179, in <lambda>
    return lambda self=self, *args, **kwargs: self.call(attr, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pysimplesoap/client.py", line 262, in call
    jetty=self.__soap_server in ('jetty',))
  File "/usr/lib/python2.7/dist-packages/pysimplesoap/simplexml.py", line 56, in __init__
    self.__document = xml.dom.minidom.parseString(text)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
ExpatError: syntax error: line 1, column 49

routine test - issue in installer

Installing src package file eclipse_3.8.1-5.1.dsc to /tmp/apt-offline-src-downloads-30543.
Installing src package file emacs-defaults_45.0.dsc to /tmp/apt-offline-src-downloads-30543.
Installing src package file emacs-defaults_45.0.tar.gz to /tmp/apt-offline-src-downloads-30543.
Hola!!
ERROR: I couldn't understand file type eclipse_3.8.1-5.1.debian.tar.xz.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/libharfbuzz0b_0.9.28-2_amd64.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/libharfbuzz0b_0.9.28-2_amd64.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/libharfbuzz-gobject0_0.9.28-2_amd64.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/libharfbuzz-gobject0_0.9.28-2_amd64.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/libwayland-client0_1.5.0-1_amd64.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/libwayland-client0_1.5.0-1_amd64.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/libwayland-cursor0_1.5.0-1_amd64.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/libwayland-cursor0_1.5.0-1_amd64.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/libxshmfence1_1.1-3_i386.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/libxshmfence1_1.1-3_i386.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/libwayland-server0_1.5.0-1_amd64.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/libwayland-server0_1.5.0-1_amd64.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
/tmp/apt-package-target-path-30543/texinfo_5.2.0.dfsg.1-3_amd64.deb file synced.
VERBOSE: /tmp/apt-package-target-path-30543/texinfo_5.2.0.dfsg.1-3_amd64.deb file synced to /tmp/apt-update-target-path-30543.
Another Hola!!!
Hola!!
ERROR: I couldn't understand file type eclipse_3.8.1.orig.tar.xz.
Another Hola!!!
ERROR: Disabling apt gpg check can risk your machine to compromise.

apt-offline set Problem

Hi there

It's driving me nuts. For some reason the apt-offline set command does not add the upgrade stuff to my signature file. I did the following:

sudo apt-offline set --update --upgrade ~/apt.sig --verbose

Here is the verbose output http://pastebin.com/RGUMJx4R
And here is the apt.sig file http://pastebin.com/6izUynvR

I also tried the command

sudo apt-offline set ~/apt.sig

with the same result.
When I use this signature file to download the packages, it only downloads the update information but not the packages itself.
I'm executing this command on an Ubuntu Server 12.04.3 LTS and apt-offline version 1.1.1 build 1 (according to dpkg -s).

Any ideas?

Non-default ppas are skipped

When I've added a repository to to my sources, apt-offline misses those packages. For example, if I've done sudo apt-add-repository ppa:ansible/ansible and installed ansible from it, apt-offline misses the package and its dependencies, omitting them from the .sig file. Is there something I have to do to have these packages grabbed as well?

Incorrect total download count

The total no. of items says 224, where as the active says 227. :-(

xfonts-base copied from local cache directory /var/cache/apt/archives/.
Downloading xml-core - 23 KiB 75 MiB
xml-core done.
linux-headers-4.1.0-2-amd64 4.1.6-1 done.
libgl1-mesa-dri 10.6.5-1 done.
linux-headers-4.1.0-2-common 4.1.6-1 done.
227 /224 items: [####################^Z####### ] 98.0% of 175 MiB
[1]+ Stopped ./apt-offline get /tmp/install.uris --threads 5 --cache-dir /var/cache/apt/archives/ --bundle /var/tmp/vbox.zip
21:28 ♒♒♒ ☹ => 148

man page provides wrong proxy options

Using --proxy-host and --proxy-port according to the man page does not work. Error message: ERROR: Handle this exception.

Using --proxy-host : works fine.

tested with version 1.3.1ubuntu1

apt-offline struggles with NEW packages?

apt-offline is a very nice tool. Good job! However, some recent updates failed to download "everything":

root@test:/tmp# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-3.13.0-43 linux-headers-3.13.0-43-generic
linux-image-3.13.0-43-generic linux-image-extra-3.13.0-43-generic
The following packages will be upgraded:
bind9-host dnsutils graphviz libbind9-90 libcdt5 libcgraph6 libdns100
libgvc6 libgvpr2 libisc95 libisccc90 libisccfg90 libjasper1 liblwres90
libpathplan4 libplymouth2 libsepol1 linux-generic linux-headers-generic
linux-image-generic plymouth plymouth-theme-ubuntu-text python3-distupgrade
ubuntu-release-upgrader-core
24 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 64.4 MB of archives.
After this operation, 271 MB of additional disk space will be used.
Do you want to continue? [Y/n]

It seems to have something to do with the automatically selected NEW packages. (tested with version 1.3.1ubuntu1 and 1.5). However, --print-uris tells about some more missing packages.

routing batch testing on windows uncovered this bug

Downloading libecj-java 3.9.0-2 - 1 MiB
http://ftp.debian.org/debian/dists/unstable/main/binary-amd64/Packages.gz done.

Downloading libcommons-pool-java 1.6-2 - 103 KiB
Exception in thread Thread-3:##################] 99.0% of 67 MiB
Traceback (most recent call last):
File "C:\Users\rsarraf\AppData\Local\Continuum\Miniconda\lib\threading.py", li
ne 810, in __bootstrap_inner
self.run()
File "C:\Users\rsarraf\AppData\Local\Continuum\Miniconda\lib\threading.py", li
ne 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "H:\apt-offline\apt_offline_core\AptOfflineLib.py", line 601, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "H:\apt-offline\apt_offline_core\AptOfflineCoreLib.py", line 752, in Data
Fetcher
if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]:
File "H:\apt-offline\apt_offline_core\AptOfflineCoreLib.py", line 147, in Fetc
hBugsDebian
except NoNetwork:
NameError: global name 'NoNetwork' is not defined

ant-optional 1.9.4-1 done.

Downloading libcommons-dbcp-java 1.4-4 - 151 KiB
http://ftp.debian.org/debian/dists/unstable/main/binary-i386/Packages.gz done.

Downloading libservlet3.0-java 7.0.53-1 - 304 KiB

Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users\rsarraf\AppData\Local\Continuum\Miniconda\lib\threading.py", li
ne 810, in __bootstrap_inner
self.run()
File "C:\Users\rsarraf\AppData\Local\Continuum\Miniconda\lib\threading.py", li
ne 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "H:\apt-offline\apt_offline_core\AptOfflineLib.py", line 601, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "H:\apt-offline\apt_offline_core\AptOfflineCoreLib.py", line 752, in Data
Fetcher
if FetchBugReportsDebian.FetchBugsDebian( PackageName ) in [1, 2]:
File "H:\apt-offline\apt_offline_core\AptOfflineCoreLib.py", line 147, in Fetc
hBugsDebian
except NoNetwork:
NameError: global name 'NoNetwork' is not defined

ant 1.9.4-1 done.
Downloading libtomcat7-java 7.0.53-1 - 3 MiB
libcommons-dbcp-java 1.4-4 done.

python ./setup.py install --prefix=/foo doesn't install all of the necessary files

Tripped over this while working on the previous issue yesterday.

Short version: install doesn't copy over the apt_offline_core directory (and, presumably, apt_offline_gui) into the install directory specified by --prefix. This is my first experience poking around in python's build/install system so I'm afraid I have no help to offer beyond the bug report.

Long version:

rountree@cab689 ~/local/src$ git clone [email protected]:rickysarraf/apt-offline.git
Cloning into 'apt-offline'...
...
rountree@cab689 ~/local/src/apt-offline$ python --version
Python 2.7.7
rountree@cab689 ~/local/src/apt-offline$ python ./setup.py build --build-base=/g/g24/rountree/local/build/apt-offline install --prefix=/g/g24/rountree/local/install/apt-offline
rountree@cab689 ~/local/src/apt-offline$ echo $PYTHONPATH

rountree@cab689 ~/local/src/apt-offline$ export PYTHONPATH=/g/g24/rountree/local/install/apt-offline/
rountree@cab689 /local/src/apt-offline$ echo $PYTHONPATH
/g/g24/rountree/local/install/apt-offline/
rountree@cab689 **
/local/src/apt-offline$ ~/local/install/apt-offline/bin/apt-offline -h**
Traceback (most recent call last):
File "/g/g24/rountree/local/install/apt-offline/bin/apt-offline", line 25, in
from apt_offline_core.AptOfflineCoreLib import main
ImportError: No module named apt_offline_core.AptOfflineCoreLib

This fixes the the problem

rountree@cab670 ~$ cd local/src/apt-offline/
rountree@cab670 ~/local/src/apt-offline$ ls
INSTALL Makefile THANKS apt-offline-gui apt-offline-tests.sh apt-offline.html apt_offline_gui release_setps
LICENSE README apt-offline apt-offline-testcase.bat apt-offline.8 apt_offline_core bash_completion setup.py
rountree@cab670 ~/local/src/apt-offline$ cp -r apt_offline_core ~/local/install/apt-offline/
rountree@cab670 /local/src/apt-offline$ **/local/install/apt-offline/bin/apt-offline -h**
usage: apt-offline [-h] [--verbose] [--simulate] [-v] {set,get,install} ...
...

Wish: apt-offline handles mirror method

apt-offline uses sources.list from the machine where apt-offline set is started. The URLs within apt.sig are then downloaded at the machine where apt-offline get is started. As an example: When the set is started at a machine in Brasil and get is started at a machine in Germany, then apt-offline downloads from mirrors in Brasil (which is of course not the best performance option).

One idea to optimize this behavior is using the mirror option of apt: apt (apt-get) can automatically select a "good" mirror based on the location. In /etc/apt/sources.list a line like

deb mirror://mirrors.ubuntu.com/mirrors.txt ...

instead of

deb http://es.archive.ubuntu.com/ubuntu/ ...

motivates apt to download es.txt from http://mirrors.ubuntu.com/, if it is started in a location in Spain. With this option I could use the same sources.list for all (offline) machines around the world and apt-offline automatically choose a "good" mirror for get based on the location where is is started.

Failing to download "Index"

Hi. I created an "update.sig" file on my offline machine (http://think-open.org/kraftb/update.sig, Can't upload the ".sig" file to github).

Now when I try to fetch the update index on my online machine using the following command:
apt-offline get -d data/ update.sig

There are quite a number of errors like:
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Index.gz failed.
ERROR: http://security.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Index.lzma failed.

In the "update.sig" the following line can be found:
'http://security.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Index.bz2' security.ubuntu.com_ubuntu_dists_precise-security_main_i18n_Index 0 :

Now the problem seems that there is neither a ".gz" nor a ".lzma" file at the checked location: http://security.ubuntu.com/ubuntu/dists/precise-security/main/i18n/

But only a non-compressed "Index" file (without filename extension).

Would it be possible to fix apt-offline to try any common possible "Index" extension (no-extension, gz, lzma, bz2)

permission denied exception

libirs-export91 copied from local cache directory /var/cache/apt/archives/.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 620, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 623, in DataFetcher
if FetcherInstance.CheckHashDigest(full_file_path, checksum) is True:
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 96, in CheckHashDigest
return self.HashMessageDigestAlgorithms( checksum, type, file )
File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineLib.py", line 70, in HashMessageDigestAlgorithms
data = open( file, 'rb' )
IOError: [Errno 13] Permission denied: '/var/cache/apt/archives/linux-compiler-gcc-4.9-x86_4.1.6-1_amd64.deb'

systemd 226-1 done.
linux-headers-4.1.0-2-amd64 copied from local cache directory /var/cache/apt/archives/.

another random exception

rrs@learner:~/.rrs-home/devel/apt-offline/apt-offline (master)$ apt-offline get /tmp/set.uris --threads 5 -d /var/tmp/data/.zip

Fetching APT Data

ERROR: I couldn't create directory /var/tmp/data/.zip
Traceback (most recent call last):
  File "/usr/bin/apt-offline", line 28, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1984, in main
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 510, in fetcher
    errfunc( 1, '' )
TypeError: errfunc() takes exactly 3 arguments (2 given)
2015-10-31 / 22:32:29 ♒♒♒    ☹  => 1  ```

apt-offline install doesnt take any effect

Hi.
trying to use apt-offline:
Ubuntu 14.04.2 LTS x64
apt-offline 1.7

I have 2 vms - one offline and one online

  • on offline vm:
    apt-offline set --update --upgrade apt-offline.sig
  • on online vm:
    apt-offline get --bundle updates.zip -t 3 apt-offline.sig
  • then copy updates.zip to offline vm and:
    apt-offline install updates.zip --verbose
  • get a lot fo messages like:
    VERBOSE: us.archive.ubuntu.com_ubuntu_dists_trusty is gpg clean
    VERBOSE: ['security.ubuntu.com_ubuntu_dists_trusty-security', 'us.archive.ubuntu.com_ubuntu_dists_trusty-backports', 'us.archive.ubuntu.com_ubuntu_dists_trusty-updates', 'us.archive.ubuntu.com_ubuntu_dists_trusty']
    security.ubuntu.com_ubuntu_dists_trusty-security_InRelease synced.
    security.ubuntu.com_ubuntu_dists_trusty-security_Release synced.
  • on offline vm:
    apt-get upgrade
  • and see that:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libmpdec2
Use 'apt-get autoremove' to remove it.
The following packages have been kept back:
isc-dhcp-client isc-dhcp-common linux-generic linux-headers-generic
linux-image-generic
The following packages will be upgraded:
accountsservice apparmor apport apt apt-transport-https apt-utils base-files
bash-completion bind9-host bsdutils coreutils dh-python dnsutils dpkg
e2fslibs e2fsprogs fuse gcc-4.8-base grub-common grub-pc grub-pc-bin
grub2-common initscripts iproute iproute2 irqbalance krb5-locales
libaccountsservice0 libapparmor-perl libapparmor1 libapt-inst1.5
libapt-pkg4.12 libbind9-90 libblkid1 libcgmanager0 libcomerr2 libdns100
libdrm-intel1 libdrm-radeon1 libdrm2 libexpat1 libffi6 libfreetype6 libfuse2
libgnutls-openssl27 libgnutls26 libgssapi-krb5-2 libisc95 libisccc90
libisccfg90 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 liblwres90
libmount1 libnuma1 libpam-systemd libparted0debian1 libpcre3 libpng12-0
libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpython2.7
libpython2.7-minimal libpython2.7-stdlib libpython3.4-minimal
libpython3.4-stdlib libsqlite3-0 libss2 libssl1.0.0 libstdc++6
libsystemd-daemon0 libsystemd-login0 libtasn1-6 libudev1 libuuid1
libwhoopsie0 libxml2 linux-firmware linux-generic-lts-quantal
linux-headers-generic-lts-quantal linux-image-generic-lts-quantal login lshw
mount ntpdate openssh-client openssh-server openssh-sftp-server openssl
parted passwd patch policykit-1 python-apport python-apt python-apt-common
python-pkg-resources python-problem-report python-requests python-six
python-urllib3 python2.7 python2.7-minimal python3-apport python3-apt
python3-distupgrade python3-gdbm python3-problem-report
python3-update-manager python3.4 python3.4-minimal rsyslog sudo
systemd-services sysv-rc sysvinit-utils tzdata ubuntu-release-upgrader-core
udev unzip update-manager-core util-linux uuid-runtime whoopsie
wpasupplicant
128 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 53.0 MB/56.2 MB of archives.
After this operation, 19.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main e2fsprogs amd64 1.42.9-3ubuntu1.3 [667 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main login amd64 1:4.1.5.1-1ubuntu9.1 [301 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main mount amd64 2.20.1-5.1ubuntu20.7 [114 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main tzdata all 2015g-0ubuntu0.14.04 [164 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main sysvinit-utils amd64 2.88dsf-41ubuntu6.2 [53.1 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main sysv-rc all 2.88dsf-41ubuntu6.2 [36.4 kB]

Can't understand what I'm doing wrong..

exception when copying

Because it is trying to copy back to cache, but evaluating first, for a file that is non-existent.

libquadmath0 done                                                             
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py", line 677, in run
    self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 1198, in DataFetcher
    FetcherInstance.writeToCache(pkgFile)
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineCoreLib.py", line 1017, in writeToCache
    self.copy_file(data, self.CacheDir)
  File "/media/SSHD/rrs-home/devel/apt-offline/apt-offline/apt_offline_core/AptOfflineLib.py", line 555, in copy_file
    if os.path.samefile(src, destFile):
  File "/usr/lib/python2.7/posixpath.py", line 156, in samefile
    s2 = os.stat(f2)
OSError: [Errno 2] No such file or directory: '/var/cache/apt/archives/libquadmath0_6.1.1-9_amd64.deb'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.