Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpkg-deb Version parse error #39

Open
iamkroot opened this issue Nov 15, 2022 · 2 comments
Open

dpkg-deb Version parse error #39

iamkroot opened this issue Nov 15, 2022 · 2 comments

Comments

@iamkroot
Copy link

iamkroot commented Nov 15, 2022

On running mist update, I get the following-

Err: Failed to process MPR package 'libx52'. The package won't be available to install from the MPR.
dpkg-deb: error: parsing file 'libx52/DEBIAN/control' near line 2 package 'libx52':
 'Version' field value '0.2.3_4_gb45dc59-1': invalid character in version number
Err: Failed to process MPR package 'bashtop-git'. The package won't be available to install from the MPR.
dpkg-deb: error: parsing file 'bashtop-git/DEBIAN/control' near line 2 package 'bashtop-git':
 'Version' field value 'r313.4bf71e6-1': version number does not start with digit

The error comes from

mist/src/update.rs

Lines 221 to 224 in 1cba924

message::error(&format!(
"Failed to process MPR package '{}'. The package won't be available to install from the MPR.\n",
pkg.pkgname.bold().green()
));

I have modified the source code to also print the stderr of the failed command to get the full error messages printed above.

message::error(&format!(
    "Failed to process MPR package '{}'. The package won't be available to install from the MPR.\n{}",
    pkg.pkgname.bold().green(),
    String::from_utf8_lossy(&cmd.stderr)
));

System info:
Kubuntu 22.10
dpkg-deb 1.21.9

@iamkroot iamkroot changed the title dpkg-deb parse error dpkg-deb Version parse error Nov 15, 2022
@hwittenborn
Copy link
Member

Sorry for the late response, I would've sworn I'd responded here :p.

Just confirming, but the error lines from dpkg-deb don't normally appear in Mist's output, right? Regarding the error though (at least the stuff coming from Mist itself) that's expected - that's an issue with the version of the package, probably from makedeb allowing an incorrect version to be built (potentially in a current version of makedeb, but possibly just from a previous version, it'll have to be looked into).

There's no way for those invalid package versions to work because they wouldn't work with APT either, so Mist just avoids using them at all and thus that error pops up.

@iamkroot
Copy link
Author

error lines from dpkg-deb don't normally appear in Mist's output, right?

correct

makedeb allowing an incorrect version to be built

That is unfortunate, could you point me to the correct place to report this bug?

Mist just avoids using them at all and thus that error pops up.

Sadly, this is a fatal error for mist, and I am no longer able to install anything (even other, valid packages) with it. Would it be possible to make this non-fatal somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants