Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Err apt-get update on Ubuntu 14.04

Writer Matthew Martinez

I am noticing the below errors when I try to do update on Ubuntu 14.04 machine. I remember it was working fine the last time I tried.

sudo apt-get update
Err trusty InRelease
Err trusty Release.gpg Cannot initiate the connection to extras.ubuntu.com:80 (2001:67c:1360:8c01::23). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::23 80]
Err trusty InRelease
Err trusty-updates InRelease
Err trusty-backports InRelease
Err trusty-proposed InRelease
Err trusty Release.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err trusty-updates Release.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err trusty-backports Release.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err trusty-proposed Release.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err trusty-security InRelease
Err trusty-security Release.gpg Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::17). - connect (101: Network is unreachable) [IP: 2001:67c:1562::17 80]
Reading package lists... Done
W: Failed to fetch
W: Failed to fetch
W: Failed to fetch
W: Failed to fetch
W: Failed to fetch
W: Failed to fetch
W: Failed to fetch Cannot initiate the connection to extras.ubuntu.com:80 (2001:67c:1360:8c01::23). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::23 80]
W: Failed to fetch Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::17). - connect (101: Network is unreachable) [IP: 2001:67c:1562::17 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Can some body help me out to fix this please !

@TungTran: After your suggested change, there is some progress but, am still facing some issues as shown below:

sudo apt-get update
Ign trusty InRelease
Ign trusty-security InRelease
Ign trusty InRelease
Ign trusty-security Release.gpg
Ign trusty-updates InRelease
Ign trusty Release.gpg
Ign trusty-security Release
Ign trusty-backports InRelease
Ign trusty Release
Ign trusty-proposed InRelease
Ign trusty Release.gpg
Ign trusty-updates Release.gpg
Ign trusty-backports Release.gpg
Ign trusty-proposed Release.gpg
Ign trusty Release
Ign trusty-updates Release
Ign trusty-backports Release
Ign trusty-proposed Release
Err trusty/main Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty/main i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Ign trusty/main Translation-en_US
Ign trusty/main Translation-en
Err trusty-security/main Sources 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/restricted Sources 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/universe Sources 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/multiverse Sources 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/main i386 Packages 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/restricted i386 Packages 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/universe i386 Packages 404 Not Found [IP: 199.168.151.24 80]
Err trusty-security/multiverse i386 Packages 404 Not Found [IP: 199.168.151.24 80]
Ign trusty-security/main Translation-en_US
Ign trusty-security/main Translation-en
Ign trusty-security/multiverse Translation-en_US
Ign trusty-security/multiverse Translation-en
Ign trusty-security/restricted Translation-en_US
Ign trusty-security/restricted Translation-en
Ign trusty-security/universe Translation-en_US
Ign trusty-security/universe Translation-en
Err trusty/main Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty/restricted Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty/universe Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty/multiverse Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty/main i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty/restricted i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty/universe i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty/multiverse i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Ign trusty/main Translation-en_US
Ign trusty/main Translation-en
Ign trusty/multiverse Translation-en_US
Ign trusty/multiverse Translation-en
Ign trusty/restricted Translation-en_US
Ign trusty/restricted Translation-en
Ign trusty/universe Translation-en_US
Ign trusty/universe Translation-en
Err trusty-updates/main Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/restricted Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/universe Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/multiverse Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/main i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/restricted i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/universe i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-updates/multiverse i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Ign trusty-updates/main Translation-en_US
Ign trusty-updates/main Translation-en
Ign trusty-updates/multiverse Translation-en_US
Ign trusty-updates/multiverse Translation-en
Ign trusty-updates/restricted Translation-en_US
Ign trusty-updates/restricted Translation-en
Ign trusty-updates/universe Translation-en_US
Ign trusty-updates/universe Translation-en
Err trusty-backports/main Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/restricted Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/universe Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/multiverse Sources 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/main i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/restricted i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/universe i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-backports/multiverse i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Ign trusty-backports/main Translation-en_US
Ign trusty-backports/main Translation-en
Ign trusty-backports/multiverse Translation-en_US
Ign trusty-backports/multiverse Translation-en
Ign trusty-backports/restricted Translation-en_US
Ign trusty-backports/restricted Translation-en
Ign trusty-backports/universe Translation-en_US
Ign trusty-backports/universe Translation-en
Err trusty-proposed/multiverse i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-proposed/main i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-proposed/universe i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Err trusty-proposed/restricted i386 Packages 404 Not Found [IP: 199.168.148.24 80]
Ign trusty-proposed/main Translation-en_US
Ign trusty-proposed/main Translation-en
Ign trusty-proposed/multiverse Translation-en_US
Ign trusty-proposed/multiverse Translation-en
Ign trusty-proposed/restricted Translation-en_US
Ign trusty-proposed/restricted Translation-en
Ign trusty-proposed/universe Translation-en_US
Ign trusty-proposed/universe Translation-en
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.151.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
W: Failed to fetch 404 Not Found [IP: 199.168.148.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

This is the content of my sources.list

cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted
# See for how to upgrade to
# newer versions of the distribution.
deb trusty main restricted
deb-src trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb trusty-updates main restricted
deb-src trusty-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 trusty universe
deb-src trusty universe
deb trusty-updates universe
deb-src trusty-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 trusty multiverse
deb-src trusty multiverse
deb trusty-updates multiverse
deb-src trusty-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 trusty-backports main restricted universe multiverse
deb-src trusty-backports main restricted universe multiverse
deb trusty-security main restricted
deb-src trusty-security main restricted
deb trusty-security universe
deb-src trusty-security universe
deb trusty-security multiverse
deb-src trusty-security 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 trusty partner
# deb-src trusty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb trusty main
deb trusty-proposed multiverse main universe restricted
deb-src trusty main
8

1 Answer

Create /etc/apt/apt.conf to add proxy configuration for APT.

sudo nano /etc/apt/apt.conf

Add this line to your /etc/apt/apt.conf file

Acquire::http::Proxy "";

Save it with Ctrl+X, Y and retry:

sudo apt-get update
14