【问题标题】:Completely remove mssql linux彻底删除 mssql linux
【发布时间】:2017-12-24 07:09:15
【问题描述】:

请有人帮忙: 我的 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)

我不想失去我的服务器

【问题讨论】:

  • 您是否尝试过重新安装有问题的软件包,然后再尝试删除它?
  • 我试过了,但它需要 3.5 GB 内存,而我的内存是 1 GB。所以它失败了

标签: sql-server linux ubuntu server apt-get


【解决方案1】:

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

【讨论】:

  • 我删除了 mssql-server.listsudo apt-get update 但仍然没有安装包。我收到以下错误root@production:~# apt-get install httpie Reading package lists... Done Building dependency tree Reading state information... Done E: The package mssql-server needs to be reinstalled, but I can't find an archive for it. root@production:~#
猜你喜欢
  • 2021-10-01
  • 2013-10-05
  • 2016-05-31
  • 1970-01-01
  • 2015-08-29
  • 1970-01-01
  • 1970-01-01
  • 2018-10-23
  • 2019-06-15
相关资源
最近更新 更多