Update error after January update

Hi all,

after successful January 2018 update running on stretch I have noticed following error when checking updates:

Hit:11 http://security.debian.org stretch/updates/non-free armhf Packages
Err:12 http://security.debian.org stretch/updates/non-free Translation-en
BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
Fetched 495 kB in 3s (162 kB/s)
Reading package lists… Error!
E: Failed to fetch http://security.debian.org/dists/stretch/updates/non-free/i18n/Translation-en BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Splitting of file /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease failed as it doesn’t contain all expected parts 0 1 0
E: The package lists or status file could not be parsed or opened.

Tried apt-get clean, update but still failing on this.

Found this
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880170
but not sure if this is a topic.

Please does anyone has the same trouble?
Any hints what I should check or set?

Cheers!
Martin

Hi,

Please try:

sudo rm /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2

Then sudo apt-get update.

Thanks Tom.

Hi Tom,

/var/lib/apt/lists/partial/ was already empty and is still empty.
Already tried.

Thanks a lot,
Martin

Hi,

Please provide the output of:

ls -lah /var/lib/apt/lists/partial/

Thanks Tom.

I am sorry Tom, you were right, it was not empty, please see actions and outputs.

Thank you, Martin


drwx------ 2 _apt root 4.0K Feb 15 19:08 .
drwxr-xr-x 3 root root 4.0K Feb 15 19:08 …
-rw-r–r-- 1 root root 62K Feb 15 09:31 security.debian.org_dists_stretch_updates_InRelease
-rw-r–r-- 1 root root 1.8K Feb 7 22:51 security.debian.org_dists_stretch_updates_contrib_binary-armhf_Packages.xz
-rw-r–r-- 1 root root 1.8K Feb 7 22:51 security.debian.org_dists_stretch_updates_contrib_i18n_Translation-en.bz2
-rw-r–r-- 1 root root 291K Feb 15 07:53 security.debian.org_dists_stretch_updates_main_binary-armhf_Packages.xz
-rw-r–r-- 1 root root 129K Feb 14 22:39 security.debian.org_dists_stretch_updates_main_i18n_Translation-en.bz2
lrwxrwxrwx 1 root root 91 Feb 15 19:08 security.debian.org_dists_stretch_updates_non-free_binary-armhf_Packages.xz -> /var/lib/apt/lists/security.debian.org_dists_stretch_updates_non-free_binary-armhf_Packages
lrwxrwxrwx 1 root root 89 Feb 15 19:08 security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 -> /var/lib/apt/lists/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en
root@osmc:/home/osmc# rm /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2
root@osmc:/home/osmc# ls -lah /var/lib/apt/lists/partial/
total 508K
drwx------ 2 _apt root 4.0K Feb 15 19:09 .
drwxr-xr-x 3 root root 4.0K Feb 15 19:08 …
-rw-r–r-- 1 root root 62K Feb 15 09:31 security.debian.org_dists_stretch_updates_InRelease
-rw-r–r-- 1 root root 1.8K Feb 7 22:51 security.debian.org_dists_stretch_updates_contrib_binary-armhf_Packages.xz
-rw-r–r-- 1 root root 1.8K Feb 7 22:51 security.debian.org_dists_stretch_updates_contrib_i18n_Translation-en.bz2
-rw-r–r-- 1 root root 291K Feb 15 07:53 security.debian.org_dists_stretch_updates_main_binary-armhf_Packages.xz
-rw-r–r-- 1 root root 129K Feb 14 22:39 security.debian.org_dists_stretch_updates_main_i18n_Translation-en.bz2
lrwxrwxrwx 1 root root 91 Feb 15 19:08 security.debian.org_dists_stretch_updates_non-free_binary-armhf_Packages.xz -> /var/lib/apt/lists/security.debian.org_dists_stretch_updates_non-free_binary-armhf_Packages
root@osmc:/home/osmc# exit
exit
osmc@osmc:~$ sudo apt-get clean
osmc@osmc:~$ sudo apt-get update
Get:1 ://security.debian.org stretch/updates InRelease [63.0 kB]
Ign:2 ://ftp.debian.org/debian stretch InRelease
Hit:4 ://ftp.debian.org/debian stretch-updates InRelease
Hit:5 ://ftp.debian.org/debian stretch Release
Hit:3 ://ftp.fau.de/osmc/osmc/apt stretch InRelease
Get:6 ://security.debian.org stretch/updates/main armhf Packages [297 kB]
Get:7 ://security.debian.org stretch/updates/main Translation-en [132 kB]
Get:8 ://security.debian.org stretch/updates/contrib armhf Packages [1784 B]
Get:9 ://security.debian.org stretch/updates/contrib Translation-en [1759 B]
Hit:10 ://security.debian.org stretch/updates/non-free armhf Packages
Hit:11 ://security.debian.org stretch/updates/non-free Translation-en
Ign:10 ://security.debian.org stretch/updates/non-free armhf Packages
Ign:11 ://security.debian.org stretch/updates/non-free Translation-en
Hit:10 ://security.debian.org stretch/updates/non-free armhf Packages
Err:11 ://security.debian.org stretch/updates/non-free Translation-en
BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
Fetched 495 kB in 2s (170 kB/s)
Reading package lists… Error!
E: Failed to fetch ://security.debian.org/dists/stretch/updates/non-free/i18n/Translation-en BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Splitting of file /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease failed as it doesn’t contain all expected parts 0 1 0
E: The package lists or status file could not be parsed or opened.

I have already processed the removal

rm /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2

Originally got this>

root@osmc:/home/osmc# ls -lah /var/lib/apt/lists/partial/
total 512K
drwx------ 2 _apt root 4.0K Feb 15 19:08 .
drwxr-xr-x 3 root root 4.0K Feb 15 19:08 …
-rw-r–r-- 1 root root 62K Feb 15 09:31 security.debian.org_dists_stretch_updates_InRelease
-rw-r–r-- 1 root root 1.8K Feb 7 22:51 security.debian.org_dists_stretch_updates_contrib_binary-armhf_Packages.xz
-rw-r–r-- 1 root root 1.8K Feb 7 22:51 security.debian.org_dists_stretch_updates_contrib_i18n_Translation-en.bz2
-rw-r–r-- 1 root root 291K Feb 15 07:53 security.debian.org_dists_stretch_updates_main_binary-armhf_Packages.xz
-rw-r–r-- 1 root root 129K Feb 14 22:39 security.debian.org_dists_stretch_updates_main_i18n_Translation-en.bz2
lrwxrwxrwx 1 root root 91 Feb 15 19:08 security.debian.org_dists_stretch_updates_non-free_binary-armhf_Packages.xz -> /var/lib/apt/lists/security.debian.org_dists_stretch_updates_non-free_binary-armhf_Packages
lrwxrwxrwx 1 root root 89 Feb 15 19:08 security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 -> /var/lib/apt/lists/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en

Did exactly what you proposed earlier, like:

rm /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2

Then sudo apt-get update.

RESULT is:

Ign:2 ://ftp.debian.org/debian stretch InRelease
Get:1 ://security.debian.org stretch/updates InRelease [63.0 kB]
Hit:4 ://ftp.debian.org/debian stretch-updates InRelease
Hit:5 ://ftp.debian.org/debian stretch Release
Hit:3 ://ftp.fau.de/osmc/osmc/apt stretch InRelease
Get:6 ://security.debian.org stretch/updates/main armhf Packages [297 kB]
Get:7 ://security.debian.org stretch/updates/main Translation-en [132 kB]
Get:8 ://security.debian.org stretch/updates/contrib armhf Packages [1784 B]
Get:9 ://security.debian.org stretch/updates/contrib Translation-en [1759 B]
Hit:11 ://security.debian.org stretch/updates/non-free Translation-en
Hit:10 ://security.debian.org stretch/updates/non-free armhf Packages
Ign:11 ://security.debian.org stretch/updates/non-free Translation-en
Ign:10 ://security.debian.org stretch/updates/non-free armhf Packages
Err:11 ://security.debian.org stretch/updates/non-free Translation-en
BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
Fetched 63.0 kB in 3s (19.5 kB/s)
Reading package lists… Error!
E: Failed to fetch http://security.debian.org/dists/stretch/updates/non-free/binary-armhf/Packages.gz lzma_read: Read error (7)
E: Failed to fetch http://security.debian.org/dists/stretch/updates/non-free/i18n/Translation-en BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_non-free_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Splitting of file /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease failed as it doesn’t contain all expected parts 0 1 0
E: The package lists or status file could not be parsed or opened.

PLEASE NOTE: I have removed all the HTTP to be able to post this.

Hi,

Could you please provide logs please please?

grab-logs -A

Thanks Tom.

Sure Tome, here it is
https://paste.osmc.tv/tebenoluva

Thanks, Martin

Looks like either a problem with the card or with the Pi:

Feb 14 02:57:08 osmc kernel: mmc0: timeout waiting for hardware interrupt.
...
Feb 14 02:57:08 osmc kernel: mmc0: cmd op 24 arg 0x1fd7f flags 0xb5 - resp 00000900 00000000 00000000 00000000, err 0
Feb 14 02:57:08 osmc kernel: mmc0: data blocks 1 blksz 200 - err 0
Feb 14 02:57:08 osmc kernel: mmc0: =========== REGISTER DUMP ===========
Feb 14 02:57:08 osmc kernel: mmc0: SDCMD  0x00004098
Feb 14 02:57:08 osmc kernel: mmc0: SDARG  0x0001fd7f
Feb 14 02:57:08 osmc kernel: mmc0: SDTOUT 0x017d7840
Feb 14 02:57:08 osmc kernel: mmc0: SDCDIV 0x00000003
Feb 14 02:57:08 osmc kernel: mmc0: SDRSP0 0x00000900
Feb 14 02:57:08 osmc kernel: mmc0: SDRSP1 0x0000182e
Feb 14 02:57:08 osmc kernel: mmc0: SDRSP2 0xffffffff
Feb 14 02:57:08 osmc kernel: mmc0: SDRSP3 0x0002400f
Feb 14 02:57:08 osmc kernel: mmc0: SDHSTS 0x00000081
Feb 14 02:57:08 osmc kernel: mmc0: SDVDD  0x00000001
Feb 14 02:57:08 osmc kernel: mmc0: SDEDM  0x00010801
Feb 14 02:57:08 osmc kernel: mmc0: SDHCFG 0x0000050e
Feb 14 02:57:08 osmc kernel: mmc0: SDHBCT 0x00000200
Feb 14 02:57:08 osmc kernel: mmc0: SDHBLC 0x00000001
Feb 14 02:57:08 osmc kernel: mmc0: ===========================================
Feb 14 02:57:08 osmc kernel: mmcblk0: error -110 transferring data, sector 130431, nr 1, cmd response 0x900, card status 0x0

repeated multipe times. (More likely to be a bad card.)

Also, the bzip2 package is missing, possibly because of a bad card.

1 Like

Thanks dillthedog,

yes, got some troubles with the SD card, but did fresh installation and of the December version and then upgraded to January. If this is the root cause I will reinstall to new one or at least properly formatted.

Thanks a lot for checking the issue.

Kind regards,
Martin

As I said, it could be an issue with the Pi but that’s the less-likely option.

Out of interest, does the file /bin/bzip2 exist?

[quote=“dillthedog, post:13, topic:70853”]
/bin/bzip2
[/

Just out of interest dillthedog, bzip2 is not available ;(

can I install it by apt-get install?

What’s stopping you? :wink:

sudo apt-get install bzip2

unfortunately this ;(

osmc@osmc:~$ sudo apt-get install bzip2
Reading package lists… Error!
E: Splitting of file /var/lib/apt/lists/security.debian.org_dists_stretch_updates_InRelease failed as it doesn’t contain all expected parts 0 1 0
E: The package lists or status file could not be parsed or opened.

I had a sneaking suspicion that you might see something like this…

Realistically, back up you settings as best you can and reinstall OSMC on a fresh card.

Thanks a lot, will do so. :wink:

Hi Tom, Hi dillthedog,

so I have finally SOLVED my issue and guess what, without reinstalling OSMC :wink:

  1. I have installed bzip2 via deb files using libbz2-1.0_1.0.6-8.1_armhf.deb and bzip2_1.0.6-8.1_armhf.deb

  2. I have executed following commands:

sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update

… and voila, everything is back to normal :wink:

Thank you for all your support and have a good day.

Cheers,
Martin