Sql-Server

安裝 SQL Server,我得到未滿足的依賴項 libc++1 和 libjemalloc1 但它不可安裝

  • July 21, 2018

這是輸出,

$ sudo apt install -y mssql-server
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-server : Depends: libjemalloc1 but it is not installable
               Depends: libc++1 but it is not installable

這是因為這兩個軟體包都在 Ubuntu Universe 中,為了啟用您可以使用的儲存庫,

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

請注意,Universe 包不是由 Canonical 和 Ubuntu 團隊正式支持,而是由社區支持。有關更多資訊,請參閱安全常見問題解答

引用自:https://dba.stackexchange.com/questions/212868