Score:2

How to change the version 1.21.x of dpkg tool of Ubuntu22.04 to the version 1.19.x of dpkg tool of Ubuntu20.04?

cw flag

I met a problem when making .deb in Ubuntu22.04, because the target environment does not support .deb made by dpkg version of 1.21.x. So I need to install dpkg tool with version 1.19.x just the same as that of Ubuntu20.04 in Ubuntu22.04. Could someone kindly provide an installation tutorial? Thanks very much!

I used "apt purge dpkg" to remove dpkg , but it failed because some software stopped the unintallation process.

muru avatar
us flag
Ah, no that's not going to be possible without some serious surgery of the internals. What is the actual error message you're getting? Deb packages built with any recent version should install fine on any other recent version ***provided*** dependencies are met. Your problem is unlikely to be due to dpkg unless this package depends on dpkg itself.
Simon_Fuys avatar
cw flag
I am installing .deb into a docker. The docker environment does not support 1.21.x version of dpkg, but supports 1.19.x version of dpkg. I've tested this. So I come here for help.
muru avatar
us flag
What's the actual error you are getting?
Simon_Fuys avatar
cw flag
I am trying to install some apps into a container and before installation, the apps should be packaged into .ova. Here comes the problem, which has been confirmed, the dpkg tool with version of 1.21.x of Ubuntu22.04 uses a different packaging strategy. So, the .ova package made in Ubuntu22.04 couldnot be identified by my current container. But the .ova package made in Ubuntu20.04 could be identified by my current container. So, I want to replace the dpkg tool of Ubuntu22.04 with the dpkg tool of version 1.19.x. But, I searched the Internet and found no tutorial. Then, I come here for help.
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.