[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issue with installing manually created Debian archive with APT



On Sat, Jul 31, 2021 at 04:20:25PM -0500, Hunter Wittenborn wrote:
> When I try installing the packages my program builds (with 'apt install ./debname.deb'), it works fine. But if I then try to reinstall the package (with 'apt reinstall ./debname.deb'), this error keeps popping up for some reason (the variables surrounded by '{}' represent values in a control file):
> 
> Repository is broken: {Package}:{Architecture} (= {Version}) has no Size information
> 
> Is there anything I'm doing wrong when creating the .deb package […]

Maybe as dpkg does a bit more than just tar and stuff while building
packages, but no, this message is due to a bug of sorts in apt:
https://salsa.debian.org/apt-team/apt/-/merge_requests/177

The changes are already merged to main and should be in experimental,
which was also the only release pocket effected in Debian (well,
technically the misconception as such is a few years old, but the
code equally hiding and bringing it to light is not).

Not sure about the state in Ubuntu, but I guess its only their
development release und only until the next sync/upload.


You can btw use -o Acquire::AllowUnsizedPackages=1 to disable this check.
Or, simply don't try to reinstall packages for (probably) no reason…


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: