dpkg:处理软件包 xxx (--configure)时出错

时间:2023-03-10 07:10:18
dpkg:处理软件包 xxx (--configure)时出错

9月 17 16:11:35 xiakaibi-PC systemd[1]: Starting LSB: Start Jenkins at boot time...
9月 17 16:11:35 xiakaibi-PC jenkins[2949]: ERROR: No Java executable found in current PATH: /bin:/usr/bin:/sbin…sr/sbin
9月 17 16:11:35 xiakaibi-PC jenkins[2949]: If you actually have java installed on the system make sure the exec…le path
9月 17 16:11:35 xiakaibi-PC systemd[1]: jenkins.service: Control process exited, code=exited status=1
9月 17 16:11:35 xiakaibi-PC systemd[1]: Failed to start LSB: Start Jenkins at boot time.
9月 17 16:11:35 xiakaibi-PC systemd[1]: jenkins.service: Unit entered failed state.
9月 17 16:11:35 xiakaibi-PC systemd[1]: jenkins.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 处理软件包 jenkins (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
在处理时有错误发生:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决办法如下:

1.将info文件夹更名

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
2再新建一个新的info文件夹

sudo mkdir /var/lib/dpkg/info
3.更新
sudo apt-get update
<pre name="code" class="plain">sudo apt-get -f install
4.执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下

sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
5.把自己新建的info文件夹删掉

sudo rm -rf /var/lib/dpkg/info
6.把以前的info文件夹重新改回名字

sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info
问题解决
————————————————
版权声明:本文为****博主「zhengbin1993」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.****.net/u010426270/article/details/52028620

相关文章