Thank you for your donation!


‘404 Not Found’error occurred during the bulid process
#1
The following error occurred during the bulid process:

'Failed to fetch http://mirrors.shu.edu.cn/raspbian/raspb...u2_all.deb 404 Not Found', retry multiple invalid Please check this link.
Reply
#2
(04-17-2018, 03:27 AM)impjy Wrote: The following error occurred during the bulid process:

'Failed to fetch http://mirrors.shu.edu.cn/raspbian/raspb...u2_all.deb 404 Not Found', retry multiple invalid Please check this link.

@impjy

The error message means what it says. The named package doesn't exist in the mirrored raspbian repository which is hosted at Shanghai University, China. We can't fix that. 

The moOde build script doesn't specify the locations of the repositories, rather they are named in the standard debian locations: /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list in the underlying raspbian OS. In the generic raspbian-stretch-lite image we use, these files name the main raspbian mirrors http://raspbian.raspberrypi.org/raspbian/ and http://archive.raspberrypi.org/debian/

I assume it is some variant of the debian redirection mechanism (see https://wiki.debian.org/DebianGeoMirror), running behind the scenes, which is redirecting you to the local mirror repositories http://mirrors.shu.edu.cn/raspbian/....

If you know how to use the Linux command line interface you can try editing the files /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list to hard-code specific mirror repositories. Here is a list of the current raspbian repositories https://www.raspbian.org/RaspbianMirrors

Regards,
Kent
Reply
#3
(04-17-2018, 01:15 PM)TheOldPresbyope Wrote:
(04-17-2018, 03:27 AM)impjy Wrote: The following error occurred during the bulid process:

'Failed to fetch http://mirrors.shu.edu.cn/raspbian/raspb...u2_all.deb 404 Not Found', retry multiple invalid Please check this link.

@impjy

The error message means what it says. The named package doesn't exist in the mirrored raspbian repository which is hosted at Shanghai University, China. We can't fix that. 

The moOde build script doesn't specify the locations of the repositories, rather they are named in the standard debian locations: /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list in the underlying raspbian OS. In the generic raspbian-stretch-lite image we use, these files name the main raspbian mirrors http://raspbian.raspberrypi.org/raspbian/ and http://archive.raspberrypi.org/debian/

I assume it is some variant of the debian redirection mechanism (see https://wiki.debian.org/DebianGeoMirror), running behind the scenes, which is redirecting you to the local mirror repositories http://mirrors.shu.edu.cn/raspbian/....

If you know how to use the Linux command line interface you can try editing the files /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list to hard-code specific mirror repositories. Here is a list of the current raspbian repositories https://www.raspbian.org/RaspbianMirrors

Regards,
Kent

Thank you, I have modified the two software source list files /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list. Now that bulid is working, it is faster than before. A lot, thanks again.
Reply


Forum Jump: