![E: 子进程 /usr/bin/dpkg 返回错误代码 (1),ubuntu 16.04](https://linux22.com/image/1173243/E%3A%20%E5%AD%90%E8%BF%9B%E7%A8%8B%20%2Fusr%2Fbin%2Fdpkg%20%E8%BF%94%E5%9B%9E%E9%94%99%E8%AF%AF%E4%BB%A3%E7%A0%81%20(1)%EF%BC%8Cubuntu%2016.04.png)
如何修复此问题。
我将向您展示我尝试使用它们的每个命令和输出。
sudo apt-get update
Hit:1 http://packages.ros.org/ros/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:3 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 325 kB in 2s (141 kB/s)
Reading package lists... Done
和
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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
Setting up kscertrelay-nx-installer (1.0.0.4) ...
No passwd entry for user 'This'
dpkg: error processing package kscertrelay-nx-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
kscertrelay-nx-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
和
sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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
Setting up kscertrelay-nx-installer (1.0.0.4) ...
No passwd entry for user 'This'
dpkg: error processing package kscertrelay-nx-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
kscertrelay-nx-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
和
sudo dpkg ––configure –a
dpkg: error: need an action option
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
和
sudo apt-get install –f
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package –f
和
sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up kscertrelay-nx-installer (1.0.0.4) ...
No passwd entry for user 'This'
dpkg: error processing package kscertrelay-nx-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
kscertrelay-nx-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
这是一个难题。
请帮我。
预先感谢
答案1
kscertrelay-nx-installer
通过删除导致问题的软件包可以解决这个问题
sudo apt-get --purge remove kscertrelay-nx-installer