Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save avinash-mishra/a4e8225213c85c158689b6729972be4c to your computer and use it in GitHub Desktop.
Save avinash-mishra/a4e8225213c85c158689b6729972be4c to your computer and use it in GitHub Desktop.

Revisions

  1. avinash-mishra revised this gist Jan 17, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ubuntu 16.04.1 fix error for sudo apt-get update
    Original file line number Diff line number Diff line change
    @@ -25,8 +25,8 @@ Solutions
    These packages are not actual ubuntu source so we can comment it out.

    2) replace
    `deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main`
    deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main

    With
    deb http://extras.ubuntu.com/ubuntu trusty main
  2. avinash-mishra revised this gist Jan 17, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ubuntu 16.04.1 fix error for sudo apt-get update
    Original file line number Diff line number Diff line change
    @@ -25,8 +25,8 @@ Solutions
    These packages are not actual ubuntu source so we can comment it out.

    2) replace
    ```deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main```
    `deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main`

    With
    deb http://extras.ubuntu.com/ubuntu trusty main
  3. avinash-mishra revised this gist Jan 17, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ubuntu 16.04.1 fix error for sudo apt-get update
    Original file line number Diff line number Diff line change
    @@ -25,8 +25,8 @@ Solutions
    These packages are not actual ubuntu source so we can comment it out.

    2) replace
    deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main
    ```deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main```

    With
    deb http://extras.ubuntu.com/ubuntu trusty main
  4. avinash-mishra created this gist Jan 17, 2017.
    36 changes: 36 additions & 0 deletions ubuntu 16.04.1 fix error for sudo apt-get update
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    Problem:
    $ sudo apt-get update
    ..........
    ..........
    Err:13 http://extras.ubuntu.com/ubuntu xenial/main Sources
    404 Not Found [IP: 91.189.92.152 80]
    Ign:17 http://extras.ubuntu.com/ubuntu xenial/main amd64 Packages
    Ign:20 http://extras.ubuntu.com/ubuntu xenial/main i386 Packages
    Ign:22 http://extras.ubuntu.com/ubuntu xenial/main all Packages
    Ign:23 http://extras.ubuntu.com/ubuntu xenial/main Translation-en_US
    Ign:24 http://extras.ubuntu.com/ubuntu xenial/main Translation-en
    Ign:25 http://extras.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata
    Ign:26 http://extras.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons
    Fetched 204 kB in 12s (16.5 kB/s)
    Reading package lists... Done
    W: The repository 'http://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.
    E: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources 404 Not Found [IP: 91.189.92.152 80]
    E: Some index files failed to download. They have been ignored, or old ones used instead.


    Solutions
    1) Comment line inside /etc/apt/sources.list where http://extras.ubuntu.com/ubuntu
    These packages are not actual ubuntu source so we can comment it out.

    2) replace
    deb http://extras.ubuntu.com/ubuntu xenial main
    deb-src http://extras.ubuntu.com/ubuntu xenial main

    With
    deb http://extras.ubuntu.com/ubuntu trusty main
    deb-src http://extras.ubuntu.com/ubuntu trusty main

    Since xenial package does not exist check here: http://extras.ubuntu.com/ubuntu/dists/
    http://extras.ubuntu.com/ubuntu/dists/xenial/main/source/Sources