0

I get many errors when I run sudo apt update on 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

How can I fix it?

Zanna
  • 70,465
Naman Jain
  • 105
  • 1
  • 7

1 Answers1

2

Two issues here:

  1. Multiple configurations, fix:

    1. /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list

      • Open file sudo nano /etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list
      • Put a # at the beginning of line 2 and 3
    2. /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list

      • Open file sudo nano /etc/apt/sources.list.d/fossfreedom-ubuntu-packagefixes-xenial.list
      • Put # at the start of line 2 or 3
    3. /etc/apt/sources.list.d/xenial-partner.list

      • delete sudo rm -f /etc/apt/sources.list.d/xenial-partner.list
      • Or put a # at the start of line 19 in /etc/apt/sources.list
    4. Now run update: sudo apt update

  2. Check you internet connection make sure it's ok.

George Udosen
  • 36,677