[apt-offline-devel] v1.5 not working: apt_pkg.init_config() global name apt_pkg is not defined

Ritesh Raj Sarraf rrs at researchut.com
Wed Nov 23 11:04:07 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Please use version 1.7 from Debian Jessie Backports [1]. It has a lot of bug
fixes.

[1] https://packages.debian.org/jessie-backports/apt-offline



On Wed, 2016-11-23 at 05:08 +0100, tigusoft.build wrote:
> Ok the problem was simply that package python-apt was not installed.
> I do not see it listed as dependency of apt-offline, should it not be listed
> there?
> 
> Now program works, but another issue,
> it says that it can not understand the .gpg files.
> 
> If they are removed from (unapcked archive), then it does not complain but
> also it does nothing,
> e.g. on the offline computer even the index of packages is not updated,
> aptitude find libboost can not see libboost-all and so on.
> 
> 
> apt-offline set --update --upgrade --install-packages g++ -- foo.sig
> 
> apt-offline get --bundle foo.zip foo.sig
> ...
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/non-free/source/Sourc
> es.bz2.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/non-free/source/Sources.bz
> 2 - 404 - Not Found.
> ERROR: Will still try with other package uris
> http://ftp.pl.debian.org/debian/dists/jessie/non-free/source/Sources.gz done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/main/binary-amd64/Pac
> kages.bz2.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/main/binary-amd64/Packages
> .bz2 - 404 - Not Found.
> ERROR: Will still try with other package uris
> http://ftp.pl.debian.org/debian/dists/jessie/main/binary-amd64/Packages.gz
> done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/contrib/binary-amd64/
> Packages.bz2.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/contrib/binary-amd64/Packa
> ges.bz2 - 404 - Not Found.
> ERROR: Will still try with other package uris
> http://ftp.pl.debian.org/debian/dists/jessie/contrib/binary-amd64/Packages.gz
> done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/non-free/binary-amd64
> /Packages.bz2.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/non-free/binary-amd64/Pack
> ages.bz2 - 404 - Not Found.
> ERROR: Will still try with other package uris
> http://ftp.pl.debian.org/debian/dists/jessie/non-free/binary-amd64/Packages.gz
>  done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/contrib/i18n/Translat
> ion-en.bz2.
> http://ftp.pl.debian.org/debian/dists/jessie/contrib/i18n/Translation-en.bz2
> done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/main/i18n/Translation
> -en.bz2.
> http://ftp.pl.debian.org/debian/dists/jessie/main/i18n/Translation-en.bz2
> done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/non-free/i18n/Transla
> tion-en.bz2.
> http://ftp.pl.debian.org/debian/dists/jessie/non-free/i18n/Translation-en.bz2
> done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/Release.gpg.
> http://ftp.pl.debian.org/debian/dists/jessie/Release.gpg done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/Release.
> http://ftp.pl.debian.org/debian/dists/jessie/Release done.
> Downloading http://ftp.pl.debian.org/debian/dists/jessie/InRelease.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/InRelease - 404 - Not
> Found.
> ERROR: Will still try with other package uris
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/InRelease.bz2 - 404 - Not
> Found.
> ERROR: Will still try with other package uris
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/InRelease.gz - 404 - Not
> Found.
> ERROR: Will still try with other package uris
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/InRelease.lzma - 404 - Not
> Found.
> ERROR: Will still try with other package uris
> Downloading libtomcat7-java 7.0.56-3+deb8u5 - 3 MiB
> libtomcat7-java 7.0.56-3+deb8u5 done.
> 
> 
> ERROR: The following files failed to be downloaded.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/InRelease.bz2 failed.
> ERROR: http://ftp.pl.debian.org/debian/dists/jessie/InRelease.gz failed.
> ...
> 
> apt-offline --verbose install foo.zip
> 
> ERROR: I couldn't understand file type
> security.debian.org_dists_jessie_updates_Release.gpg.
> ERROR: I couldn't understand file type ftp.pl.debian.org_debian_dists_jessie-u
> pdates_Release.gpg.
> ERROR: I couldn't understand file type ftp.pl.debian.org_debian_dists_jessie_R
> elease.gpg.
> /var/cache/apt/archives/libtomcat7-java_7.0.56-3+deb8u5_all.deb file synced.
> 
> 
> 
> W dniu 2016-11-22 17:45:35 użytkownik tigusoft.build <tigusoft.build at op.pl>
> napisał:
> > On Debian 8 (amd64), I have apt-offline version 1.5 (according to dpkg -l
> > and to the program with -v).
> > 
> > When I try to use it with any options, I get error:
> > ...
> > ... in main()
> > ... in main
> > ... in setter
> > ... in Update
> > .... AptOfflineCOreLib.py line 1623 in __PythonAptUpdate
> > apt_pkg.init_config()
> > 
> > NameError: global name 'apt_pkg' is not defined.
> > 
> > When I run e.g:
> > apt-offline set test.sig
> > 
> > my /etc/apt/sources.list file containd a cdrom line, like
> > deb cdrom:[Debian......]/ jessie contrib main
> > that I now commented out (after trying apt-offline first)
> > 
> > in next lines is contains a
> > deb http://security.debian.org/ jessie/updates main contrib
> > deb-src http://security.debian.org/ jessie/updates main contrib
> > 
> > this are all lines (besides comments).
> > 
> > Please tell me how to fix this (or how to provide more information)
> > 
> > 
> > 
> > _______________________________________________
> > apt-offline-devel mailing list
> > apt-offline-devel at lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/apt-offline-devel
> > 
> 
> 
> 
> 
> _______________________________________________
> apt-offline-devel mailing list
> apt-offline-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/apt-offline-devel
- -- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQCVDstmIVAB/Yn02pjpYo/LhdWkFAlg1d6cACgkQpjpYo/Lh
dWkEbg//Yi3mKgDhsF8nqjmaQta4jKjsOhF2FL3cYs3ydpZzZ9rXuWQiI+U+e5Io
ISYj8ZDstwmYj4cs5bfXYkQhSu52Z5CLncWn0eG+a8dRhMfiZD9ZsNjbVKz8TSJi
oMdjQ4k+wc8skvdmpvXiAwWIFsnG12GH0s/fyBVaq2K4OMNd0TZZfaEHBQyXR2Di
PxgBuzRMe88mSbDkYHeJkQx1xwT1zzW2huQQWxlwu9FeyOYu7Xf20n9T3tqVn7Vr
PT/S+/78NUzaxIKssTYRs2QzEfEla0Vm4yIpnDxf2xRHNRsgA66GZXKWbHFjji+W
wh9dsWMHwC7mzt1dNg+4P801oIt1iZbeACLKiVIxLOvWYu/4KTzttyi3rTztRHEF
wuss59dEJ8UqSa6b9P3uixncSVwIol/nm61sEjPf8RkPxp29tP4h7r0Uo2JCFY4G
ZE4FpoftTc9QvamQYs7Rxh9+RGvCzPCrWWUPQUpHxbgNbtMMPJHw7iPP+mPR9PNY
p9gkH2yuP1tEUVjdtZpbzFJH7gbPCCYivleVEM4VRFvcI2IwsWeF9wUnr3TD+o4n
zccmkjbUe7gj1TqB1yxp3RMdol0/brM5OIQXy9ZKV8AT5I8pZM2r/jv+vRs0Zr1/
pOYG3MtQZ4zWJSeYC+frL16yw/c3CCZmWOZ6MIQ7x4ewWXMB30g=
=8kHb
-----END PGP SIGNATURE-----




More information about the apt-offline-devel mailing list