Bug 13185 - Size verification failed during update of a debian-repository
Summary: Size verification failed during update of a debian-repository
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.6
Hardware: All arm
: Undecided normal
Target Milestone: 0.4.1
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-02-15 22:19 UTC by Max
Modified: 2019-06-11 15:23 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Error Log (1.07 KB, text/plain)
2019-02-15 22:19 UTC, Max
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.