Bug 13185

Summary: Size verification failed during update of a debian-repository
Product: [Yocto Project Subprojects] opkg Reporter: Max <opkg-bug>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided    
Version: 0.3.6   
Target Milestone: 0.4.1   
Hardware: All   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Error Log none

Description Max 2019-02-15 22:19:10 UTC
Created attachment 4433 [details]
Error Log

The command 'opkg update' shows the following message after the Package-Index has been downloaded from a repository that has a debian folder structure:

Collected errors:
 * release_verify_file: Size verification failed for (null) - main/binary-armhf/Packages.

Attached is the complete error log file.

My system configuration:

Machine model: Raspberry Pi Model B Plus Rev 1.2
Linux version 4.18.20
opkg version 0.3.6

My opkg configuration file:

arch armhf 8
option cache_dir /run/opkg
option lists_dir /run/opkg
option info_dir /run/opkg
option tmp_dir /run
dist stable http://archive.raspbian.org/raspbian main
Comment 1 Melanie 2019-05-30 16:31:45 UTC
I have a very similar configuration as reported above and get the same error message.
Which size is opkg trying to verify in the 'release_verify_file' function?
As a workaround, is it possible to disable the size verification on the command line?
Comment 2 Alejandro del Castillo 2019-06-11 15:23:08 UTC
Fixed on commits:

cb6ad4a dist_hash_add_from_file: add debian repository information as extra_data
b7838a0 pkg_parse_line: allow Description fields that start with an empty line
78ba8fb release_parse_line: improve parsing of Release files

Debian-based repo support on opkg is a not very well supported feature. At the time I tried it, it was totally busted. I fixed 3 issues and now it works with raspbian, but I fear there are likely other bugs lingering.