dpkg: error processing package xxx解决方法

1 错误内容:

root@xxx:/home/my_project/application-necessities# sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
libnghttp2-dev is already the newest version (1.30.0-1ubuntu1).
nghttp2 is already the newest version (1.30.0-1ubuntu1).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nghttp2-proxy (1.30.0-1ubuntu1) ...
Job for nghttpx.service failed because the control process exited with error code.
See "systemctl status nghttpx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nghttpx, action "start" failed.
● nghttpx.service - HTTP/2 proxy
   Loaded: loaded (/lib/systemd/system/nghttpx.service; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2021-08-30 23:23:55 CST; 30ms ago
     Docs: man:nghttpx
  Process: 124287 ExecStart=/usr/sbin/nghttpx --conf=/etc/nghttpx/nghttpx.conf (code=exited, status=255)
 Main PID: 124287 (code=exited, status=255)
dpkg: error processing package nghttp2-proxy (--configure):
 installed nghttp2-proxy package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nghttp2:
 nghttp2 depends on nghttp2-proxy (>= 1.30.0-1ubuntu1); however:
  Package nghttp2-proxy is not configured yet.

dpkg: error processing package nghttp2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 nghttp2-proxy
 nghttp2
E: Sub-process /usr/bin/dpkg returned an error code (1)

2 暴力解决问题:

sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
sudo mkdir /var/lib/dpkg/info/
sudo apt-get update

3 再次安装即可

apt-get install xxxx

4 参考

https://blog.csdn.net/dou3516/article/details/105120221

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值