Ubuntu インストール ソフトウェアがエラー E を報告します。問題を修正できません。壊れたパッケージを保持しています

Ubuntu インストール ソフトウェアがエラー E を報告する: 問題を修正できません。壊れたパッケージを保持しています

質問

sudo apt install時間报错E: 問題を修正できません。破損したパッケージを保持しています。

理由

Ubuntu のバージョンは apt ソースと一致しません。最新のソースを使用してください。この記事では Ali ソースを使用しています。

解決

バージョン情報を見る

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

ソースを変更

sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
:wq
$ sudo apt update
$ sudo apt-get upgrade

成功:sudo apt install 软件名今すぐできます。! !

おすすめ

転載: blog.csdn.net/qq_40342400/article/details/128245492