本文介紹了無法找到包 msodbcsql的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
限時(shí)送ChatGPT賬號..
我正在嘗試使用此 指導(dǎo).當(dāng)我進(jìn)入步驟時(shí):
I'm trying to install mssql driver on Ubuntu 16.04 using this guidance. When I get into the step :
sudo ACCEPT_EULA=Y apt-get install msodbcsql
我收到一個錯誤:無法找到包 msodbcsql我錯過了哪一步?
I got an error : Unable to locate package msodbcsql What step did I miss?
提前致謝.
推薦答案
看來,因?yàn)楦鶕?jù)那個 url,Ubuntu 的正確命令是:
It seems, because, according to that url, right command for Ubuntu is:
sudo ACCEPT_EULA=Y apt-get install msodbcsql17
16.04 的完整腳本:
sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
#Download appropriate package for the OS version
#Choose only ONE of the following, corresponding to your OS version
#Ubuntu 16.04
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
exit
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install msodbcsql17
# optional: for bcp and sqlcmd
sudo ACCEPT_EULA=Y apt-get install mssql-tools
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc
# optional: for unixODBC development headers
sudo apt-get install unixodbc-dev
<小時(shí)>
更新(18 年 4 月 13 日)
考慮通過運(yùn)行以下命令來檢查 Microsoft 存儲庫是否已正確注冊:
Consider to check that Microsoft repository properly registered by running:
sudo apt-get update
因此,您應(yīng)該看到類似于 Get:30 http packages.microsoft.com/.."的一行
As a result you should see a line similar to a "Get:30 http packages.microsoft.com/ .."
我的虛擬機(jī)示例:
Get:29 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Get:30 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [31.7 kB]
Fetched 12.9 MB in 5s (2,265 kB/s)
這篇關(guān)于無法找到包 msodbcsql的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!