KDE 네온 인스턴스에 mssql-server를 성공적으로 설치했다고 가정합니다.
mssql-tools 및 unixodbc-dev를 설치하는 단계에서 다음 오류가 발생합니다.
sudo apt-get install mssql-tools unixodbc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mssql-tools : Depends: msodbcsql17 (>= 17.3.0.0) but it is not going
to be installed
Depends: msodbcsql17 (< 17.4.0.0) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
답변1
다음 단계에 따라 이 문제를 해결했습니다.
먼저 다중 아키텍처 지원을 설치하십시오.:
- 얻다:
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb
- dpkg를 사용하여 설치:
sudo dpkg -i multiarch-support_2.27-3ubuntu1.2_amd64.deb
2. 종속성 설치:
sudo apt install libodbc1
sudo apt install unixodbc
sudo apt-get install msodbcsql17 -y
마지막으로 mssql-tools 및 unixodbc-dev가 설치되었습니다.
sudo ACCEPT_EULA=Y apt install mssql-tools unixodbc-dev
이제 서버에 연결할 수 있습니다sqlcmd -S localhost -U SA -P '<MyPassword>'