svkatielee Posted June 7, 2016 Share Posted June 7, 2016 I am trying to build an image for both the Orange Pi PC and One I am on a slow cellular network and pay by the gigabyte for access. Is there a way to cache the packages for: Installing base system [ Stage 1/2 ] , and all the rest? Each time I try a compile.sh it take hours to re-download the whole set of packages, because the there is almost always at least a few packages that could not be fetched due to network errors, then they are unpacked and a corrupt tar image is saved and the packages are removed. If I save the create_rootfs_cache file with the missing packages, it does not try to reload them, it just errors out cause they are missing. I am building in a Ubuntu 14.04 VM on a Ubuntu 15.04 host. I have trird various things in compile.sh, currently it is: BOARD=orangepione PROGRESS_DISPLAY=plain PROGRESS_LOG_TO_FILE=yes RELEASE=jessie BRANCH=default NO_APT_CACHER=yes And this last attempt my userpatches/lib.config contains only:DEBIAN_MIRROR="ftp.tw.debian.org/debian/"because I am in the Philippines. Larry Edit: And this pass failed to after 2 hours; I: Retrieving zlib1g 1:1.2.8.dfsg-2+b1 I: Validating zlib1g 1:1.2.8.dfsg-2+b1 E: Couldn't download packages: libpipeline1 cp: cannot create regular file ‘/home/larryl/armbian/output/cache/sdcard/usr/bin/’: No such file or directory [ o.k. ] Installing base system [ Stage 2/2 ] chroot: failed to run command ‘/bin/bash’: No such file or directory [ error ] ERROR in function create_rootfs_cache [ debootstrap-ng.sh:163 ] [ error ] Debootstrap base system second stage failed [ o.k. ] Process terminated Link to comment Share on other sites More sharing options...
Recommended Posts