View Single Post
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#52
In Ubuntu,

Code:
[root@Sailfish ubuntu]# chroot ./
# apt-get update
Err:1 http://ports.ubuntu.com/ubuntu-ports yakkety InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com/ubuntu-ports yakkety-updates InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:3 http://ports.ubuntu.com/ubuntu-ports yakkety-backports InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:4 http://ports.ubuntu.com/ubuntu-ports yakkety-security InRelease
Temporary failure resolving 'ports.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety/InRelease
Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-updates/I
nRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-backports
/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-security/
InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones use
d instead.
I choose one dns server in this website http://public-dns.info/

Code:
echo nameserver 103.25.7.1 > /etc/resolv.conf
After that i try apt-get update and same thing same error why?
How to resolve this problem?
Impossible to edit resolv.conf file cause i don't have gedit or nano installed.
 

The Following 4 Users Say Thank You to n950 For This Useful Post: