首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >子进程/usr/bin/dpkg返回一个错误代码(1)

子进程/usr/bin/dpkg返回一个错误代码(1)
EN

Server Fault用户
提问于 2012-06-13 10:12:20
回答 1查看 975关注 0票数 0

嘿,朋友们,当我试图清除海岸墙时,我得到了以下错误

代码语言:javascript
复制
root@aptosid:/etc# apt-get purge shorewall 
Reading package lists... Done 
Building dependency tree        
Reading state information... Done 
The following packages will be REMOVED: 
  shorewall* 
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded. 
1 not fully installed or removed. 
After this operation, 1,843 kB disk space will be freed. 
Do you want to continue [Y/n]? 
(Reading database ... 212702 files and directories currently installed.) 
Removing shorewall ... 
: not found/shorewall: 25: /etc/default/shorewall: :q 
Stopping "Shorewall firewall": not done (check /var/log/shorewall-init.log). 
invoke-rc.d: initscript shorewall, action "stop" failed. 
dpkg: error processing shorewall (--purge): 
 subprocess installed pre-removal script returned error exit status 1 
configured to not write apport reports 
                                      Errors were encountered while processing: 
 shorewall 
E: Sub-process /usr/bin/dpkg returned an error code (1) 
root@aptosid:/etc# 

请帮帮我.?

EN

回答 1

Server Fault用户

发布于 2012-06-13 12:14:39

看起来安装工作搞砸了,一些配置文件丢失了。如果你这样做了,你也许能让它继续下去

代码语言:javascript
复制
touch /etc/default/shorewall

但更有可能的情况是,您需要重新安装软件包,以获得丢失的配置,然后清除它。要重新安装它,您需要执行以下操作

代码语言:javascript
复制
apt-get install --reinstall shorewall
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/398225

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档