Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
build debian image error
#1
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
Reply
#2
I needed to add a nameserver entry in resolv.conf inside the debian /etc, not your main computer's etc.

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

https://askubuntu.com/questions/91543/ap...ving-error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)