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

Unsatisfied dependency for Brewtarget update in ubuntu 24.01 #840

Closed
grandpubaa opened this issue Sep 29, 2024 · 17 comments
Closed

Unsatisfied dependency for Brewtarget update in ubuntu 24.01 #840

grandpubaa opened this issue Sep 29, 2024 · 17 comments

Comments

@grandpubaa
Copy link

grandpubaa commented Sep 29, 2024

Brewtarget -4.05_24-1 pending on libqt5core5a, which is not available in Ubuntu 24.01. Installation is not possible. Pendency is not available in synaptic.

@matty0ung
Copy link
Contributor

Sorry you're hitting problems. I'll try to look at the dependencies in the packages at some point. In the meantime, you should be able to workaround by doing the following from the command line before installing Brewtarget:

sudo apt install libqt5core5a

But give me a shout if this doesn't work.

@grandpubaa
Copy link
Author

Hi Matt,

Sadly this workaround will not work, it returns the comment: libqt5core5t64 is selected instead off libqt5core5a

@matty0ung
Copy link
Contributor

Ah, hmm, OK. Maybe we just need to change the name of the dependency. Could you post the exact error message you get when you try to install Brewtarget?

@grandpubaa
Copy link
Author

Hi Matt,
Sorry wasn't able to react sooner.
Error:
dependency cannot be fulfilled:
libqt5core5a (>=5.9.5)

afbeelding

@grandpubaa
Copy link
Author

And if you want to install it through root, or synaptic:
libqt5core5a:

Package libqt5core5a is not available, but exists in the database.
This usually means that the package was either listed as a dependency but never made available, or was removed due to obsolescence, or is not available due to the current source list

afbeelding

@matty0ung
Copy link
Contributor

Thanks - that's helpful. Hopefully it's just a question of updating the dependency list in the package. I'll have a look.

(In the near future, we'll be on Qt 6, but I'm still debugging the upgrade, so I will try to fix this Qt5 dependency in the meantime.)

@matty0ung matty0ung changed the title Brewtarget update in ubuntu 24.01 Unsatisfied dependency for Brewtarget update in ubuntu 24.01 Oct 1, 2024
@matty0ung
Copy link
Contributor

When you get a moment, try with the patched installers downloadable from https://github.com/Brewtarget/brewtarget/actions/runs/11132482035 (or tonight's nightly builds when they run) and see if that fixes the problem. I've replaced the libqt5core5a dependency with what I think is its successor library.

@matty0ung
Copy link
Contributor

FYI, I think the change in library name was because of efforts in Debian to fix the "year 2038 problem" -- see https://wiki.debian.org/ReleaseGoals/64bit-time.

@grandpubaa
Copy link
Author

Hi Matt,

The install went fine, although some decencies needed to be removed during installation. Problem is after is says database with new ingredients is successful loaded, it wont start but just close the application. So now I don't have any working version anymore. (24.01 version)

@matty0ung
Copy link
Contributor

Ah, no, how frustrating. Don't worry though. There will be a solution! Just have to work out what's causing it to shut down - most likely either an assert or a crash. Can you post the Brewtarget log file here?

@grandpubaa
Copy link
Author

Hi Matt,

hereby the log files, also have the crash report, but it's 21mb and the file is not supported. So if you want have to convert it to a plain text.

@matty0ung
Copy link
Contributor

Thanks for that. I don't need the crash report for this one, but would you be able to upload your database.sqlite file (or email it to me to matt AT brewtarget DOT beer). Hopefully I can then reproduce the problems locally.

@matty0ung
Copy link
Contributor

From what I could tell in the log files, the program is encountering unexpected things in the database. It could be that your database has some unusual data in (that the code didn't account for), or it could be that it somehow got into a bad state (perhaps during one of the DB upgrades). I'm hoping the remaining work is either to fix your DB correctly or to make improvements to the DB upgrade process so that you can re-run it on your backup copy (which the upgrade process automatically makes before doing any modifications).

@grandpubaa
Copy link
Author

Hi Matt,

Indeed the problem lays in the data base. As I renamed the data base as old. It start. But every time I try to pull back the old database the program refuse to start.

@matty0ung
Copy link
Contributor

Many thanks for sending through your DB file. It did indeed give a clue to the remaining problem.

In the old database schema, it's possible to create a salt addition for a recipe that has "never" as the value for "when to add". This doesn't make a huge amount of sense (unless there is something else you wanted to do with the salt whilst brewing 😃), so we omitted this possibility from the new schema. However, we didn't correctly handle such "never" values when upgrading the database. I've added a fix (and tested it on your database file) in #856, which should make its way through to the main code within the next week.

@matty0ung
Copy link
Contributor

Fix included in Brewtarget 4.0.7.

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