AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[mssql](ubuntu)

Martin Hope
Mohamed Mousa
Asked: 2020-12-10 13:48:35 +0800 CST

安装 Microsoft SQL Server 2019 Ubuntu 20.10

  • 0

当我按照以下链接中的步骤在 ubuntu 上安装 ms-SQL-serve 时遇到问题:

https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15

我在步骤 2 中遇到以下错误:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 330, in <module>
    addaptrepo = AddAptRepository()
  File "/usr/bin/add-apt-repository", line 35, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/groovy

任何解决方案

mssql 20.10
  • 1 个回答
  • 1178 Views
Martin Hope
paolo bergomi
Asked: 2020-10-12 13:08:19 +0800 CST

Oracle 17 驱动程序丢失,无法访问 Ubuntu 16.04 中的 MS SQL 服务器

  • -1

我有一个 16.04 版本的 Ubuntu。我最近在系统中安装了 MSSQL 服务器。版本是 SQL express 2019。安装过程中一切正常。我按照此链接中的说明进行操作: https ://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15

我在 opt 文件夹中有 4gb 内存和高清空间(12gb)我看到了 MSSQL 文件夹和 MSSQL-TOOLS 文件夹,其中我有工具 mssql-scmd

当我检查状态似乎没问题:

 mssql-server.service - Microsoft SQL Server Database Engine
   Loaded: loaded (/lib/systemd/system/mssql-server.service; enabled; vendor pre
   Active: active (running) since Sun 2020-10-11 20:23:32 BST; 1h 39min ago
     Docs: https://docs.microsoft.com/en-us/sql/linux
 Main PID: 998 (sqlservr)
   CGroup: /system.slice/mssql-server.service
           ├─ 998 /opt/mssql/bin/sqlservr
           └─2485 /opt/mssql/bin/sqlservr

我尝试使用此命令行按照说明进行访问

sqlcmd -S localhost -U SA -P '<YourPassword>'

(我设置了我的密码并点击返回)

不幸的是,我得到了:

Sqlcmd:错误:Microsoft ODBC Driver 17 for SQL Server:用户“SA”登录失败..

如果这是问题任何想法如何解决它?不确定我是否可以轻松找到该驱动程序?

提前感谢保罗

mssql
  • 1 个回答
  • 73 Views
Martin Hope
Fito
Asked: 2019-05-30 17:06:16 +0800 CST

如何在 Ubuntu 19.04 中安装 mssql-server?

  • 11

在执行时遵循本教程

sudo apt-get install -y mssql-server

我在输出中得到下一个错误:

The following packages have unmet dependencies:
 mssql-server : Depends: libjemalloc1 but it is not installable
                Depends: libssl1.0.0 but it is not installable

我应该怎么办?

mssql 19.04
  • 1 个回答
  • 5813 Views
Martin Hope
Hossein Bajan
Asked: 2019-03-28 22:10:45 +0800 CST

无法在 Ubuntu 18.04 上安装 msodbcsql17

  • 19

我根据Microsoft 文档安装了 sqlserver 。以下命令正确执行。

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"

sudo apt-get update
sudo apt-get install -y mssql-server

sudo /opt/mssql/bin/mssql-conf setup

systemctl status mssql-server

sql server 状态

但是当我尝试安装 SQL Server 命令行工具时,出现以下错误。

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.

我的操作系统是 Linux Ubuntu 18.04.1 LTS

sql mssql
  • 5 个回答
  • 36897 Views
Martin Hope
WitchCraft
Asked: 2019-03-16 00:33:02 +0800 CST

如何删除停止作业?

  • 5

我已经在我的 ubuntu 机器上安装了 Microsoft SQL-Server。现在它工作正常,但每次我关闭机器时,关机都会停止

A stop job is running for microsoft sql server database engine ( x/30min )

现在,如果您等待 30 分钟,它就会关闭,所以从技术上讲,这不是错误。但是,当我必须关闭笔记本电脑时,我没有时间等待 30 分钟……而且,我有时必须重新启动机器,并且不想等待 30 分钟才能重新启动它……

有什么方法可以阻止或禁用此停止作业?停止作业在哪里配置?

shutdown services systemd 16.04 mssql
  • 1 个回答
  • 4088 Views
Martin Hope
Paolo Di Pietro
Asked: 2019-03-06 10:27:28 +0800 CST

无法连接 Microsoft SQL-Server 和 Visual Studio 代码

  • 2

我刚刚在我的 Ubuntu 18.10 机器上安装了适用于 linux 的 MSSQL 2017 和适用于 linux 的 Visual Studio 代码。两个安装都成功了,但我无法从 Visual Studio 连接到数据库。

我有以下正在运行的驱动程序:

$ odbcinst -j

    unixODBC 2.3.7
    DRIVERS............: /etc/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/odbc.ini
    FILE DATA SOURCES..: /etc/ODBCDataSources
    USER DATA SOURCES..: /home/neo4j/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8

但是,当我尝试安装

$ sudo apt-get install mssql-tools unixodbc-dev

我收到以下错误:

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
 unixodbc-dev : Depends: unixodbc (= 2.3.7)
E: Unable to correct problems, you have held broken packages.

经过大量谷歌搜索,我发现了很多建议,但它们没有运行,比如尝试删除 msodbcsql 和 unixodbc

$ sudo apt-get remove msodbcsql

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'msodbcsql' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

在这一点上,我被锁定,无法继续。

有没有人正在运行的解决方案?

dependencies odbc visual-studio-code 18.10 mssql
  • 3 个回答
  • 10888 Views
Martin Hope
Joshua K
Asked: 2018-11-13 19:47:28 +0800 CST

mssql-server:依赖于 libjemalloc1,它是一个虚拟包,不由任何可用包提供

  • 8

我正在尝试在 Ubuntu 18.10 上安装 SQL Server 2017 并遇到 libjemalloc1 不可用的错误。我看到另一个答案说 libjemalloc1 应该在 18.04 的宇宙中,但它看起来不像 ubuntu 宇宙中的 18.10 可用。有解决方案吗?有没有人做过任何事情来让它工作?

18.10 mssql
  • 2 个回答
  • 8276 Views
Martin Hope
vidur punj
Asked: 2018-10-30 22:01:44 +0800 CST

如何在 UI 中查看 MS-SQL 服务器?

  • 0

如何在 ubuntu 的 ui 上查看数据库 MSSQL 服务器数据库是他们可用的任何软件。我正在使用 ubuntu 16.04

16.04 14.04 mssql
  • 3 个回答
  • 627 Views
Martin Hope
Anas Shamsi
Asked: 2018-07-19 22:51:36 +0800 CST

我可以在 Ubuntu 16.04 上安装 SQL Server Management Studio 吗?

  • 16

我可以在 Ubuntu 16.04 上安装 SQL Server Management Studio 吗?

server mssql
  • 4 个回答
  • 63773 Views
Martin Hope
Raakh
Asked: 2018-07-14 01:01:06 +0800 CST

Sqlcmd:错误:Microsoft ODBC Driver 17 for SQL Server

  • 7

我无法运行sqlcmd命令
我的操作系统(18.04)是

$ uname -a Linux Linux 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ sqlcmd -S localhost -U SA -P 'password'
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2749.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
drivers database odbc sql mssql
  • 1 个回答
  • 23767 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve