Ubuntu 14.04 build ONL failed

488 views
Skip to first unread message

Larry Ming

unread,
Jun 6, 2017, 2:20:06 AM6/6/17
to opennetworklinux
I try to build ONL in Ubuntu 14.04 in virtualbox.

Here are steps:
1 docker/tools/onlbuilder -8
2 apt-cacher-ng
3 source setup.env
4 make amd64

I failed in step 4 with apt error "ERROR:onlrfs:Multistrap APT failure."

Some error logs:
Ign copy: ./ InRelease
Ign copy: ./ InRelease                  
Ign copy: ./ Release.gpg                
Ign copy: ./ Release.gpg                
Ign copy: ./ Release                    
Ign copy: ./ Release                    
Get:1 copy: ./ Packages [6319 B]        
Ign copy: ./ Translation-en              
Get:2 copy: ./ Packages [89.8 kB]        
Ign copy: ./ Translation-en              
Ign http://127.0.0.1:3142 jessie InRelease                                     
Ign http://127.0.0.1:3142 jessie Release.gpg                                   
Ign http://127.0.0.1:3142 jessie Release                  
Err http://127.0.0.1:3142 jessie/main amd64 Packages      
  500  Connection failure: Network is unreachable
Ign http://127.0.0.1:3142 jessie/main Translation-en      
Err http://apt.opennetlinux.org unstable InRelease        
  
Err http://apt.opennetlinux.org unstable Release.gpg      
  Unable to connect to apt.opennetlinux.org:http:
Fetched 96.1 kB in 2min 0s (799 B/s)
Reading package lists... Done

W: Failed to fetch http://127.0.0.1:3142/mirrors.kernel.org/debian/dists/jessie/main/binary-amd64/Packages  500  Connection failure: Network is unreachable

W: Failed to fetch http://apt.opennetlinux.org/debian/dists/unstable/Release.gpg  Unable to connect to apt.opennetlinux.org:http:

W: Some index files failed to download. They have been ignored, or old ones used instead.

Please find full logs in the attached file. 

What is the problem?

Thanks!
Larry Ming
ONL_apt_error.txt

hanuma .k

unread,
Jun 6, 2017, 7:37:48 AM6/6/17
to opennetworklinux
Hi Larry Ming,

Even I have faced similar Issue on Ubuntu, but on Debian it was through. 
What I did is:
 
downloaded Debian jessie-8.8.0 iso file and installed on virtual box.
 apt-get install binfmt-support
 apt-get update

apt-get purge "lxc-docker*"

apt-get purge "docker.io*"

apt-get update

apt-get install apt-transport-https ca-certificates

  

apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

 

echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list

 

apt-get update

apt-cache policy docker-engine

apt-get install docker-engine -y

service docker start

git clone https://github.com/opencomputeproject/OpenNetworkLinux


from here follow steps 1 to 4 that you  mentioned



what I observed is when i'm compiling ONL on ubuntu, its source list being updated with Debian specifics from ubuntu point of view it got corrupted source list. 
looks we can compile ONL only on debian. Its my understanding hence I moved to debian and able to compile successfully.

Rob Sherwood

unread,
Jun 6, 2017, 12:40:04 PM6/6/17
to Larry Ming, opennetworklinux
Larry:

It looks like you're having network connectivity problems inside your docker instance.

After the `docker/tools/onlbuilder -8` command, verify that you can `ping -n 8.8.8.8`.  If you can't, you might need to enable ip_forwarding on your host machine: https://linuxconfig.org/how-to-turn-on-off-ip-forwarding-in-linux

If that works, then verify you can resolve DNS:`host google.com`.  If that doesn't work, then you might need to specify a DNS server manually in your build.

From the errors, my guess is you will find one of those to be your problem.  Once you figure it out, let us know what version of docker you're running so we can add some extra info the to BUILD.md under troubleshooting.

- Rob
.

--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages