E: 子进程 /usr/bin/dpkg 返回错误代码 (1),ubuntu 16.04

E: 子进程 /usr/bin/dpkg 返回错误代码 (1),ubuntu 16.04

如何修复此问题。

我将向您展示我尝试使用它们的每个命令和输出。

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

相关内容