So I tryed to install the missing files via
sudo apt update
sudo apt install unixodbc-dev
This is the result:
Hit:1
Index of /KAV_8.9.2 jammy InRelease
Hit:2
Index of /pool/PSA_18.0.55_12681 jammy InRelease
Hit:3
Index of /PHP80_17 jammy InRelease
Hit:4
Index of /PHP82_17 jammy InRelease
Hit:5
Index of /DRWEB_6.0.2.9 jammy InRelease
Hit:6
Index of /ubuntu/20.04/mssql-server-2019/ focal InRelease
Hit:7
Index of /ubuntu/20.04/mssql-server-2022/ focal InRelease
Hit:8
Index of /ubuntu/20.04/prod/ focal InRelease
Get:9
Index of /ubuntu jammy-security InRelease [110 kB]
Hit:10
Index of /ubuntu jammy InRelease
Get:11
Index of /ubuntu jammy-updates InRelease [119 kB]
Hit:12
Index of /kernelcare/kernelcare-debian/11/ kcare InRelease
Get:13
Index of /ubuntu jammy-backports InRelease [109 kB]
Fetched 338 kB in 1s (372 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libodbccr2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libodbc1 odbcinst odbcinst1debian2 unixodbc
Suggested packages:
msodbcsql17 unixodbc-bin
The following packages will be upgraded:
libodbc1 odbcinst odbcinst1debian2 unixodbc unixodbc-dev
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 701 kB of archives.
After this operation, 761 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1
Index of /ubuntu/20.04/prod/ focal/main amd64 libodbc1 amd64 2.3.11-1 [486 kB]
Get:2
Index of /ubuntu/20.04/prod/ focal/main amd64 odbcinst1debian2 amd64 2.3.11-1 [99.8 kB]
Get:3
Index of /ubuntu/20.04/prod/ focal/main amd64 odbcinst amd64 2.3.11-1 [21.3 kB]
Get:4
Index of /ubuntu/20.04/prod/ focal/main amd64 unixodbc amd64 2.3.11-1 [51.5 kB]
Get:5
Index of /ubuntu/20.04/prod/ focal/main amd64 unixodbc-dev amd64 2.3.11-1 [42.4 kB]
Fetched 701 kB in 0s (5587 kB/s)
(Reading database ... 151084 files and directories currently installed.)
Preparing to unpack .../libodbc1_2.3.11-1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbccr.so.2.0.0', which is also in package libodbccr2:amd64 2.3.9-5
Preparing to unpack .../odbcinst1debian2_2.3.11-1_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is also in package libodbcinst2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../odbcinst_2.3.11-1_amd64.deb ...
Unpacking odbcinst (2.3.11-1) over (2.3.9-5) ...
Preparing to unpack .../unixodbc_2.3.11-1_amd64.deb ...
Unpacking unixodbc (2.3.11-1) over (2.3.9-5) ...
Preparing to unpack .../unixodbc-dev_2.3.11-1_amd64.deb ...
Unpacking unixodbc-dev (2.3.11-1) over (2.3.9-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb
/var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)