bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

mirrors.opencas.cn mirror can not be reached

Mon May 07, 2018 2:05 am

Hi,

I am newer on rasp and I live in Beijing.

I want to program on ubuntu pc host for my raspberry pi 3+. According to the web: https://wiki.qt.io/RaspberryPi2EGLFS, I step by step for setting the cross compile env. Using the latest Lite image on raspberry, in step 5 [on RPi] Install a bunch of development files. When I run the command on raspberry: "sudo apt-get build-dep qt4-x11", I got the error messages as following. The main reason is that the mirrors.opencas.cn is not reached. And I checked this host, it is not connected, but I do not know how to change the address in the system. Please give me advise.

Thanks in advance!

Robert

Code: Select all

......
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxcomposite/libxcomposite-dev_0.4.4-2_armhf.deb  Cannot initiate t
he connection to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]        
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/l/lcms2/liblcms2-dev_2.8-4_armhf.deb  Cannot initiate the connection to m
irrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                          
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libt/libtool/libltdl7_2.4.6-2_armhf.deb  Cannot initiate the connection t
o mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                       
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libt/libtool/libltdl-dev_2.4.6-2_armhf.deb  Cannot initiate the connectio
n to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                    
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/u/unixodbc/libodbc1_2.3.4-1_armhf.deb  Cannot initiate the connection to 
mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                         
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/r/readline/libreadline-dev_7.0-3_armhf.deb  Cannot initiate the connectio
n to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                    
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/s/sqlite/libsqlite0_2.8.17-14_armhf.deb  Cannot initiate the connection t
o mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                       
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/s/sqlite/libsqlite0-dev_2.8.17-14_armhf.deb  Cannot initiate the connecti
on to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                   
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxt/libxt-dev_1.1.5-1_armhf.deb  Cannot initiate the connection to
 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                        
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxmu/libxmu6_1.1.2-2_armhf.deb  Cannot initiate the connection to 
mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                         
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxmu/libxmu-headers_1.1.2-2_all.deb  Cannot initiate the connectio
n to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                    
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxmu/libxmu-dev_1.1.2-2_armhf.deb  Cannot initiate the connection 
to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                      
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxslt/libxslt1.1_1.1.29-2.1_armhf.deb  Cannot initiate the connect
ion to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                  
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxslt/libxslt1-dev_1.1.29-2.1_armhf.deb  Cannot initiate the conne
ction to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxtst/libxtst6_1.2.3-1_armhf.deb  Cannot initiate the connection t
o mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                       
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/x/x11proto-record/x11proto-record-dev_1.14.2-1_all.deb  Cannot initiate t
he connection to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]        
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxtst/libxtst-dev_1.2.3-1_armhf.deb  Cannot initiate the connectio
n to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                    
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libx/libxv/libxv1_1.0.11-1_armhf.deb  Cannot initiate the connection to m
irrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                          
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/x/x11proto-video/x11proto-video-dev_2.3.3-1_all.deb  Cannot initiate the 
connection to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]           
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/u/unixodbc/odbcinst1debian2_2.3.4-1_armhf.deb  Cannot initiate the connec
tion to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                 
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/u/unixodbc/odbcinst_2.3.4-1_armhf.deb  Cannot initiate the connection to 
mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                         
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/p/pkg-kde-tools/pkg-kde-tools_0.15.24_all.deb  Cannot initiate the connec
tion to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                 
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/u/unixodbc/unixodbc-dev_2.3.4-1_armhf.deb  Cannot initiate the connection
 to mirrors.opencas.cn:80 (2001:cc0:2020:4075::211). - connect (101: Network is unreachable) [IP: 2001:cc0:2020:4075::211 80]                     
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?                                                             
E: Failed to process build dependencies                                                                                                           
[email protected]:~ $

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Thu May 10, 2018 6:52 am

any response?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5545
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: mirrors.opencas.cn mirror can not be reached

Thu May 10, 2018 10:21 am

That host is accessible from the UK, and I can see at least the first of those files is there.

At a guess something in your network isn't capable of routing IPv6, but it has looked up the address as an IPv6 address (IP: 2001:cc0:2020:4075::211).
You could try temporarily disabling IPv6 ("sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6'" according to http://ask.xmodulo.com/disable-ipv6-linux.html) to see if it will drop back to IPv4.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Fri May 11, 2018 6:02 am

Thanks for your response. I have checked in my raspberry pi3 , checked with ifconfig:

Code: Select all

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.1.71  netmask 255.255.255.0  broadcast 172.16.1.255
        inet6 fe80::d5f7:b956:8ced:943a  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:13:ac:98  txqueuelen 1000  (Ethernet)
        RX packets 7519  bytes 5298961 (5.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5540  bytes 511162 (499.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
and disable ipv6 with sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6'

Code: Select all

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.1.71  netmask 255.255.255.0  broadcast 172.16.1.255
        ether b8:27:eb:13:ac:98  txqueuelen 1000  (Ethernet)
        RX packets 20944  bytes 22701763 (21.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13180  bytes 1263882 (1.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
But, in my new SD with latest raspbian on raspberry pi3 (whenever disabled ipv6 or not), I has the same problem to install git (a week ago, I can install git with the same env):

Code: Select all

[email protected]:~ $ sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 4839 kB of archives.
After this operation, 26.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf git-man all 1:2.11.0-3+deb9u2 [1432 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u2 [3380 kB]
93% [Connecting to mirrors.opencas.cn (124.16.75.211)]^C 
[email protected]:~ $ 
How do I do to disable to visit mirrors.opencas.cn?

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Fri May 11, 2018 6:21 am

Here is the total list to install git:

Code: Select all

pi[email protected]:~ $ sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 4839 kB of archives.
After this operation, 26.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf git-man all 1:2.11.0-3+deb9u2 [1432 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u2 [3380 kB]
Err:1 http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf liberror-perl all 0.17024-1
  Could not connect to mirrors.opencas.cn:80 (124.16.75.211), connection timed out
Fetched 4812 kB in 2min 1s (39.8 kB/s)                
E: Failed to fetch http://mirrors.opencas.cn/raspbian/raspbian/pool/main/libe/liberror-perl/liberror-perl_0.17024-1_all.deb  Could not connect to mirrors.opencas.cn:80 (124.16.75.211), connection timed out
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[email protected]:~ $ 

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Sun May 13, 2018 8:39 am

I am still fail to install git, which need mirrors.opencas.cn, but it is not reachable.

User avatar
DougieLawson
Posts: 33604
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: mirrors.opencas.cn mirror can not be reached

Sun May 13, 2018 8:42 am

Try updating your /etc/apt/sources.list file to use mirrors.zju.edu.cn or mirrors.cqu.edu.cn or mirrors.shu.edu.cn
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Thu May 17, 2018 8:08 am

Hi,

My /etc/apt/sources.list file is original one, I do not modified it. Here is the content as following. There is not any address about mirrors.opencas.cn. I do not know how to remove it, maybe I am in China, the raspbian.raspberrypi.org/raspbian/ will forward to mirrors.opencas.cn, but it is unreachable in China.

I took many days to solve this problem, but it has existed. I plan to give up to use raspberry pi.

Code: Select all

deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

User avatar
DougieLawson
Posts: 33604
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: mirrors.opencas.cn mirror can not be reached

Thu May 17, 2018 8:31 am

Change the url from

Code: Select all

deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
to

Code: Select all

deb http://mirrors.zju.edu.cn/raspbian/ stretch main contrib non-free rpi
then run sudo apt-get update; sudo apt-get -y dist-upgrade; sudo apt-get update

Then you should be able to change it back to the original.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Tue May 22, 2018 1:07 am

Changed to http://mirrors.zju.edu.cn/raspbian , but when I run sudo apt-get update I got the following error info:
it does not solve the problem. Anyway, thanks for you advise!

Code: Select all

[email protected]:~ $ sudo apt-get update
Ign:1 http://mirrors.zju.edu.cn/raspbian stretch InRelease
Ign:2 http://mirrors.zju.edu.cn/raspbian stretch Release
Ign:3 http://mirrors.zju.edu.cn/raspbian stretch/main armhf Packages
Ign:4 http://mirrors.zju.edu.cn/raspbian stretch/main all Packages
Ign:5 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en_GB
Ign:6 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en
Ign:7 http://mirrors.zju.edu.cn/raspbian stretch/contrib armhf Packages
Ign:8 http://mirrors.zju.edu.cn/raspbian stretch/contrib all Packages
Ign:9 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en_GB
Ign:10 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en
Ign:11 http://mirrors.zju.edu.cn/raspbian stretch/non-free armhf Packages
Ign:12 http://mirrors.zju.edu.cn/raspbian stretch/non-free all Packages
Ign:13 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en
Ign:14 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en_GB
Ign:15 http://mirrors.zju.edu.cn/raspbian stretch/rpi armhf Packages
Ign:16 http://mirrors.zju.edu.cn/raspbian stretch/rpi all Packages
Ign:17 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en_GB
Ign:18 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en
Ign:3 http://mirrors.zju.edu.cn/raspbian stretch/main armhf Packages
Ign:4 http://mirrors.zju.edu.cn/raspbian stretch/main all Packages
Ign:5 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en_GB
Ign:6 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en
Ign:7 http://mirrors.zju.edu.cn/raspbian stretch/contrib armhf Packages
Ign:8 http://mirrors.zju.edu.cn/raspbian stretch/contrib all Packages
Ign:9 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en_GB
Ign:10 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en
Ign:11 http://mirrors.zju.edu.cn/raspbian stretch/non-free armhf Packages
Ign:12 http://mirrors.zju.edu.cn/raspbian stretch/non-free all Packages
Ign:13 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en
Ign:14 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en_GB
Ign:15 http://mirrors.zju.edu.cn/raspbian stretch/rpi armhf Packages
Ign:16 http://mirrors.zju.edu.cn/raspbian stretch/rpi all Packages
Ign:17 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en_GB
Ign:18 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en
Ign:3 http://mirrors.zju.edu.cn/raspbian stretch/main armhf Packages
Ign:4 http://mirrors.zju.edu.cn/raspbian stretch/main all Packages
Ign:5 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en_GB
Ign:6 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en
Ign:7 http://mirrors.zju.edu.cn/raspbian stretch/contrib armhf Packages
Ign:8 http://mirrors.zju.edu.cn/raspbian stretch/contrib all Packages
Ign:9 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en_GB
Ign:10 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en
Ign:11 http://mirrors.zju.edu.cn/raspbian stretch/non-free armhf Packages
Ign:12 http://mirrors.zju.edu.cn/raspbian stretch/non-free all Packages
Ign:13 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en
Ign:14 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en_GB
Ign:15 http://mirrors.zju.edu.cn/raspbian stretch/rpi armhf Packages
Ign:16 http://mirrors.zju.edu.cn/raspbian stretch/rpi all Packages
Ign:17 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en_GB
Ign:18 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en
Ign:3 http://mirrors.zju.edu.cn/raspbian stretch/main armhf Packages
Ign:4 http://mirrors.zju.edu.cn/raspbian stretch/main all Packages
Ign:5 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en_GB
Ign:6 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en
Ign:7 http://mirrors.zju.edu.cn/raspbian stretch/contrib armhf Packages
Ign:8 http://mirrors.zju.edu.cn/raspbian stretch/contrib all Packages
Ign:9 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en_GB
Ign:10 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en
Ign:11 http://mirrors.zju.edu.cn/raspbian stretch/non-free armhf Packages
Ign:12 http://mirrors.zju.edu.cn/raspbian stretch/non-free all Packages
Ign:13 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en
Ign:14 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en_GB
Ign:15 http://mirrors.zju.edu.cn/raspbian stretch/rpi armhf Packages
Ign:16 http://mirrors.zju.edu.cn/raspbian stretch/rpi all Packages
Ign:17 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en_GB
Ign:18 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en
Ign:3 http://mirrors.zju.edu.cn/raspbian stretch/main armhf Packages
Ign:4 http://mirrors.zju.edu.cn/raspbian stretch/main all Packages
Ign:5 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en_GB
Ign:6 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en
Ign:7 http://mirrors.zju.edu.cn/raspbian stretch/contrib armhf Packages
Ign:8 http://mirrors.zju.edu.cn/raspbian stretch/contrib all Packages
Ign:9 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en_GB
Ign:10 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en
Ign:11 http://mirrors.zju.edu.cn/raspbian stretch/non-free armhf Packages
Ign:12 http://mirrors.zju.edu.cn/raspbian stretch/non-free all Packages
Ign:13 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en
Ign:14 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en_GB
Ign:15 http://mirrors.zju.edu.cn/raspbian stretch/rpi armhf Packages
Ign:16 http://mirrors.zju.edu.cn/raspbian stretch/rpi all Packages
Ign:17 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en_GB
Ign:18 http://mirrors.zju.edu.cn/raspbian stretch/rpi Translation-en
Err:3 http://mirrors.zju.edu.cn/raspbian stretch/main armhf Packages
  404  Not Found [IP: 210.32.158.231 80]
Ign:4 http://mirrors.zju.edu.cn/raspbian stretch/main all Packages
Ign:5 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en_GB
Ign:6 http://mirrors.zju.edu.cn/raspbian stretch/main Translation-en
Ign:7 http://mirrors.zju.edu.cn/raspbian stretch/contrib armhf Packages
Ign:8 http://mirrors.zju.edu.cn/raspbian stretch/contrib all Packages
Ign:9 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en_GB
Ign:10 http://mirrors.zju.edu.cn/raspbian stretch/contrib Translation-en
Ign:11 http://mirrors.zju.edu.cn/raspbian stretch/non-free armhf Packages
Ign:12 http://mirrors.zju.edu.cn/raspbian stretch/non-free all Packages
Ign:13 http://mirrors.zju.edu.cn/raspbian stretch/non-free Translation-en
Get:19 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Get:20 http://archive.raspberrypi.org/debian stretch/main armhf Packages [159 kB]
Get:21 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [31.4 kB]
Fetched 216 kB in 8s (24.0 kB/s)                                               
Reading package lists... Done
W: The repository 'http://mirrors.zju.edu.cn/raspbian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.zju.edu.cn/raspbian/dists/stretch/main/binary-armhf/Packages  404  Not Found [IP: 210.32.158.231 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
[email protected]:~ $ 

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Tue May 22, 2018 1:21 am

And I change back to http://raspbian.raspberrypi.org/raspbian , then sudo apt-get update; sudo apt-get -y dist-upgrade; sudo apt-get update;

Then sudo apt-get install git, it do not use mirrors.opencas.cn and it works to finish. Thanks a lot.

Code: Select all

[email protected]:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease                  
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]     
Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Fetched 11.7 MB in 1min 50s (106 kB/s)                                         
Reading package lists... Done
[email protected]:~ $ sudo apt-get -y dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  raspi-config
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20180518 [20.1 kB]
Fetched 20.1 kB in 0s (27.8 kB/s)       
apt-listchanges: Reading changelogs...
(Reading database ... 34361 files and directories currently installed.)
Preparing to unpack .../raspi-config_20180518_all.deb ...
Unpacking raspi-config (20180518) over (20180406+1) ...
Setting up raspi-config (20180518) ...
Processing triggers for systemd (232-25+deb9u2) ...
[email protected]:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Reading package lists... Done
[email protected]:~ $ sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.9 kB/4,839 kB of archives.
After this operation, 26.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.zju.edu.cn/raspbian/raspbian stretch/main armhf liberror-perl all 0.17024-1 [26.9 kB]
Fetched 26.9 kB in 2s (9,758 B/s)        
Selecting previously unselected package liberror-perl.
(Reading database ... 34361 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u2_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u2) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.11.0-3+deb9u2_armhf.deb ...
Unpacking git (1:2.11.0-3+deb9u2) ...
Setting up git-man (1:2.11.0-3+deb9u2) ...
Setting up liberror-perl (0.17024-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up git (1:2.11.0-3+deb9u2) ...
[email protected]:~ $ 

cpo
Posts: 1
Joined: Tue May 22, 2018 9:05 am

Re: mirrors.opencas.cn mirror can not be reached

Tue May 22, 2018 9:12 am

https://www.raspbian.org/RaspbianMirrors contains a list of alternate servers.

Choose one from the list that is in China, but not opencas.cn and update sources.list.

Step-By-Step
==========

1) edit the sources.list by typing
sudo nano /etc/apt/sources.list
2) Change
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
to
#deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
3) add the line
deb http://mirrors.shu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi to the bottom of the file. (No it doesn't matter where you add it.)
4) Save and exit nano (Ctrl-O, then Ctrl-X). If you cannot save the file, it probably means you did not put "sudo" in front the nano command
5) Run the following
sudo apt-get update && sudo apt-get -y dist-upgrade && sudo apt-get update

bjrobert
Posts: 9
Joined: Mon May 07, 2018 1:34 am

Re: mirrors.opencas.cn mirror can not be reached

Wed May 23, 2018 9:25 am

Hi cpo,

I tried a lot of the mirrors on the list, but they forward mirrors.opencas.cn, I think that the raspberry.org has the config for it. In the last two days ago. It worked well, and do not go to the mirrors.opencas.cn, which is in my last comments. Thanks.

Alectro
Posts: 1
Joined: Sun May 27, 2018 3:34 pm

Re: mirrors.opencas.cn mirror can not be reached

Sun May 27, 2018 3:42 pm

DougieLawson wrote:
Sun May 13, 2018 8:42 am
Try updating your /etc/apt/sources.list file to use mirrors.zju.edu.cn or mirrors.cqu.edu.cn or mirrors.shu.edu.cn
thanks a lot, this works.

plugwash
Forum Moderator
Forum Moderator
Posts: 3245
Joined: Wed Dec 28, 2011 11:45 pm

Re: mirrors.opencas.cn mirror can not be reached

Thu Jun 28, 2018 2:17 pm

The problem is the mirror is IPv6 only but the mirror redirection system wasn't aware of that fact. So it was sending ipv4 clients to it.

I have updated the settings in the mirror redirection system so ipv4 clients should no longer be sent to that mirror.

auberonx
Posts: 2
Joined: Sat Apr 09, 2016 5:25 am

Re: mirrors.opencas.cn mirror can not be reached

Sat Jul 07, 2018 6:15 pm

Hi all,

It's really good to see this topic is being discussed. I followed the solutions suggested above but to no avail.

1) I commented out

# deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

2) left this line untouched

deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

3) and added this line

deb http://mirrors.shu.edu.cn/raspbian/ stretch main contrib non-free rpi

Then I ran the following two commands with the following output:

~ $ sudo apt-get update; sudo apt-get -y dist-upgrade; sudo apt-get update
[...]
Ign:17 http://mirrors.shu.edu.cn/raspbian stretch/non-free Translation-en_US
Reading package lists... Done
W: The repository 'http://mirrors.shu.edu.cn/raspbian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.shu.edu.cn/raspbian/dist ... f/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

~ $ sudo apt-get install ufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ufw is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ufw' has no installation candidate

auberonx
Posts: 2
Joined: Sat Apr 09, 2016 5:25 am

Re: mirrors.opencas.cn mirror can not be reached

Sun Jul 08, 2018 6:16 am

Hi! I'd like to address my own post from just now.

I did come across https://www.raspbian.org/RaspbianMirrors

and many of those sources work great! http://mirrors.neusoft.edu.cn/raspbian/raspbian worked like a charm.

Hope this will be helpful to some other noobs out there!

plugwash
Forum Moderator
Forum Moderator
Posts: 3245
Joined: Wed Dec 28, 2011 11:45 pm

Re: mirrors.opencas.cn mirror can not be reached

Thu Jul 12, 2018 6:41 pm

auberonx wrote:
Sat Jul 07, 2018 6:15 pm
deb http://mirrors.shu.edu.cn/raspbian/ stretch main contrib non-free rpi
The url for using that mirror in an apt source is http://mirrors.shu.edu.cn/raspbian/raspbian/ not http://mirrors.shu.edu.cn/raspbian/

Return to “General discussion”

Who is online

Users browsing this forum: grininmonkey, Imperf3kt, millercommamatt, napster_32, procount and 37 guests