Unable to update apt-get and install new packages on Ubuntu 16.04

Asked by eshikafe on 2016-10-22

austin@analytics:~$ sudo apt-get update
[sudo] password for austin:
Ign:1 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://se.archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease

Ign:37 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en
Ign:39 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
Ign:41 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Reading package lists... Done
W: The repository 'http://se.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-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-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.
E: Failed to fetch http://se.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
austin@analytics:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
eshikafe
Solved:
2016-10-22
Last query:
2016-10-22
Last reply:
eshikafe (eshikafe) said : #1

Problem solved after changing the proxy settings in /etc/apt/apt.conf

austin@analytics:~$ sudo nano /etc/apt/apt.conf
austin@analytics:~$ sudo apt-get update
Get:1 http://se.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [158 kB]
Get:5 http://se.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [154 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [65.7 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [51.9 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [51.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [31.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [410 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [405 kB]
Get:13 http://se.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [157 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [345 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [341 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [123 kB]
Get:18 http://se.archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:19 http://se.archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:20 http://se.archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:21 http://se.archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:22 http://se.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:23 http://se.archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
76% [23 Packages 1504 kB/7512 kB 20%]