Score:0

how package dependencies version name check work?

in flag

I think what is not clear is the version naming check.
For ex.:

$ sudo apt install libsdl2-dev
libsdl2-dev : Depends: libasound2-dev but it is not going to be installed
$ sudo apt install libasound2-dev
libasound2-dev : Depends: libasound2 (= 1.2.2-2.1)
$ sudo apt install libasound2
libasound2 is already the newest version (1.2.2-2.1ubuntu2).

So, why version "1.2.2-2.1" differs from "1.2.2-2.1ubuntu2" ?
I mean, is apt install looking for "1.2.2-2.1" and when it checks about the package "1.2.2-2.1ubuntu2" it is unable to match or something else is happening ?
Should I remove the package version "1.2.2-2.1ubuntu2" and try to find and install it versioned like "1.2.2-2.1" ?

Could I use some trick to let apt install accept "1.2.2-2.1ubuntu2" as if it was the probably different package named "1.2.2-2.1"?
And finally, is package version "1.2.2-2.1" really different from "1.2.2-2.1ubuntu2"?
If not, could I just repack "1.2.2-2.1ubuntu2" as "1.2.2-2.1"? but how? (tho I found that many packages depend on the specific "1.2.2-2.1ubuntu2" and it would be too much trouble to change them all, in case it could work of course)

user535733 avatar
cn flag
Look at the comparison operator: `=`. The version string match must be *exact*, no different characters, no additional characters, no fewer characters.
in flag
ah.. anyway the real problem that made me ask this is that I dont get why SDL2 dev is impossible to be installed, the dependencies are weird! if I really try, it will ask to uninstall a lot of packages and that makes no sense. I dont get also why other ppl are not having this problem (or at least not talking about it as I cant find a solution on google).
user535733 avatar
cn flag
Check your sources: Do you have focal-updates enabled? Does an `apt update` work properly?
in flag
@user535733 solved here: https://askubuntu.com/questions/1389872/why-it-is-impossible-to-install-libsdl2-dev-on-ubuntu-20-04-or-is-there-some-wa?noredirect=1#comment2402319_1389872 , thx!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.