Power & Source of Big Ideas

Apt-get does not work

Moderators: chensy, FATechsupport

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:~#
just did an apt-get, it seems to be working for me ... using the ubuntu core distro provided by FriendlyARM
Could you try: ping ports.ubuntu.com
Tried it again this morning., Working now....
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.
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.
If you also cannot update package , you can change your download server by editting "/etc/apt/sources.list". And try update package again.

Who is online

In total there are 31 users online :: 0 registered, 0 hidden and 31 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 31 guests