小编use*_*331的帖子

消息“E:dpkg 被中断,您必须手动运行‘sudo dpkg --configure -a’来纠正问题。”

每当我尝试获取更新时,我都会在最后一行收到错误消息:

Ign http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/universe Translation-en_IN
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Run Code Online (Sandbox Code Playgroud)

然后根据我运行时提示的错误:

$ sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0009' near line 0:
 newline in field name `#padding'
Run Code Online (Sandbox Code Playgroud)

现在怎么办?我能摆脱错误吗?

我试过这个链接

dpkg 14.04

37
推荐指数
2
解决办法
16万
查看次数

如何删除nginx并重新激活apache?

我已经安装Apache2, mysql, php5 and phpmyadmin在我的 Ubuntu 14.04 上,但后来我错误地安装了 nginx。

现在我的本地主机页面向我显示Welcome to nginx server。而且localhost/phpmyadmin链接失效了。

我怎样才能恢复我的 LAMP 服务器?

我使用命令删除了 ngnix

sudo apt-get remove nginx
sudo apt-get purge nginx
Run Code Online (Sandbox Code Playgroud)

安装阿帕奇

sudo apache2ctl restart
Run Code Online (Sandbox Code Playgroud)

但最后在重新启动 apache2 时我收到此错误

sudo apache2ctl restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind …
Run Code Online (Sandbox Code Playgroud)

server nginx software-uninstall

12
推荐指数
2
解决办法
9万
查看次数

标签 统计

14.04 ×1

dpkg ×1

nginx ×1

server ×1

software-uninstall ×1