ubuntu 16.04版本出現安裝或者更新軟件時網址鏈接error的問題


Get:1 http://mirrors.sohu.com/ubuntu xenial InRelease [8 B]
Err:1 http://mirrors.sohu.com/ubuntu xenial InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://mirrors.sohu.com/ubuntu xenial-updates InRelease [8 B]
Err:2 http://mirrors.sohu.com/ubuntu xenial-updates InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://mirrors.sohu.com/ubuntu xenial-backports InRelease [8 B]
Err:3 http://mirrors.sohu.com/ubuntu xenial-backports InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://mirrors.sohu.com/ubuntu xenial-security InRelease [8 B]
Err:4 http://mirrors.sohu.com/ubuntu xenial-security InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Fetched 32 B in 0s (156 B/s) 
Reading package lists... Done
E: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/xenial-updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/xenial-backports/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/xenial-security/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.

解決方法如下:

1. 打開系統設置,雙擊軟件與更新;

  

 

 

2. 修改Download from為Main Server ,然后點擊關閉,彈出密碼輸入框,輸入密碼后確定彈出提示框,選擇reload按鈕。

 

3. 返回命令窗口,執行命令:sudo apt-get update或者sudo apt-get install ****;

執行成功。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM