gpt4 book ai didi

sql-server - 彻底删除 mssql linux

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:38:54 25 4
gpt4 key购买 nike

请有人帮忙: 我的 Ubuntu 14 服务器有 1 GB 内存,正在尝试安装但没有完成。这是一个错误,但现在我无法完全删除它。我尝试安装的任何外部包都失败了,例如(apt-get install python-requests) 我收到这个错误

(

/var/cache/apt/archives/mssql-server_14.0.800.90-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

)

已尝试卸载但不起作用

root@root: sudo apt-get remove mssql-server

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libc++1 libjemalloc1 libsss-nss-idmap0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mssql-server
0 upgraded, 0 newly installed, 1 to remove and 172 not upgraded.
184 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package mssql-server (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
mssql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不想失去我的服务器

最佳答案

如果其他外部包安装失败,请尝试删除您下载的用于注册 Microsoft 存储库的 /etc/apt/sources.list.d/mssql-server.list 文件。运行 sudo apt-get update。然后尝试再次安装其他外部包,看看是否有问题。这不会删除失败的 mssql-server 程序包,但它可能会让您恢复并与其他程序包一起运行。

关于sql-server - 彻底删除 mssql linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45183323/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com