【发布时间】: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