E:リポジトリ「http://extras.ubuntu.com/ubuntuxenialRelease」にはリリースファイルがありません。

UBUNTUがミラーソースを置き換えた後、sudo apt-getupdateを
実行し
ます

エラーは次のとおりです。

Get:86 http://archive.ubuntu.com/ubuntu bionic-backports / universe Translation-en [4588 B]
パッケージリストの読み取り…完了
E:リポジトリ「http://extras.ubuntu.com/ubuntuxenialRelease」リリースファイルがありません。
N:このようなリポジトリからの更新は安全に実行できないため、デフォルトで無効になっています。
N:リポジトリの作成とユーザー設定の詳細については、apt-secure(8)のマンページを参照してください。

解決:

/etc/apt/sources.listファイルを編集し、ファイルの先頭にAlibabaCloudミラーソースを追加します。

#  阿里源
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

次に、以下を実行します。

sudo rm -vf /var/lib/apt/lists/*
sudo apt clean
sudo apt update ; reboot

おすすめ

転載: blog.csdn.net/weixin_47542175/article/details/115368001