go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

Ubuntu 24.04 repo: sqlcmd not available

Open scara opened this issue 1 year ago • 4 comments

Hello @stuartpa , kind-of as in https://github.com/microsoft/go-sqlcmd/issues/528: sqlcmd is missing in 24.04 repo i.e no https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/s/sqlcmd/ folder.

TIA, Matteo

scara avatar May 24 '24 10:05 scara

I am seeing similar issues on Debian Bookworm; the sqlcmd package simply isn't there. For some use cases, apt-get install mssql-tools (the ODBC sqlcmd package) can be a replacement (but it is more restrictively licensed).

perlun avatar Sep 13 '24 09:09 perlun

The sqlcmd is still missing in the repo.

I found this workaround:

wget https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/s/sqlcmd/sqlcmd_1.5.0-1_jammy_all.deb
sudo dpkg -i sqlcmd_1.5.0-1_jammy_all.deb

It is not pretty because sideloading sqlcmd from a deb does not allow auto updates, but at least I got a working sqlcmd quickly. Apparently the sqlcmd tool for jammy works on noble as well.

jbauerrfid avatar Dec 10 '24 11:12 jbauerrfid

Instead of trying to install sqlcmd, install mssql-tools18 https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/m/mssql-tools18/

This installs to /opt/mssql-tools18/bin/sqlcmd

The documentation works but is missing 24.04 so needs adjusting slightly.

ghelyar avatar Apr 22 '25 09:04 ghelyar

@ghelyar that will be the non-Go version of sqlcmd though

matthetherington avatar Jun 02 '25 11:06 matthetherington