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

tigusoft.build tigusoft.build at op.pl
Wed Nov 23 04:08:59 UTC 2016


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/Sources.bz2.
ERROR: http://ftp.pl.debian.org/debian/dists/jessie/non-free/source/Sources.bz2 - 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/Packages.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/Packages.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/Packages.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/Translation-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/Translation-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-updates_Release.gpg.
ERROR: I couldn't understand file type ftp.pl.debian.org_debian_dists_jessie_Release.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
>






More information about the apt-offline-devel mailing list