0

I am trying to install libsasl2-dev on my laptop (Ubuntu 24.04.1 LTS). However, when I run the command

sudo apt install libsasl2-dev

I get an error message:

The following packages have unmet dependencies:
 libsasl2-dev : Depends: libsasl2-2 (= 2.1.28+dfsg1-5ubuntu3) but 2.1.28+dfsg1-5ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Any suggestion for debug or potential fixes? I tried searching but I was not able to find anything relevant...

1 Answers1

0

After further searching, I found out the best solution was to downgrade libsasl2-2. In order to be guided thru this process I used aptitude.

The full solution, including the interactive output with aptitude:

user@pc: sudo apt install aptitude

user@pc: sudo aptitude install libsasl2-dev The following NEW packages will be installed: libsasl2-dev{b} 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 243 kB of archives. After unpacking 896 kB will be used. The following packages have unmet dependencies: libsasl2-dev : Depends: libsasl2-2 (= 2.1.28+dfsg1-5ubuntu3) but 2.1.28+dfsg1-5ubuntu3.1 is installed The following actions will resolve these dependencies:

 Keep the following packages at their current version:
  1. libsasl2-dev [Not Installed]                       
    
    
    
    

Accept this solution? [Y/n/q/?] n The following actions will resolve these dependencies:

 Downgrade the following packages:                                            
  1. libsasl2-2 [2.1.28+dfsg1-5ubuntu3.1 (now) -> 2.1.28+dfsg1-5ubuntu3 (noble)]
    
    
    
    

Accept this solution? [Y/n/q/?] y The following packages will be DOWNGRADED: libsasl2-2 The following NEW packages will be installed: libsasl2-dev 0 packages upgraded, 1 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. Need to get 296 kB of archives. After unpacking 896 kB will be used. Do you want to continue? [Y/n/?] y Get: 1 http://archive.ubuntu.com/ubuntu noble/main amd64 libsasl2-2 amd64 2.1.28+dfsg1-5ubuntu3 [53,2 kB] Get: 2 http://archive.ubuntu.com/ubuntu noble/main amd64 libsasl2-dev amd64 2.1.28+dfsg1-5ubuntu3 [243 kB] Fetched 296 kB in 31s (9.610 B/s) dpkg: warning: downgrading libsasl2-2:amd64 from 2.1.28+dfsg1-5ubuntu3.1 to 2.1.28+dfsg1-5ubuntu3 (Reading database ... 507114 files and directories currently installed.) Preparing to unpack .../libsasl2-2_2.1.28+dfsg1-5ubuntu3_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.28+dfsg1-5ubuntu3) over (2.1.28+dfsg1-5ubuntu3.1) ... Selecting previously unselected package libsasl2-dev. Preparing to unpack .../libsasl2-dev_2.1.28+dfsg1-5ubuntu3_amd64.deb ... Unpacking libsasl2-dev (2.1.28+dfsg1-5ubuntu3) ... Setting up libsasl2-2:amd64 (2.1.28+dfsg1-5ubuntu3) ... Setting up libsasl2-dev (2.1.28+dfsg1-5ubuntu3) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for libc-bin (2.39-0ubuntu8.3) ...