wsl ubuntu update显示err: 404 Not Found解决方法
生活随笔
收集整理的這篇文章主要介紹了
wsl ubuntu update显示err: 404 Not Found解决方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 遇到問題
- 解決方法
- 參考
遇到問題
azheng@lishizheng:/mnt/e/shizheng_coding/fluent_python_reading_books$ sudo apt-get install vim-gnome Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:The following packages have unmet dependencies:vim-gnome : Depends: vim-gui-common (= 2:7.4.052-1ubuntu3.1) but 2:8.1.2269-1ubuntu5.7 is to be installedDepends: vim-common (= 2:7.4.052-1ubuntu3.1) but 2:8.1.2269-1ubuntu5.7 is to be installedDepends: vim-runtime (= 2:7.4.052-1ubuntu3.1) but 2:8.1.2269-1ubuntu5.7 is to be installedDepends: libperl5.18 (>= 5.18.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.解決方法
備份源文件
$sudo cp -i /etc/apt/sources.list /etc/apt/sources.list_backup然后用vim打開/etc/apt/sources.list,替換源。
vim /etc/apt/sources.listvim的具體用法就不贅述了
替換國內的源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse2022年3月6日補充,現在筆者使用清華的源,不再使用ali的源。
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse發現錯誤
Err:11 http://ppa.launchpad.net/pkg-vim/vim-daily/ubuntu focal Release404 Not Found [IP: 91.189.95.85 80]使用下面命令,刪掉對應的ppa
先找到ppa所在的目錄cd /etc/apt/sources.list.d/
然后刪除對應的list
然后再update就沒事了
azheng@lishizheng:/etc/apt/sources.list.d$ sudo apt-get update Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease Hit:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease Hit:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease Hit:4 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease Hit:5 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease Reading package lists... Done接下來再安裝vim-gnome
azheng@lishizheng:/etc/apt/sources.list.d$ sudo apt-get install vim-gnome Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed:vim-gnome 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 13.0 kB of archives. After this operation, 171 kB of additional disk space will be used. Get:1 http://mirrors.aliyun.com/ubuntu bionic-security/main amd64 vim-gnome all 2:8.0.1453-1ubuntu1.8 [13.0 kB] Fetched 13.0 kB in 0s (64.3 kB/s) Selecting previously unselected package vim-gnome. (Reading database ... 92518 files and directories currently installed.) Preparing to unpack .../vim-gnome_2%3a8.0.1453-1ubuntu1.8_all.deb ... Unpacking vim-gnome (2:8.0.1453-1ubuntu1.8) ... Setting up vim-gnome (2:8.0.1453-1ubuntu1.8) ...參考
解決Ubuntu 安裝vim 的Package vim has no installation candidate問題,100%有效
更換源
Ubuntu如何添加刪除PPA
總結
以上是生活随笔為你收集整理的wsl ubuntu update显示err: 404 Not Found解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: bilibili深入理解计算机系统笔记(
- 下一篇: 阿里云服务器怎么安装docker