PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 七嘴八舌異言堂
(https://www.pcdvd.com.tw/forumdisplay.php?f=12)
- - 世界最後會不會只剩下兩個 Linux?
(https://www.pcdvd.com.tw/showthread.php?t=1176765)
|
---|
8/25 Linux 32 週年生日。
|
我在MX Linux可以上網,而apt-get update指令能連線到 https://mirrors.ocf.berkeley.edu/ 。
然而,我用apt-get upgrade卻無法連線到 https://mirrors.ocf.berkeley.edu/ ! 請問,我該如何解決這問題? # 我成功地 apt-get update,系統能連線到 https://mirrors.ocf.berkeley.edu/ sparc@Mini:~ $ sudo apt-get update -y Hit:1 http://debian.csie.ntu.edu.tw/debian bookworm-updates InRelease Hit:2 http://debian.csie.ntu.edu.tw/debian bookworm InRelease Hit:3 http://security.debian.org/debian-security bookworm-security InRelease Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease Hit:5 https://mirrors.ocf.berkeley.edu/mx-packages/mx/repo bookworm InRelease Reading package lists... Done # 但我apt-get upgrade後,系統就說 Failed to fetch https://mirrors.ocf.berkeley.edu/ # 系統還建議我用 --fix-missing sparc@Mini:~ $ sudo apt-get upgrade -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages have been kept back: mx-system The following packages will be upgraded: mx-installer 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Need to get 517 kB of archives. After this operation, 13.3 kB of additional disk space will be used. Err:1 https://mirrors.ocf.berkeley.edu/mx-packages/mx/repo bookworm/main amd64 mx-installer amd64 23.10.03mx23 404 Not Found [IP: 169.229.200.70 443] E: Failed to fetch https://mirrors.ocf.berkeley.edu/mx...3mx23_amd64.deb 404 Not Found [IP: 169.229.200.70 443] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? # 我於是apt-get update -y --fix-missing sparc@Mini:~ $ sudo apt-get update -y --fix-missing Hit:1 http://debian.csie.ntu.edu.tw/debian bookworm-updates InRelease Hit:2 http://security.debian.org/debian-security bookworm-security InRelease Hit:3 http://debian.csie.ntu.edu.tw/debian bookworm InRelease Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease Hit:5 https://mirrors.ocf.berkeley.edu/mx-packages/mx/repo bookworm InRelease Reading package lists... Done # 然而,即便如此,但我再次 apt-get upgrade後,系統仍舊說 Failed to fetch https://mirrors.ocf.berkeley.edu/ sparc@Mini:~ $ sudo apt-get upgrade -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages have been kept back: mx-system The following packages will be upgraded: mx-installer 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Need to get 517 kB of archives. After this operation, 13.3 kB of additional disk space will be used. Err:1 https://mirrors.ocf.berkeley.edu/mx-packages/mx/repo bookworm/main amd64 mx-installer amd64 23.10.03mx23 404 Not Found [IP: 169.229.200.70 443] E: Failed to fetch https://mirrors.ocf.berkeley.edu/mx...3mx23_amd64.deb 404 Not Found [IP: 169.229.200.70 443] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? PS: 我電腦規格如下: Operating System: MX Linux 23 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.0.0-6mx-amd64 (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: AMD Radeon RX 570 Series Manufacturer: ASUS |
引用:
連線不到,先check幾個點 1. 查 /etc/resolv.conf 設定的指向 , 通常都是指向ISP的DNS Server , 因為我自行架設DNS Server , 所以我的nameserver指向都是127.0.0.1 2. 用 nslookup mirrors.ocf.berkeley.edu 查一下能否正確解析domain name to ip addr. 以下是我的DNS Server解析的結果 [root@server ~]# nslookup mirrors.ocf.berkeley.edu Server: 127.0.0.1 Address: 127.0.0.1#53 Non-authoritative answer: mirrors.ocf.berkeley.edu canonical name = fallingrocks.ocf.berkeley.edu. Name: fallingrocks.ocf.berkeley.edu Address: 169.229.200.70 Name: fallingrocks.ocf.berkeley.edu Address: 2607:f140:0:32::70 先確認這兩點,再決定後面如何走!! |
謝謝幫忙∼ 我測試結果如下,似乎很正常。
sparc@Mini:~ $ cat /etc/resolv.conf # Generated by NetworkManager nameserver 8.8.8.8 nameserver 2001:4860:4860::8888 sparc@Mini:~ $ sudo nslookup mirrors.ocf.berkeley.edu [sudo] password for sparc: Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: mirrors.ocf.berkeley.edu canonical name = fallingrocks.ocf.berkeley.edu. Name: fallingrocks.ocf.berkeley.edu Address: 169.229.200.70 Name: fallingrocks.ocf.berkeley.edu Address: 2607:f140:0:32::70 |
Plasma 不是主推 wayland 嗎?
話說,Cube effect 要回歸了。 |
引用:
這也只是先確認DNS 解析是正常而已, 既然DNS解析正常,接下來就來確認 能不能access https://mirrors.ocf.berkeley.edu 這個網站,我用chrome可以直接點開 , 您試看看用chrome能不能瀏覽 順便也把 ifconfig -a 及 route -n 也貼一下 ... PS: 您是不是有用ipv6 ?? |
謝謝!
1、我在MX Linux的Brave瀏覽器可以開啟 https://mirrors.ocf.berkeley.edu 2、ifconfig -a eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 24:4b:fe:49:32:3f txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 195 bytes 13334 (13.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 195 bytes 13334 (13.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.101.12 netmask 255.255.255.0 broadcast 192.168.101.255 inet6 fe80::a97d:9e55:79c7:c829 prefixlen 64 scopeid 0x20<link> ether b8:9a:2a:76:1e:16 txqueuelen 1000 (Ethernet) RX packets 477015 bytes 597721077 (570.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 80331 bytes 11758488 (11.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 3、我使用下列的 hosts,所以才會出現0.0.0.0 https://github.com/StevenBlack/hosts 然而,我清空Hosts後,再次apt-get upgrade後,系統還是說 Failed to fetch https://mirrors.ocf.berkeley.edu/ $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.101.1 0.0.0.0 UG 600 0 0 wlan0 192.168.101.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0 4、我有用ipv6! |
看起來,你這台MX Linux 是透過無線網路直接與AP連線 , IPv4 使用的是Private IP
等於是要有一台NAT FW才能連線出去 , 偏偏又使用IPv6 , 所以不確定NAT FW會不會幫 IPv6 做Routing !! 建議你先把IPv6 給Disable , 僅使用IPv4 , 再試看看!! 通常一般user環境下 , 除非你能確定NAT FW本身能做IPv6 Routing , 不然通常我都會建議 不要使用IPv6 (也不要把它給Enable , 這種還境下沒意義,也增加判斷的困難度) !! 對了, /etc/hosts裡也有相關設定嗎 ?? Domain Name直接去指向 ip addr ?? :ase |
|
引用:
引用:
我的/etc/hosts裡將廣|告、收集情報的Domain Name直接指向 ip addr 0.0.0.0! |
所有的時間均為GMT +8。 現在的時間是04:22 AM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2024。