sudo apt update
我在 Ubuntu 16.04 上运行时出现很多错误
Err:26 http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu xenial/main Sources
404 Not Found
Err:49 http://ppa.launchpad.net/medigeek/ppa/ubuntu xenial/main Sources
404 Not Found
Err:10 http://extras.ubuntu.com/ubuntu xenial/main Sources
404 Not Found [IP: 91.189.92.152 80]
Fetched 5,770 kB in 2min 44s (35.1 kB/s)
Reading package lists... Done
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Translations (partner/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list:2 and /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:4
W: The repository 'htt://extras.ubuntu.com/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.
W: The repository 'htt://ppa.launchpad.net/fossfreedom/packagefixes/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.
W: The repository 'htt://ppa.launchpad.net/medigeek/ppa/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://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources 404 Not Found [IP: 91.189.92.152 80]
E: Failed to fetch http://ppa.launchpad.net/fossfreedom/packagefixes/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/medigeek/ppa/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Translations (partner/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/xenial-partner.list:4
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list:2 and /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:3
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list:4
我该如何修复它?
答案1
这里有两个问题:
多种配置,修复:
/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list
- 打开文件
sudo nano /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list
- 将 a 放在
#
行首2
,然后3
- 打开文件
/etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list
- 打开文件
sudo nano /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list
- 放在
#
行首2
或3
- 打开文件
/etc/apt/sources.list.d/xenial-partner.list
- 删除
sudo rm -f /etc/apt/sources.list.d/xenial-partner.list
- 或者在行
#
首放置19
/etc/apt/sources.list
- 删除
现在运行更新:
sudo apt update
检查您的互联网连接,确保其正常。