Jump to content

Build fails on "could not resolve 'ports.ubuntu.com'" on machine that has built successfully in the past


Recommended Posts

Posted

Hello,

I have been building images for the NanoPC-T4 with armbian successfully in the past.

However I now get the error "could not resolve 'ports.ubuntu.com'" when the build tries to install ping_5.1-1_arm64.deb

(full log below).

 

Do you have any idea what this comes from and how I could solve/debug this ? Thank you

 

Additional info :

I added 8.8.8.8 as an alternative DNS server on my machine, I can ping ports.ubuntu.com successfully.

 

I have cloned the armbian build and head points to this commit https://github.com/armbian/build/commit/5b8d86ae5f6f34cf6cc13edf6b1def2773f66f0a

 

Best regards,

Rick

 

  Reveal hidden contents

 

<
Posted

Cannot reproduce. Just built with your parameters successfully.
 

BOARD=nanopct4 BRANCH=edge RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=yes KERNEL_ONLY=no KERNEL_CONFIGURE=yes DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED="3dsupport browsers desktop_tools editors internet programming remote_desktop" COMPRESS_OUTPUTIMAGE=sha,img

 

Posted

Thanks for trying this out, it is probably a network issue, if you have any pointers on how to debug this it would be great.

 

I have issues with apt from within the build but not from outside the build. I wonder if the chroot may cause this.

Running on Ubuntu 22.04.2 LTS

 

It happens every-time, even when I delete / reclone.

Posted (edited)

I have run the build on another machine, the build gives the same error.

 

Edit : From the machine I can download the file in the error message without any issues when I use e.g., wget

 

   E: Failed to fetch http://ports.ubuntu.com/pool/universe/f/fping/fping_5.1-1_arm64.deb  Could not resolve 'ports.ubuntu.com'
   E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

 

wget http://ports.ubuntu.com/pool/universe/f/fping/fping_5.1-1_arm64.deb

 Downloads the file no problem...

Edited by rwk
Posted

I had the same problem, running on an Ubuntu host with Docker, and adding

 

  Quote

cp /etc/resolv.conf ${SDCARD}/etc/resolv.conf

Expand  

indeed solved the problem. I'll be happy to provide more information if needed.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines