[SOLVED] libdeflate0 is kept back – dependency conflict – Ask Ubuntu

Issue

This Content is from ask ubuntu. Question asked by giammi56

I updated my Ubuntu 20.04.4 to be able to upgrade it to 22.04.1, but I am experiencing problems with libdeflate0. As already mentioned in the title, there is a dependency conflict:

sudo apt list --upgradable -a
Listing... Done
libdeflate0/focal 1.12-1~20.04.sav0 amd64 [upgradable from: 1.8-1ubuntu1~20.04.sav0]
libdeflate0/now 1.8-1ubuntu1~20.04.sav0 amd64 [installed,upgradable to: 1.12-1~20.04.sav0]
libdeflate0/focal 1.5-3 amd64

none of the above is a suitable option, because of unmet dependencies. Thus, I tried:

sudo aptitude remove libdeflate0
The following packages will be REMOVED:  
  libdeflate0 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 129 kB will be freed.
The following packages have unmet dependencies:
 libtiff5 : Depends: libdeflate0 (>= 1.0) but it is not going to be installed
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libdeflate0 [1.8-1ubuntu1~20.04.sav0 (now)]
Accept this solution? [Y/n/q/?]

with no suitable results. Typing n, the other options (more than 15) suggested removing many programs (e.g., wine and wine32), because of the spread of this packages across the dependencies. Then I tried:

sudo dpkg -l --force-remove-reinstreq libdeflate0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version                 Architecture Description
+++-=================-=======================-============-==============================================================
ri  libdeflate0:amd64 1.8-1ubuntu1~20.04.sav0 amd64        fast, whole-buffer DEFLATE-based compression and decompression
ii  libdeflate0:i386  1.8-1ubuntu1~20.04.sav0 i386         fast, whole-buffer DEFLATE-based compression and decompression

without success. Do you have any suggestion on how to proceed?



Solution

Answer n to the question. If this removes a lot of packages, then have these removed. Then fully update the system with a sudo apt dist-upgrade and proceed with the upgrade to Ubuntu 22.04. Once booted into Ubuntu 22.04, reinstall the packages. All user configuration will have been preserved.


This Question was asked in askubuntu by giammi56 and Answered by vanadium It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?