apt-get update 抛出错误

apt-get update 抛出错误

我运行时出现以下错误sudo apt-get update

Reading package lists... Error!
W: The repository 'http://ppa.launchpad.net/gijzelaar/opencv2.3/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/gijzelaar/opencv2.3/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Unable to parse package file /var/lib/apt/lists/ppa.launchpad.net_gijzelaar_opencv2.3_ubuntu_dists_xenial_main_binary-amd64_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/ppa.launchpad.net_gijzelaar_opencv2.3_ubuntu_dists_xenial_main_binary-i386_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/ppa.launchpad.net_gijzelaar_opencv2.3_ubuntu_dists_xenial_main_binary-all_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/ppa.launchpad.net_gijzelaar_opencv2.3_ubuntu_dists_xenial_main_i18n_Translation-en (1)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted

我该如何解决这个问题?我的 Ubuntu 版本是 16.04

答案1

没有ppa:gijzelaar/opencv2.3适用于 16.04 LTS (xenial) 的软件包。

解决方案是删除有问题的 PPA:

sudo add-apt-repository -r ppa:gijzelaar/opencv2.3
sudo rm /var/lib/apt/lists/ppa.launchpad.net_gijzelaar_opencv2.3*

然后运行sudo apt-get update等等。

相关内容