Linux常用命令(5)徹底解決apt-get update出現W: 衝突的發行版: XXXX InRelease (期望 ./linux/ 但得到 )的問題

徹底解決apt-get update出現W: 衝突的發行版: XXXX InRelease 期望 ./linux/ 但得到 的問題

本機系統環境介紹

Ubuntu系統環境介紹介紹
Ubuntu版本:18.04.1
系統配置: 64位
Linux內核:5.3.0-42-generic
錯誤描述:W: 衝突的發行版:https://typora.io ./linux/ InRelease (期望 ./linux/ 但得到 )

解決思路

錯誤演示

acestang@acestang:~$ sudo apt-get update
獲取:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]   
命中:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease                    
獲取:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]  
獲取:4 https://typora.io ./linux/ InRelease [793 B]                            
獲取:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
命中:6 http://linux.teamviewer.com/deb stable InRelease                        
命中:7 https://download.docker.com/linux/ubuntu bionic InRelease               
已下載 253 kB,耗時 5秒 (46.3 kB/s)
正在讀取軟件包列表... 完成
W: 衝突的發行版:https://typora.io ./linux/ InRelease (期望 ./linux/ 但得到 )

解決錯誤

編輯 acestang@acestang:~$ sudo vi /etc/apt/sources.list
找到跟錯誤提示相關的軟件,比如我的提示typora.io 是這個,直接找到這一行,刪除,保存退出
再次執行sudo apt-get update就可以

acestang@acestang:~$ sudo apt-get update
獲取:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]   
命中:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease                    
命中:3 http://linux.teamviewer.com/deb stable InRelease                        
獲取:4 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]  
獲取:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
命中:6 https://download.docker.com/linux/ubuntu bionic InRelease               
已下載 252 kB,耗時 11秒 (22.7 kB/s)                                           
正在讀取軟件包列表... 完成
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章