Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Freshly created build environment fails to 'apt update'

Freshly created build environment fails to 'apt update'

lg-lima
Established Member

Hi colleagues,

I get the following messages when trying to build a snap for arm64. Any help is aprecciated.

boschrexroth@app-builder-amd64:~$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  444   [IP: 10.0.2.2 3128]
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  444   [IP: 10.0.2.2 3128]
Hit:5 http://ports.ubuntu.com focal InRelease
Hit:6 http://ports.ubuntu.com focal-updates InRelease
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  444   [IP: 10.0.2.2 3128]
E: The repository 'http://archive.ubuntu.com/ubuntu focal-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  444   [IP: 10.0.2.2 3128]
E: The repository 'http://archive.ubuntu.com/ubuntu focal-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

*EXPERIMENTAL* --target-arch for core20 enabled.
Setting target machine to 'arm64'
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease              
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease      
  444   [IP: 10.0.2.2 3128]
Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  444   [IP: 10.0.2.2 3128]
Hit:4 http://ports.ubuntu.com focal InRelease 
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:6 http://ports.ubuntu.com focal-updates InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [10.1 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14.4 kB]
Reading package lists... Done             
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  444   [IP: 10.0.2.2 3128]
E: The repository 'http://archive.ubuntu.com/ubuntu focal-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  444   [IP: 10.0.2.2 3128]
E: The repository 'http://archive.ubuntu.com/ubuntu focal-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Failed to update the package cache: Some files could not be downloaded:

failed to run apt update

Check that the sources on your host are configured correctly.
The terminal process "/usr/bin/bash '-c', 'snapcraft --destructive-mode --enable-experimental-target-arch --target-arch=arm64'" terminated with exit code: 2.

 

2 REPLIES 2

nickH
Community Moderator
Community Moderator

Hi,

I just tried to, but could not reproduce your error. I'm able to update my package lists in my freshly created build environment and just build a sample python snap for arm64. 

First: Please be sure that your proxy tool (e.g. Px) is running on your host at port 3128. (Use Px as Local Proxy on a Windows Host)

But from the messages you sent, I would guess that the problems are not with your local settings but with the ubuntu mirror, from where you try to access the package lists. The Ubuntu mirror used in '/etc/apt/sources.list' may be overloaded, this can sometimes be the case. So I would just recommend you to try 'sudo apt update' again. If the ubuntu mirror is not available for a longer time, you could change the country code in the sources list to switch to another ubuntu mirror (e.g. from “de” to “ch”). See more information in german here

 

Best regards,

Nick

lg-lima
Established Member

Hi, thanks for the info.

Using my local mirror ("br") did the trick.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist