02-13-2019, 08:41 PM
I got the following error when I build the debian image. Can any one help me?
Code:
./build/mk-debian.sh
Skip extract basic rootfs
Copy modules
Copy overlay
Change root
root@ubuntu:/#
root@ubuntu:/# export DEBIAN_FRONTEND=noninteractive
root@ubuntu:/#
root@ubuntu:/# error()
> {
> echo ""
> echo "Error occur"
> echo ""
> exit -1
> }
root@ubuntu:/# trap error ERR
root@ubuntu:/#
root@ubuntu:/# if [ ! -f /etc/systemd/system/multi-user.target.wants/depmod.service ] ; then
> systemctl enable depmod.service
> fi
root@ubuntu:/#
root@ubuntu:/# apt-get update
Err:1 http://security.debian.org/debian-security stretch/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:2 http://ftp.debian.org/debian stretch InRelease
Temporary failure resolving 'ftp.debian.org'
Err:3 http://ftp.debian.org/debian stretch-updates InRelease
Temporary failure resolving 'ftp.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/stretch-updates/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:/#
root@ubuntu:/# if ! dpkg -s locales > /dev/null 2>&1 ; then
> apt-get install -y locales
> sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
> echo 'LANG=en_US.UTF-8' >> /etc/default/locale
> dpkg-reconfigure -f noninteractive locales
> update-locale LANG=en_US.UTF-8
> fi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libc-l10n
The following NEW packages will be installed:
libc-l10n locales
0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 4107 kB of archives.
After this operation, 13.8 MB of additional disk space will be used.
Err:1 http://ftp.debian.org/debian stretch/main armel libc-l10n all 2.24-11+deb9u3
Temporary failure resolving 'ftp.debian.org'
Err:2 http://ftp.debian.org/debian stretch/main armel locales all 2.24-11+deb9u3
Temporary failure resolving 'ftp.debian.org'
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc-l10n_2.24-11+deb9u3_all.deb Temporary failure resolving 'ftp.debian.org'
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/locales_2.24-11+deb9u3_all.deb Temporary failure resolving 'ftp.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error occur