Ubuntu 16.04 LTS Windows Subsystem 403 forbidden on apt-get update
I am using the Ubuntu Windows Subsystem. When I try to do apt update
, the program says that the site is 403 forbidden. I can still access the resources on the site by with my browser. The log is posted below. It is abridged. Please find the full log at https://drive.google.com/file/d/1vTyljlAtCg0KAkYFROi-TKL2bwS514NX/view?usp=sharing
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ sudo apt-get update
Ign:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 mirror://mirrors.ubuntu.com/mirrors.txt precise InRelease
Ign:4 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates InRelease
Ign:5 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports InRelease
Ign:6 mirror://mirrors.ubuntu.com/mirrors.txt precise-security InRelease
Ign:7 mirror://mirrors.ubuntu.com/mirrors.txt precise Release
Ign:8 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates Release
Ign:9 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports Release
Ign:10 mirror://mirrors.ubuntu.com/mirrors.txt precise-security Release
Ign:11 mirror://mirrors.ubuntu.com/mirrors.txt precise/main amd64 Packages
Ign:12 mirror://mirrors.ubuntu.com/mirrors.txt precise/main all Packages
Ign:13 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en_US
Ign:14 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en
Ign:15 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted amd64 Packages
Ign:16 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted all Packages
Ign:17 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted Translation-en_US
...(Some more ignoring, abridged)
Ign:139 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en_US
Reading package lists... Done
W: The repository 'mirror://mirrors.ubuntu.com/mirrors.txt precise 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-updates 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-backports 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-security 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 'http://security.ubuntu.com/ubuntu xenial-security 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 'http://archive.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 'http://archive.ubuntu.com/ubuntu xenial-updates 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 'http://archive.ubuntu.com/ubuntu xenial-backports 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 mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-updates/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-backports/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-security/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
As seen, I have tried adding a mirror. The situation does not change much with or without a mirror. There are just more 'Ign's.
$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://security.ubuntu.com/ubuntu/ xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
I have tried removing files from /var/lib/apt/lists/partial/
. It was empty. The same error appears.
Please tell me if more details are needed.
16.04 apt windows-subsystem-for-linux
add a comment |
I am using the Ubuntu Windows Subsystem. When I try to do apt update
, the program says that the site is 403 forbidden. I can still access the resources on the site by with my browser. The log is posted below. It is abridged. Please find the full log at https://drive.google.com/file/d/1vTyljlAtCg0KAkYFROi-TKL2bwS514NX/view?usp=sharing
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ sudo apt-get update
Ign:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 mirror://mirrors.ubuntu.com/mirrors.txt precise InRelease
Ign:4 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates InRelease
Ign:5 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports InRelease
Ign:6 mirror://mirrors.ubuntu.com/mirrors.txt precise-security InRelease
Ign:7 mirror://mirrors.ubuntu.com/mirrors.txt precise Release
Ign:8 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates Release
Ign:9 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports Release
Ign:10 mirror://mirrors.ubuntu.com/mirrors.txt precise-security Release
Ign:11 mirror://mirrors.ubuntu.com/mirrors.txt precise/main amd64 Packages
Ign:12 mirror://mirrors.ubuntu.com/mirrors.txt precise/main all Packages
Ign:13 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en_US
Ign:14 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en
Ign:15 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted amd64 Packages
Ign:16 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted all Packages
Ign:17 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted Translation-en_US
...(Some more ignoring, abridged)
Ign:139 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en_US
Reading package lists... Done
W: The repository 'mirror://mirrors.ubuntu.com/mirrors.txt precise 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-updates 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-backports 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-security 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 'http://security.ubuntu.com/ubuntu xenial-security 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 'http://archive.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 'http://archive.ubuntu.com/ubuntu xenial-updates 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 'http://archive.ubuntu.com/ubuntu xenial-backports 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 mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-updates/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-backports/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-security/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
As seen, I have tried adding a mirror. The situation does not change much with or without a mirror. There are just more 'Ign's.
$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://security.ubuntu.com/ubuntu/ xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
I have tried removing files from /var/lib/apt/lists/partial/
. It was empty. The same error appears.
Please tell me if more details are needed.
16.04 apt windows-subsystem-for-linux
add a comment |
I am using the Ubuntu Windows Subsystem. When I try to do apt update
, the program says that the site is 403 forbidden. I can still access the resources on the site by with my browser. The log is posted below. It is abridged. Please find the full log at https://drive.google.com/file/d/1vTyljlAtCg0KAkYFROi-TKL2bwS514NX/view?usp=sharing
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ sudo apt-get update
Ign:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 mirror://mirrors.ubuntu.com/mirrors.txt precise InRelease
Ign:4 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates InRelease
Ign:5 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports InRelease
Ign:6 mirror://mirrors.ubuntu.com/mirrors.txt precise-security InRelease
Ign:7 mirror://mirrors.ubuntu.com/mirrors.txt precise Release
Ign:8 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates Release
Ign:9 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports Release
Ign:10 mirror://mirrors.ubuntu.com/mirrors.txt precise-security Release
Ign:11 mirror://mirrors.ubuntu.com/mirrors.txt precise/main amd64 Packages
Ign:12 mirror://mirrors.ubuntu.com/mirrors.txt precise/main all Packages
Ign:13 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en_US
Ign:14 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en
Ign:15 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted amd64 Packages
Ign:16 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted all Packages
Ign:17 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted Translation-en_US
...(Some more ignoring, abridged)
Ign:139 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en_US
Reading package lists... Done
W: The repository 'mirror://mirrors.ubuntu.com/mirrors.txt precise 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-updates 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-backports 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-security 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 'http://security.ubuntu.com/ubuntu xenial-security 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 'http://archive.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 'http://archive.ubuntu.com/ubuntu xenial-updates 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 'http://archive.ubuntu.com/ubuntu xenial-backports 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 mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-updates/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-backports/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-security/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
As seen, I have tried adding a mirror. The situation does not change much with or without a mirror. There are just more 'Ign's.
$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://security.ubuntu.com/ubuntu/ xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
I have tried removing files from /var/lib/apt/lists/partial/
. It was empty. The same error appears.
Please tell me if more details are needed.
16.04 apt windows-subsystem-for-linux
I am using the Ubuntu Windows Subsystem. When I try to do apt update
, the program says that the site is 403 forbidden. I can still access the resources on the site by with my browser. The log is posted below. It is abridged. Please find the full log at https://drive.google.com/file/d/1vTyljlAtCg0KAkYFROi-TKL2bwS514NX/view?usp=sharing
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ sudo apt-get update
Ign:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 mirror://mirrors.ubuntu.com/mirrors.txt precise InRelease
Ign:4 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates InRelease
Ign:5 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports InRelease
Ign:6 mirror://mirrors.ubuntu.com/mirrors.txt precise-security InRelease
Ign:7 mirror://mirrors.ubuntu.com/mirrors.txt precise Release
Ign:8 mirror://mirrors.ubuntu.com/mirrors.txt precise-updates Release
Ign:9 mirror://mirrors.ubuntu.com/mirrors.txt precise-backports Release
Ign:10 mirror://mirrors.ubuntu.com/mirrors.txt precise-security Release
Ign:11 mirror://mirrors.ubuntu.com/mirrors.txt precise/main amd64 Packages
Ign:12 mirror://mirrors.ubuntu.com/mirrors.txt precise/main all Packages
Ign:13 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en_US
Ign:14 mirror://mirrors.ubuntu.com/mirrors.txt precise/main Translation-en
Ign:15 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted amd64 Packages
Ign:16 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted all Packages
Ign:17 mirror://mirrors.ubuntu.com/mirrors.txt precise/restricted Translation-en_US
...(Some more ignoring, abridged)
Ign:139 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en_US
Reading package lists... Done
W: The repository 'mirror://mirrors.ubuntu.com/mirrors.txt precise 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-updates 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-backports 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 'mirror://mirrors.ubuntu.com/mirrors.txt precise-security 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 'http://security.ubuntu.com/ubuntu xenial-security 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 'http://archive.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 'http://archive.ubuntu.com/ubuntu xenial-updates 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 'http://archive.ubuntu.com/ubuntu xenial-backports 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 mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-updates/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-backports/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/precise-security/main/binary-amd64/Packages No mirror file '/var/lib/apt/mirrors/mirrors.ubuntu.com_mirrors.txt' found [Mirror: ]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
As seen, I have tried adding a mirror. The situation does not change much with or without a mirror. There are just more 'Ign's.
$ cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://security.ubuntu.com/ubuntu/ xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
I have tried removing files from /var/lib/apt/lists/partial/
. It was empty. The same error appears.
Please tell me if more details are needed.
16.04 apt windows-subsystem-for-linux
16.04 apt windows-subsystem-for-linux
asked Feb 16 at 6:16
RichardGodfreysonRichardGodfreyson
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118694%2fubuntu-16-04-lts-windows-subsystem-403-forbidden-on-apt-get-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118694%2fubuntu-16-04-lts-windows-subsystem-403-forbidden-on-apt-get-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown