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)第二个

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/

相关内容