Closed wonsikleee closed 2 years ago
I skipped the same thing and got the same error:
+ cd /home/ubuntu/sn1000/smartnic_soc_sdk/build/lx2162a/rootfs/debootstrap-focal-arm64-lx2162au26z/tmpchroot
+ sudo chroot . /tmp/dostuff.sh
C: updating repository metadata
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
Err:1 http://ports.ubuntu.com focal InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com focal-security InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:3 http://ports.ubuntu.com focal-updates InRelease
Temporary failure resolving 'ports.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: Failed to fetch http://ports.ubuntu.com/dists/focal/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/dists/focal-security/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/dists/focal-updates/InRelease Temporary failure resolving 'ports.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
C: upgrading packages
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package build-essential
E: Unable to locate package bison
E: Unable to locate package flex
E: Unable to locate package bc
E: Unable to locate package libssl-dev
E: Unable to locate package libelf-dev
I tried to fix the DNS issue by adding 8.8.4.4 into etc/resolv.conf
but failed.
I'm trying to bypass the DNS resolution by hardcoding the resolved result into the script
diff --git a/package/rootfs/chroot_dostuff.sh b/package/rootfs/chroot_dostuff.sh
index 8240770..4d02875 100755
--- a/package/rootfs/chroot_dostuff.sh
+++ b/package/rootfs/chroot_dostuff.sh
@@ -31,6 +31,7 @@ done
trap unmount_special EXIT
cd ${ROOTFS_TMP}
+echo "185.125.190.39 ports.ubuntu.com ports.ubuntu.com" | sudo tee -a etc/hosts
sudo chroot . /tmp/dostuff.sh
sudo cp config.deps ../${ROOTFS_CUSTOM_NAME}.deps
It works
And I reached another error:
dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 10)
Fixed by running this before running make
$ sudo apt install debhelper
And also
/bin/sh: zip: command not found
zip
is required to run make boot
For my case, I tried overwriting the nameserver and it worked.
diff --git a/package/rootfs/rootfs.mk b/package/rootfs/rootfs.mk
index 4e323e4..c03135a 100644
--- a/package/rootfs/rootfs.mk
+++ b/package/rootfs/rootfs.mk
@@ -336,6 +336,7 @@ endif
@echo "echo C: updating repository metadata" >> $(rootfs_TMP)/tmp/dostuff.sh
@echo "locale-gen en_US.UTF-8" >> $(rootfs_TMP)/tmp/dostuff.sh
@echo "update-locale LANG=en_US.UTF-8" >> $(rootfs_TMP)/tmp/dostuff.sh
+ @echo "echo nameserver 8.8.8.8 > /etc/resolv.conf" >> $(rootfs_TMP)/tmp/dostuff.sh
@echo "apt -o APT::Sandbox::User=root update" >> $(rootfs_TMP)/tmp/dostuff.sh
@echo "echo C: upgrading packages" >> $(rootfs_TMP)/tmp/dostuff.sh
@echo "DEBIAN_FRONTEND=noninteractive apt -y upgrade" >> $(rootfs_TMP)/tmp/dostuff.sh
Hi,
I'm trying to compile my customized kernel image on SoC Arm in SN1000. However, make fails to connect to ports.ubuntu.com and unable to install kernel-source.deps. (Nothing is modified.) I skipped "cp *.deb imports/debian/" and writing imports/debian/install.list. Did I miss something?