sudo apt-getアップデートエラー

sudo apt-getアップデートエラー

私はUbuntuベースのディストリビューションを使用しており、リポジトリの更新中にこれを得ました。

Err: 1 http://us.old-releases.ubuntu.com/ubuntu bionic InRelease
Could not resolve "us.old-releases.ubuntu.com"
Err: 2 http://us.old-releases.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve "us.old-releases.ubuntu.com"
Could not resolve "us.old-releases.ubuntu.com"
Ign: 4 http://old-releases.ubuntu.com/ubuntu bionic-security InRelease
Err: 5 http://old-releases.ubuntu.com/ubuntu bionic-security Release
404 not found [IP: 91.189.88.153 80]
Obj: 6 https://download.sublimetext.com apt / stable / InRelease
Ign: 9 http://packages.bodhilinux.com/bodhi bionic Release.gpg
Reading package list ... Done
E: The repository "http://old-releases.ubuntu.com/ubuntu bionic-security Release" does not have a Post file.
N: You cannot update a repository like this safely and therefore it is disabled by default.
N: See the apt-secure (8) man page for details on creating repositories and configuring users.
E: The launch file from http://packages.bodhilinux.com/bodhi/dists/bionic/Release is not valid yet (invalid for another 1h 35min 28s). Updates will not be applied for this repository.

ベストアンサー1

1)試してみてください

sudo apt clean
sudo apt autoclean
sudo apt update && sudo apt upgrade

2) 2番目

sudo apt clean
sudo apt autoclean
sudo apt -f install
sudo dpkg --configure -a
sudo apt -f install

後でもう一度やり直してください。

sudo apt clean
sudo apt autoclean
sudo apt update && sudo apt upgrade

3) 最後の状況

vim /etc/apt/sources.list新しいソースリストで新しいソースリストを作成します。確認してください:https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-proxy-on-ubuntu-18-04/

おすすめ記事