Connecting to takes too long


Yesterday, I got one error with “apt-get” command in one of our server which has Ubuntu 12.04 OS. After the Y/N confirmation of apt-get installation command the server went to un-responded state for 4-6 minutes.
Error details are pasted below:

0% [Connecting to]

I figured out the problem. I had to disable IPv6 connectivity, as The Lord Of Time pointed out.
Running the following command in Terminal tells if IPv6 is enabled or not:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0 means its enabled 1 means its disabled

To disable IPv6 from within Terminal, enter the following and reboot:

echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf

After boot, re-run the first command(cat...

0 0

My guess is, that the problem are DNS requests timeouts. Try ... turning off the UseDNS option on the server you are connecting to.

The server log pretty much confirmed this (so well done for posting it :).

debug3: Trying to reverse map address # ^^^ spends a lot of time after this line

Looking at man sshd_config:

UseDNS Specifies whether sshd(8) should look up the remote host name and check that the resolved host name for the remote IP address maps back to the very same IP address. The default is “yes”.

Note that this is pretty much pointless. The check does not kill the connection. If it doesn't pass, it just logs a finger-wagging message:

Jul 9 05:43:00 brick sshd[18971]: Address maps to, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

which only serves to generate scary false positives for users with incompetent ISPs.

OK, so how can this cause a...

0 0

Installation gets stuck with the following error. I am able to ping though.

Here is the full log.


sudo apt-get install vim-gnome Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libbonoboui2-0 libbonoboui2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libruby1.9.1 libyaml-0-2 ruby ruby1.9.1 vim-gui-common vim-runtime Suggested packages: ri ruby-dev ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev ruby-switch cscope vim-doc ttf-dejavu The following NEW packages will be installed: libbonoboui2-0 libbonoboui2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libruby1.9.1 libyaml-0-2 ruby ruby1.9.1 vim-gnome vim-gui-common vim-runtime 0 upgraded, 13 newly installed, 0 to remove and 223 not upgraded. Need to get 9,264 kB of archives. After this operation, 43.7 MB of additional disk...
0 0

I am using amazon aws ec2 instance. I created an instance. I got a key-pair, and using that I logged in via ubuntu. Now, I am trying to run sudo apt-get update on the remote server. What I am getting is:

ubuntu@ip-172-31-30-46:~$ sudo apt-get update Err trusty InRelease Err trusty-updates InRelease Err trusty-backports InRelease Err trusty Release.gpg Unable to connect to [IP: 80] Err trusty-updates Release.gpg Unable to connect to [IP: 80] Err trusty-backports Release.gpg Unable to connect to [IP: 80] 0% [Connecting to (]...
0 0

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

0% [Connecting to (2001:67c:1360:8c01::19)] [Connecting to s

Ign trusty InRelease

Hit trusty Release.gpg

Hit trusty Release

Hit trusty/partner amd64 Packages


0 0

Hello @lorddanielon - Greetings!

Thanks for reaching out! I'd like to help

To assist you better I need to know the operating system on your computer & the printer model that you have. Please do let me know the same.

Alternatively, try the steps mentioned below and check:

· First, unplug the USB cable from the printer if present.

· Go to Control panel – Programs and feature – Select all the HP LaserJet printer entries and uninstall them.

· Now go to Control panel – Devices and printer – Select all the printer entries and remove the device.

· Press the "windows key" + "r" to get the "Run" window open - Type "printui.exe /s" and press enter.

· Under print server properties, go to drivers - remove any entry there as well.

· Again, go to the Run window, type – “c:/programdata” – Go to Hewlett Packard folder, remove any printer related folders & files.

· Restart your computer.

· ...

0 0

I’m working through the “Getting Started with Docker” tutorial. I’m working within a corporate network. I followed the troubleshooting hints and edited /var/lib/boot2docker/profile in my default docker machine to configure it for the corporate network proxy. That worked and allowed general access beyond the corporate network.
However, when I reached the “Build your own image” step in the tutorial I the apt-get of is failing during the build saying that it cannot connect. I see that this is an IPv6 address and perhaps that is the issue. I’ve read through the docs I can find on IPv6, but have not been able to figure this out. This seems like it may be a general issue, but I could not find a solution in the forums. If I’ve missed it, please point me in the right direction.

Expected behavior

The build should succeed and apt-get should be able to connect with

Actual behavior

The build fails because apt-get cannot...

0 0

Just got the Unifi UAP-AC-HD and am having trouble with the controller starting.

I downloaded the latest Unifi controller software (5.5.20).

I am running this on a mac...OS Sierra (10.12.6)

As per a lot of posts here the controller will not startup. The UI shows this:

Initializing UniFi Controller ...
Starting UniFi Controller ...
Server taking too long to start...
Start-up failed.

The server.log shows this:

[2017-09-16 15:22:57,175] INFO launcher - Initializing UniFi Controller ...

[2017-09-16 15:22:57,365] INFO launcher - Starting UniFi Controller ...

[2017-09-16 15:22:58,399] INFO system - ======================================================================

[2017-09-16 15:22:58,400] INFO system - UniFi 5.5.20 (build atag_5.5.20_9565 - release) is started

[2017-09-16 15:22:58,400] INFO system - ======================================================================


0 0

When I do upgrade it gets stuck here:

user@plato:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bind9-host coreutils cpio curl dnsutils libbind9-90 libc-bin libc-dev-bin libc6 libc6-dev libcgmanager0 libcurl3 libcurl3-gnutls libdns100 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libisc95 libisccc90 libisccfg90 libjasper1 liblwres90 libplymouth2 libsepol1 libssl-dev libssl-doc libssl1.0.0 linux-libc-dev mime-support multiarch-support ntp ntpdate openssl plymouth plymouth-theme-ubuntu-text python3-distupgrade ubuntu-release-upgrader-core unzip 39 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 16.0 MB of archives. After this operation, 12.3 kB of additional disk space will be used. Do you want to continue? [Y/n] y 0% [Connecting to (2001:67c:1562::15)] ?

When I do update it gets...

0 0

While connecting to remote server, the connection phase (after verifying the password, before displaying window with contents of remote folder) seems to take too long (more than an hour sometimes). When connecting to the server with putty, I get connected in cca 2 seconds (using the same hostname, port, protocol, login, password). What more, I'm unable to kill WinSCP process in Process Explorer. There is no visible window for this process (getting this info also via ProcExp). This issue is pretty recent, but I don't remember upgrading WinSCP at the time of change (also, I haven't changed any connection settings, which is proved by being able to connect with putty).

- WinSCP version:
- OS: Windows XP, SP3
- I use GUI (Commander)
- steps: I press "Login" button, small window appears (text running) for a short period of time, then disappears and nothing happens for a long time. Then the commander-like window appears and I can...

0 0


This article is outdated. It needs a thorough rewrite (or maybe it is best to delete it and write a new one).

This page tries to collect and describe possible upgrade problems and solutions. Network issues, unreachable hosts, local conditions and other possible problems preventing the Ubuntu distribution upgrade procedure will be addressed. Please help expanding this documentation if you find more information, solutions or workarounds for upgrading Ubuntu.

This page will not deal with application bugs. If the issue is related to bugs in the package manager, upgrade manager or other software, please Report the Problem.

Be aware that some of the informations here are quite technical. If you're unsure about something, please don't hesitate to ask for help on the forums instead of accidentally breaking your Ubuntu installation!

Current dist not found in meta-release file

Affected versions (reported):

0 0

When I was trying to install "git" in bash, it always had a problem connecting to ubuntu's servers. Yes I have internet, Yes I can browse using a browser. I can pull up webpages I've never been to. I can ping an ip address etc etc etc. I also went directly to the file it was attempting to download and was able to download the deb it couldn't find. I even did an apt-get update. Still can't connect to ubuntu servers. It has to do with the bash itself. This is very upsetting because I've seen videos with other people being able to install git and other repositories just fine. If anyone had this problem or can help me fix this that be great!

I included this also

root@localhost:/mnt/c/Users/Matthew# apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man liberror-perl
Suggested packages:

0 0

Hi there,

it seems like the configuration of your wireless adapter in your computer does not match the configuration on your wireless access point (router, hot spot, etc...).

Try the following: (instructions for Windows 7. It may vary in other Windows OS but basically is very similar...)

1. Right-click on the network icon on the task bar (right side, close to time/date) and select Open network and sharing center

2. On the Control Panel Home (look on the left side panel), select Change adapter settings

4. Right-click on the appropriate wireless adapter and select Properties

5. Click Configure...

6. Select the Advanced tab (2nd tab to the left)

Now you have access to the advanced properties that control the way your computer communicates with the router. To make it simple: they must talk the same language. There are many potential problems here but you are looking for something specific: Channels. Locate that information in the...

0 0
*Warning, rage ahead*
I'm going to breeze through it this time. Ask me questions if I don't give enough info.
So I first installed the stand alone .jar and .bat server files and it wouldn't let me join straight away, I got several different weird errors and then I got in, same with my friend. Then I wanted to install some plug-ins and shit went down. Every time I tried joining I would get a different weird error message, and so I redownloaded the software/tried without plug-ins and the problem persisted. I don't get different errors anymore, Just the same one it seems. I don't have the server.logs from the deleted/uninstalled servers. I don't know if it's related but since trying to use Bukkit I also have been having issues signing into minecraft, maybe...
0 0


docker Unable to connect to [IP: 80]

I'm having issues building my Dockerfile (on OS X), getting the above error for multiple libraries. I've tried adding google dns servers and the below sources.list workaround but nothing that I've found online solves my issue. : sources.list "fix" RUN echo "deb $(lsb_release -sc) main universe Trusty-updates" >> /etc/apt/sources.list : portion of dockerfile FROM ubuntu:14.10 RUN echo exit 101 > /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d RUN apt-get install -y --fix-missing software-properties-common RUN apt-get update :output of build Step 15 : RUN apt-get install -y --fix-missing software-properties-common ---> Running in 6067adba2748 Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: ca-certificates gir1.2-glib-2.0 iso-codes krb5-locales...
0 0

UPDATE : Just wanted to say that I've finally managed to fix my problem - It was the router firmware ! Since I've updated it, the problem didn't come back, and my wireless connectivity is finally established right away when I turn on my laptop. I've thought to post the solution here so it can maybe help someone with the same problem. Here's a link on how to do it in case someone doesn't know (hope links are allowed here):

I've also switched to Windows firewall , idk if it also helped but it's kinda easier for me now

UPDATE NO 2: ok i know it's been a long time since I've posted this and i still have the same laptop, so here is another update. The solution mentioned in my previous post helped me the most, but unfortunately not on long term. However, I was lucky to find out there is a simple trick almost everyone with wifi connection problems can use, and that is connecting with your smartphone. To do so, you will...

0 0
Jul 1, 2010

It took almost one minute.How do I reduce the time?Also how do I undo the changes for update-rc.d networking defaults

CentOS 5 :: X/Gnome Takes Long Time To Load And Sudo Takes Long Time To Execute OpenSUSE Network :: Can't Connect To Internet - Takes So Long To Boot Red Hat / Fedora :: 15 Takes A Long Time To Connect With LAN Network (Samba)? OpenSUSE Install :: Shutdown Takes Very Long Time - 2 Min - Possibly Due To Network ? Debian Configuration :: Squeeze Hanging At Configuring Network Interfaces Debian Configuration :: Wheezy32 Boot Hangs - Configuring Network Interfaces OpenSUSE Network :: IPv6 Getting A Global Address Takes A Long Time - Possibly Only After Starting A KDE Session Ubuntu Networking :: /etc/network/interfaces Not Booting On Startup? Ubuntu Networking :: Startup Networking Automatically Using /etc/network/interfaces Ubuntu :: Wake Up From Hibernate Takes Too Long? Ubuntu :: Gnome Menu Bar Takes Long To Appear? Ubuntu :: 10.04 Takes...
0 0

Fix The connection has timed out|The server is taking too long to respond in mozilla firefox-the connection has timed out.

I get the following error message in mozilla firefox:

The connection has timed out

The server at is taking too long to respond. The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer’s network connection. If your computer or network is protected by a firewall or proxy, make sure that Nightly is permitted to access the Web.

This error solution is common for windows 7,windows 8,windows 8.1,windows 10 also and this error is occurring while try to access the following websites like that google,facebook,youtube,twitter.


1.Goto settings-advanced. "Network" tab and then click "settings"

3.Now tick automatically mode.

4.Finally the error is...

0 0
0 0

I have a Ubuntu 11.10 server that I just installed fresh. Now if I try to do anything with apt-get, it tries to connect to .. It stays at [Connecting to (2001:67c:1360:8c01::1a)] phase for like 2 minutes, after which it actually starts to communicate and download stuff …

Eventually it always connects, but in waits at the [Connecting to (2001:67c:1360:8c01::1a)] phase everytime for like 2 minutes !

I didn’t have this problem previously on Ubuntu 11.10, right after reinstalling the OS ..

Any ideas on what the problem might be ?

I solved this on 12.10 by editing /etc/gai.conf and uncommenting the line:

This lets you keep IPv6 enabled, but sets the order of precedence to prefer IPv4 over IPv6.

reference :...

0 0

I had a server recently start having serious problems with connections of all types, at least when IPv6 was involved. I use IPv6 at home and ssh access took a significant amount of time to make a connection. Then when I tried to do apt-get update from the server it would fail with a message like this:

$ sudo apt-get update [sudo] password for matt: 0% [Connecting to (2001:67c:1360:8c01::1a)] [Connecting to (2001:67c:1360:8c01::1...

It would sit there and take forever without making any progress. Sadly, the Ubuntu docs aren’t much help unless you’re using Ubuntu 8.04 or older (I refuse to link to them which will only add to their credibility).

A workaround is to disable IPv6, but really you should take the time to fix the problem, since it is the way of the future. In my case I’m sure it’s routing related, and hopefully my server provider can resolve it. Until then, I do this:

Check if IPv6 is enabled by doing ifconfig and...

0 0

Bumping to ask related question --

I've been trying to back up my DVDs to small-size MKVs, but I think the encoding speed is getting a bit slower, probably because I'm using settings like Exhaustive Motion Esitmation with a 64px range (I used to use Uneven Multi-Hexagon) and 9/14 Reference/B-Frames for the anime...

Anyway, what I'd like to know is, would it be a good idea to buy more RAM to speed up encoding?

OS: Kubuntu 9.04 Jaunty
CPU: Intel Core Duo E8400
Swap Memory: 4GB
Video Card:GeForce 9800GT PCI-E 512MB
SysInfo output is attached of you want more detail.

Another related question: Will I need to change my swap memory from 4GB to 8GB? If so, is there a way to do resize the partitions without losing data?

Edit: I just noticed the guide for resizing partitions without losing data on the GParted site...

0 0

Thanks for the suggestion about wireshark ! I remember putting data analyzers on the wires many moons ago - things have moved on haven't they.. Anyway I did a capture of the packets for both the BIG file that "hangs' and the small file that doesn't. Not sure what to look for though. Ideas ?

Separately, more progress - turns out that the big file download WILL terminate, 15 minutes later, though.. Basically, it gets the file.. hangs for 15 minutes and then does some sort of retry and then terminates.. Here's the output. Note that delay between 11:24 when to all intents and purposes its got the file and it just hangs until 11:39 when it does a cursory retry and terminates to the $ prompt.

~$ wget -O myfile.tmp
--2011-03-07 11:23:31--
=> `myfile.tmp'
Connecting to...

0 0