On 05/06/2015 10:22, Ritesh Raj Sarraf wrote:
On Thursday 04 June 2015 08:39 PM, Peter Laird wrote:
After applying the fix to apt-offline described in bug #787730, I did:
apt-offline install update.zip
The package list files etc. are correctly synced to /var/lib/apt/lists
but with filename extension .bz2 eg.
-rw-r--r-- 1 root root 33775581 Jun 1 21:12
/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_binary-amd64_Packages
-rw-r--r-- 1 root root 33775581 Jun 3 21:45
/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2
Although they have a .bz2 extension, they are actually plain text
files - the output from the "file" command is:
/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2:
ASCII text, with very long lines
When I run aptitude, it reports:
BZ2_bzread: Read error (-5: DATA_ERROR_MAGIC)
Problem opening
/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_jessie_main_binary-amd64_Packages.bz2
The package lists or status file could not be parsed or opened.
and it does not show any packages.
As a workaround, I've renamed the files to remove the .bz2 extension
ie. (as root):
cd /var/lib/apt/lists
for i in *.bz2; do mv $i `basename $i .bz2`; done
aptitude then works as expected.
I did not have this issue when I upgraded from wheezy to jessie -I
assume that when I first got the jessie package list files etc.
usingapt-offline it was still the wheezy version ie. version 1.2.
This too should be fixed with version 1.6. Have you verified it with 1.6 ?
If it works, then we'll target this too for "1.6 for Jessie".
Yes, bug#787730 and bug#787736 are fixed in apt-offline version 1.6.
Using version 1.6 for all 3 steps (set, get, install) works OK.
Using version 1.6 for some steps and version 1.5 for others does not
work (in most cases).
In case other people are having this issue, the steps I took to install
apt-offline version 1.6 :
- On the box with a good internet connection, download
apt-offline_1.6.1_all.deb
e.g. via https://packages.debian.org/stretch/all/apt-offline/download
- copy apt-offline_1.6.1_all.deb to the Debian box
- Optional: on the Debian box, verify apt-offline_1.6.1_all.deb:
# Test file size, expect output "57416 apt-offline_1.6.1_all.deb"
wc -c apt-offline_1.6.1_all.deb
# Test MD5 hash, expect output "apt-offline_1.6.1_all.deb: OK"
echo "5c699069347782f676ac17fd049155e8 apt-offline_1.6.1_all.deb" |
md5sum -c
- On the Debian box install the new version; do the command as root
dpkg --install apt-offline_1.6.1_all.deb
When apt-offline in jessie is upgraded to version 1.6 I suggest
including the steps above in the
release notes (but change the URL to refer to jessie instead of stretch)
because apt-offline
version 1.5 cannot be used as-is to do the upgrade.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org