Ask Your Question
0

No connection only in terminal

asked 2016-02-26 06:30:14 -0600

peter55555 gravatar image

I'm a beginner. I try to use Fedora 23 in VirtualBox. I can connect to the Internet by browser (firefox) but when I try to update something in Terminal, for example using command: sudo dnf update kernel* I have an error:

Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64' : Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64 [Connection timed out after 120003 milliseconds]

I can open the link using Fedora browser.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-02-26 08:27:35 -0600

aeperezt gravatar image

That means you box do not have access to the Internet, while you have network connectivity you need check your dns servers. first see if you can ping out site your network you can ping google dns server 8.8.8.8 if that works it means your dns is not resolving so you can set google dns as your server adding it at the file /etc/resolve.conf if you cannot ping outside your network you need to check you virtualbox network configuration to fix the network issue. Keep in mind that the change on the resolv.conf will work until you restart your box, so you probably need to solve the dns configuration on the virtualbox.

Good Luck.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-02-26 06:30:14 -0600

Seen: 103 times

Last updated: Feb 26 '16