Page 1 of 1

Apt-get does not work

Posted: Wed Jul 20, 2016 11:47 pm
by mikemoy
I received my NanoPi NEO in today. After booting i did a apt-get update and I get the following errors.
I can connect to it, and ping google.com ok. Whats the problem ?

root@FriendlyARM:~#apt-get update

Err http://ports.ubuntu.com wily InRelease

Err http://ports.ubuntu.com wily-updates InRelease

Err http://ports.ubuntu.com wily-security InRelease

Err http://ports.ubuntu.com wily Release.gpg
Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]
Err http://ports.ubuntu.com wily-updates Release.gpg
Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]
Err http://ports.ubuntu.com wily-security Release.gpg
Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... /InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... /InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... /InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... elease.gpg Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... elease.gpg Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... elease.gpg Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@FriendlyARM:~# apt-get update
Err http://ports.ubuntu.com wily InRelease

Err http://ports.ubuntu.com wily-updates InRelease

Err http://ports.ubuntu.com wily-security InRelease

Err http://ports.ubuntu.com wily Release.gpg
Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]
Err http://ports.ubuntu.com wily-updates Release.gpg
Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]
Err http://ports.ubuntu.com wily-security Release.gpg
Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... /InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... /InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... /InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... elease.gpg Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... elease.gpg Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/di ... elease.gpg Cannot initiate the connection to ports.ubuntu.com:80 (2001:67c:1360:8001:1::2). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8001:1::2 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@FriendlyARM:~#

Re: Apt-get does not work

Posted: Thu Jul 21, 2016 9:34 am
by Waz
just did an apt-get, it seems to be working for me ... using the ubuntu core distro provided by FriendlyARM

Re: Apt-get does not work

Posted: Thu Jul 21, 2016 9:52 am
by FATechsupport
Could you try: ping ports.ubuntu.com

Re: Apt-get does not work

Posted: Thu Jul 21, 2016 11:08 am
by mikemoy
Tried it again this morning., Working now....

Re: Apt-get does not work

Posted: Thu Jul 21, 2016 10:38 pm
by davef
If you can't download a specific package do a

apt-get update

first. If you haven't done that for awhile you may find the package manager needs to be updated before it will download anything.

Re: Apt-get does not work

Posted: Thu Jul 21, 2016 11:56 pm
by mikemoy
davef wrote:
If you can't download a specific package do a

apt-get update

first. If you haven't done that for awhile you may find the package manager needs to be updated before it will download anything.


Yes, I always do that before I install anything.

Re: Apt-get does not work

Posted: Fri Aug 05, 2016 9:07 am
by jjm
If you also cannot update package , you can change your download server by editting "/etc/apt/sources.list". And try update package again.