dpkg error when I use LSDK 20.04 to build code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

dpkg error when I use LSDK 20.04 to build code

跳至解决方案
5,880 次查看
tzongruey
Contributor I

Hi,

I use LSDK 20.04 update290520 to build code.
When I set the FETCH_PREBUILT_LSDK_RFS to n, it will occur the error as below.

The user `syslog' is already a member of `adm'.
dpkg: error processing package rsyslog (--configure):
installed rsyslog package post-installation script subprocess returned error exit status 1

...
...

Errors were encountered while processing:
rsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)

The attached log is my build log.
please help me to clarify it.

Thanks

0 项奖励
回复
1 解答
5,872 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The following change can resolve the problem when upgrading the newer ubuntu-18.04:

 

+++ b/tools/flex-mkdistrorfs

@@ -203,11 +203,12 @@ do_distrorfs_second_stage() {

            apt -y install language-pack-en-base

        fi

     fi

-    apt -y upgrade

 

     test -f /proc/uptime || mount -t proc proc /proc

     test -f /dev/pts/ptmx || mount -t devpts devpts /dev/pts

+    apt -y upgrade

 

Then rebuild it as below:

$ flex-builder -i clean-rfs

$ flex-builder -i mkrfs

在原帖中查看解决方案

0 项奖励
回复
1 回复
5,873 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The following change can resolve the problem when upgrading the newer ubuntu-18.04:

 

+++ b/tools/flex-mkdistrorfs

@@ -203,11 +203,12 @@ do_distrorfs_second_stage() {

            apt -y install language-pack-en-base

        fi

     fi

-    apt -y upgrade

 

     test -f /proc/uptime || mount -t proc proc /proc

     test -f /dev/pts/ptmx || mount -t devpts devpts /dev/pts

+    apt -y upgrade

 

Then rebuild it as below:

$ flex-builder -i clean-rfs

$ flex-builder -i mkrfs

0 项奖励
回复