Skip to content

Conversation

mlocati
Copy link
Owner

@mlocati mlocati commented Aug 18, 2025

Close #1144

printf -- '- installing the Microsoft APT key\n'
if test $DISTRO_VERSION_NUMBER -eq 11; then
curl -sSLf -o /etc/apt/trusted.gpg.d/microsoft.asc https://packages.microsoft.com/keys/microsoft.asc
if test $DISTRO_VERSION_NUMBER -ge 13; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please use https://packages.microsoft.com/debian/12/prod/pool/main/ source which works until 13/Trixies packages are officially added?

Currently this prevents us testing PHP 8.5 and there is no easy workaround.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this prevents us testing PHP 8.5 and there is no easy workaround.

You can install the microsoft odbc driver youself: install-php-extensions should detect it's already installed and don't try to reinstall it in that case.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true, but still a lot of LoC would have to copied.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true, but still a lot of LoC would have to copied.

6 lines are "a lot" for you?

# Install msodbcsql on Debian 13 (Trixie) from Debian 12 (Bookworm) repository
apt-get update
apt-get install -qy --no-install-recommends gnupg
curl -sSLf https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor --yes --output /usr/share/keyrings/microsoft-prod.gpg
curl -sSLf https://packages.microsoft.com/config/debian/12/prod.list >/etc/apt/sources.list.d/mssql-release.list
apt-get update
ACCEPT_EULA=Y apt-get install -qy --no-install-recommends msodbcsql18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenPGP signature verification failed (sqlsrv, trixie)

2 participants