Problem upgrading from 1.12-0480 to 1.13.0-463 drivers

Describe the issue; be as descriptive as possible, you can include things like:
• What was the expected behavior:

apt upgrade works without any issues

• What is the observed result:

root@h001:/etc/alternatives# dpkg -l |grep habana
ii habanalabs-container-runtime 1.13.0-463 amd64 Habana Labs container runtime. Provides a modified version of runc allowing users to run GPU enabled containers.
ii habanalabs-dkms 1.13.0-463 all habanalabs driver in DKMS format.
ii habanalabs-firmware 1.13.0-463 amd64 Firmware package for Habana Labs processing accelerators
iU habanalabs-firmware-tools 1.13.0-463 amd64 Habanalabs firmware tools package
iU habanalabs-graph 1.13.0-463 amd64 habanalabs graph compiler
iU habanalabs-qual 1.13.0-463 amd64 This package contains Habanalabs qualification package. It designed to assist server vendors to qualify their Goya based server on the production line.
iF habanalabs-rdma-core 1.13.0-463 all Habana Labs rdma-core components.
iU habanalabs-thunk 1.13.0-463 all habanalabs thunk
ii habanatools 1.13.0-463 amd64 Habana Labs tools package

root@h001:~# dpkg -a --configure
Setting up habanalabs-rdma-core (1.13.0-463) …
/opt/habanalabs/rdma-core/src /
/opt/habanalabs/rdma-core/src/build/lib /opt/habanalabs/rdma-core/src /
ln: failed to create symbolic link ‘libibverbs.so.1’: File exists
dpkg: error processing package habanalabs-rdma-core (–configure):
installed habanalabs-rdma-core package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of habanalabs-thunk:
habanalabs-thunk depends on habanalabs-rdma-core; however:
Package habanalabs-rdma-core is not configured yet.
Package habanalabs-rdma-core which provides habanalabs-rdma-core is not configured yet.

dpkg: error processing package habanalabs-thunk (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of habanalabs-firmware-tools:
habanalabs-firmware-tools depends on habanalabs-thunk (>= 1.13.0-463) | habanalabs-thunk-internal (>= 1.13.0-463); however:
Package habanalabs-thunk is not configured yet.
Package habanalabs-thunk-internal is not installed.

dpkg: error processing package habanalabs-firmware-tools (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of habanalabs-graph:
habanalabs-graph depends on habanalabs-thunk (>= 1.13.0-463) | habanalabs-thunk-internal (>= 1.13.0-463); however:
Package habanalabs-thunk is not configured yet.
Package habanalabs-thunk-internal is not installed.

dpkg: error processing package habanalabs-graph (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of habanalabs-qual:
habanalabs-qual depends on habanalabs-graph (>= 1.13.0) | habanalabs-graph-internal (>= 1.13.0); however:
Package habanalabs-graph is not configured yet.
Package habanalabs-graph-internal is not installed.

dpkg: error processing package habanalabs-qual (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
habanalabs-rdma-core
habanalabs-thunk
habanalabs-firmware-tools
habanalabs-graph
habanalabs-qual
root@h001:~#

• Is the issue consistently reproducible?

Ref. Problems installing habanalabs-dkms_1.12.0-480_all.deb on ubuntu 22.04.3LTS w/5.15.0-86-generic

Remove “rm -rf /var/lib/dkms/habanalabs-dkms/1.12.0-480” but it did not help.

• If you are using AWS DL1 instance, please report the AMI name that you are using

What is the Details of the Environment

  • Docker or not docker

NA. - But both

  • Build from source or binary distribution

Installed from repo

  • OS version: uname -a

root@h001:~# uname -a
Linux h001 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

  • Software versions: (dpkg -l | grep habanalabs)

root@h001:~# dpkg -l | grep habanalabs
ii habanalabs-container-runtime 1.13.0-463 amd64 Habana Labs container runtime. Provides a modified version of runc allowing users to run GPU enabled containers.
ii habanalabs-dkms 1.13.0-463 all habanalabs driver in DKMS format.
ii habanalabs-firmware 1.13.0-463 amd64 Firmware package for Habana Labs processing accelerators
iU habanalabs-firmware-tools 1.13.0-463 amd64 Habanalabs firmware tools package
iU habanalabs-graph 1.13.0-463 amd64 habanalabs graph compiler
iU habanalabs-qual 1.13.0-463 amd64 This package contains Habanalabs qualification package. It designed to assist server vendors to qualify their Goya based server on the production line.
iF habanalabs-rdma-core 1.13.0-463 all Habana Labs rdma-core components.
iU habanalabs-thunk 1.13.0-463 all habanalabs thunk

  • Python versions used: python –version

root@h001:~# python --version
Python 3.10.12

  • Please attach the dmesg dump, dmesg.log: dmesg > dmesg.log
    NA

If Bare Metal, please share the current Habana release version and Firmware version by running this command: sudo hl-smi -q

Failing due to failure to install new driver.