AnsweredAssumed Answered

flex-builder build failure

Question asked by penman on Jul 31, 2019
Latest reply on Aug 1, 2019 by Pavel Chubakov

I am building flexbuilder_lsdk on Ubuntu 18.04 with:

flex-builder -i clean

flex-builder -i clean-rfs

flex-builder -i repo-update

flex-builder -m ls1046ardb -a arm64

and the build fails with the message:

 

installing for second-stage ...
I: Keyring file not available at /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian
I: Installing core packages...
W: Failure trying to run:  dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb
W: See //debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb is at fault)

 

Here is the output of the debootstrap.log

 

$ cat build/rfs/rootfs_lsdk1906_LS_arm64_main/debootstrap/debootstrap.log
gpgv: Signature made Thu Apr 26 18:38:40 2018 CDT
gpgv:                using RSA key 3B4FE6ACC0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>"
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
 missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
 missing architecture
Selecting previously unselected package base-passwd.
(Reading database ... 0 files and directories currently installed.)
Preparing to unpack .../base-passwd_3.5.44_arm64.deb ...
/var/lib/dpkg/tmp.ci/preinst: 6: /var/lib/dpkg/tmp.ci/preinst: cannot create /etc/passwd: Permission denied
dpkg: error processing archive /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb (--install):
 new base-passwd package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/base-passwd_3.5.44_arm64.deb

 

 

How can this error be resolved?

Outcomes