Package: apt-offline
Version: 1.5
Severity: important
Tags: jessie

Dear Maintainer,

I've gone though the process for doing an update ie.
  apt-offline set update.sig --update
  apt-offline get update.sig --bundle update.zip

Doing "apt-offline install update.zip", I get the following output:
ERROR: I couldn't understand file type ftp.uk.debian.org_debian_dists_jessie_Release.gpg. ERROR: I couldn't understand file type security.debian.org_dists_jessie_updates_Release.gpg. ERROR: I couldn't understand file type ftp.uk.debian.org_debian_dists_jessie-updates_Release.gpg.


In /usr/share/pyshared/apt_offline_core/AptOfflineCoreLib.py it is expecting MIME type of "application/x-gnupg-keyring" butthe command:
  file --mime-type ftp.uk.debian.org_debian_dists_jessie_Release.gpg
reports "application/pgp-signature".

Versions of related packages:
file    1:5.22+15-2
libmagic1:amd64    1:5.22+15-2

I got it to work by making the following change to AptOfflineCoreLib.py:
--- AptOfflineCoreLib.py.orig   2014-09-15 19:28:06.000000000 +0100
+++ AptOfflineCoreLib.py.fix    2015-06-04 14:34:00.000000000 +0100
@@ -1155,7 +1155,7 @@
                                 os.rename(temp_filename, filename)
                         else:
                                 os.unlink(temp_filename)
- elif magicMIME.file( archive_file ) == "application/x-gnupg-keyring": + elif magicMIME.file( archive_file ) == "application/x-gnupg-keyring" or magicMIME.file( archive_file ) == "application/pgp-signature": filename = os.path.join(apt_update_target_path, filename)
                         shutil.copy2(archive_file, filename)
                         # PGP armored data should be bypassed


I believe this change has already been made in apt-offline version 1.6.


-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (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.9.8
ii  less                                   458-3
ii  libpython2.7-stdlib [python-argparse]  2.7.9-2
ii  python                                 2.7.9-1

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

apt-offline suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to