日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

wsl ubuntu update显示err: 404 Not Found解决方法

發(fā)布時間:2025/4/5 Ubuntu 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 wsl ubuntu update显示err: 404 Not Found解决方法 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

文章目錄

      • 遇到問題
      • 解決方法
      • 參考

遇到問題

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.list

vim的具體用法就不贅述了

替換國內(nèi)的源

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 multiverse

2022年3月6日補(bǔ)充,現(xiàn)在筆者使用清華的源,不再使用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

發(fā)現(xiàn)錯誤

Err:11 http://ppa.launchpad.net/pkg-vim/vim-daily/ubuntu focal Release404 Not Found [IP: 91.189.95.85 80]

使用下面命令,刪掉對應(yīng)的ppa

先找到ppa所在的目錄cd /etc/apt/sources.list.d/
然后刪除對應(yīng)的list

azheng@lishizheng:/mnt/e/shizheng_coding/fluent_python_reading_books$ cd /etc/apt/sources.list.d/ azheng@lishizheng:/etc/apt/sources.list.d$ ls pkg-vim-ubuntu-vim-daily-focal.list ubuntu-desktop-ubuntu-ubuntu-make-focal.list pkg-vim-ubuntu-vim-daily-focal.list.save ubuntu-desktop-ubuntu-ubuntu-make-focal.list.save azheng@lishizheng:/etc/apt/sources.list.d$ sudo rm pkg-vim-ubuntu-vim-daily-focal.list azheng@lishizheng:/etc/apt/sources.list.d$ ls pkg-vim-ubuntu-vim-daily-focal.list.save ubuntu-desktop-ubuntu-ubuntu-make-focal.list.save ubuntu-desktop-ubuntu-ubuntu-make-focal.list azheng@lishizheng:/etc/apt/sources.list.d$ sudo rm pkg-vim-ubuntu-vim-daily-focal.list.save azheng@lishizheng:/etc/apt/sources.list.d$ ls ubuntu-desktop-ubuntu-ubuntu-make-focal.list ubuntu-desktop-ubuntu-ubuntu-make-focal.list.save

然后再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

總結(jié)

以上是生活随笔為你收集整理的wsl ubuntu update显示err: 404 Not Found解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。