我对 Linux 和任何与编程相关的东西都很陌生。我尝试在 Xenial xerus 中使用 sudo apt-get update,但出现了几个警告,如下所示。我读了一些答案
对于与我类似的问题并尝试应用它们,但问题仍然存在。
Hit:1 http://download.virtualbox.org/virtualbox/debian xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu precise-security InRelease
Hit:3 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease
Ign:4 http://archive.ubuntu.com/ubuntu precise InRelease
Hit:5 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Hit:6 http://archive.ubuntu.com/ubuntu precise-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu precise-backports InRelease
Hit:8 http://archive.ubuntu.com/ubuntu precise Release
Reading package lists... Done
W: Target Sources (universe/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Sources (multiverse/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (main/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (universe/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (restricted/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (multiverse/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (universe/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (main/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (multiverse/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (restricted/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/official-package-repositories.list:16
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d /official-package-repositories.list:17
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (universe/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (main/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (multiverse/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (restricted/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list.d/official-package-repositories.list:17
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (universe/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (main/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (multiverse/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (restricted/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:18 and /etc/apt/sources.list.d/official-package-repositories.list:18
W: http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: Target Sources (universe/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Sources (multiverse/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:14 and /etc/apt/sources.list.d/official-package-repositories.list:14
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (main/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (universe/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (restricted/i18n/Translation-en_PH) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
以下是 的内容sources.list
:
以下是运行 sudo nano /etc/apt/sources.list 并根据@Raphael 的建议进行一些编辑后的屏幕截图:
答案1
警告中是这样说的:
configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/official-package-repositories.list:13
要删除警告:
看来您已
precise
在 中启用了 sources.listxenial
。请立即纠正
XENIAL 的示例
sources.list
:
德布http://archive.ubuntu.com/ubuntu/xenial 主受限宇宙多元宇宙
deb-源文件http://archive.ubuntu.com/ubuntu/xenial 主受限宇宙多元宇宙
德布http://archive.ubuntu.com/ubuntu/xenial-security 主受限宇宙多元宇宙
德布http://archive.ubuntu.com/ubuntu/xenial-updates 主要受限宇宙多元宇宙
德布http://archive.ubuntu.com/ubuntu/xenial 提出的主要受限宇宙多元宇宙
德布http://archive.ubuntu.com/ubuntu/xenial-backports 主要受限宇宙多元宇宙
deb-源文件http://archive.ubuntu.com/ubuntu/xenial-security 主受限宇宙多元宇宙
deb-源文件http://archive.ubuntu.com/ubuntu/xenial-updates 主要受限宇宙多元宇宙
deb-源文件http://archive.ubuntu.com/ubuntu/xenial 提出的主要受限宇宙多元宇宙
deb-源文件http://archive.ubuntu.com/ubuntu/xenial-backports 主要受限宇宙多元宇宙
如果这是 Ubuntu 的新安装,并且您没有配置任何 ppas 或外部存储库,则输入以下命令:
sudo rm -rf /etc/apt/sources.list.d/official-package-repositories.list /var/lib/apt/lists/* && sudo apt-get update
如果不是,那么:
首先比较两个文件:
sdiff /etc/apt/sources.list /etc/apt/sources.list.d/official-package-repositories.list
检查是否有任何差异。如果发现任何差异,将使用
>
或显示<
。通过在文本编辑器中打开 /etc/apt/sources.list.d/official-package-repositories.list 来注释其中的那些行,然后通过输入以下内容更新您的存储库:
sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update
答案2
由于 /etc/apt/sources.list 和 /etc/apt/sources.list.d/official-package-repositories.list 的内容相同(根据上面的注释),首先将它们都删除:
sudo rm /etc/apt/sources.list.d/official-package-repositories.list /etc/apt/sources.list
然后启动软件属性-gtk
sudo software-properties-gtk
然后勾选您想要启用的存储库旁边的框,然后会使用正确的设置创建一个新的 /etc/apt/sources.list。