apt-get update and gpg key downloading inside VM taking an obscenely long time
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
apt-get update and gpg key downloading inside VM taking an obscenely long time
I wrote a very simple script to update the system, download the deb-multimedia key and tor key, and then download a few gpg keys for an old repo (the repo is no longer around, but the keys were just meant to test this script's ability to download and add them).
Script is here
Please ignore the last bits regarding key 886DDD89, I found, only after starting this, that key no longer existed on the server.
When run on my native system, it completes in a reasonable time with no problem. You can see the results from my native system here.
And the vm results here.
Both systems are running debian 7.5 wheezy. The networking on the vm in question is setup as a bridged adapter. Any help would be appreciated, thanks!
About 750Mb I believe. The issue isn't the vm running slowly, it's the downloading that is slow. I can run plenty of other things without any hiccup in performance, it's just download speeds in the vm are so low that it results in "server timeout"errors.
The reason I don't believe it is due to virtual memory level is because the VM runs fine otherwise. Any other command, tool, or whathaveyou runs as expected. It's just downloading with wget or apt-get update takes a long while, not in the sense that it takes ages to complete, but that the connection takes ages to go through. It doesn't seem like it'd be a memory issue.
I have run debian on physical systems with 256MB ram, and a 10/100 network card that was able to download no problem. This is running with 750MB and the equivalent of 10/100/1000 network card, so it shouldn't be experiencing these problems.
Tried that wget test with the 100MB file, on both the vm and the physical computer (host?), and got a consistent 2.4Mb/s. Then just to add a comparison I ran apt-get update on the vm (which has only default sources setup), then I decided to do the same on the host computer (which has a lot of addition repos with the default in the sources). Results:
debian vm results from apt-get update
Code:
Fetched 125 kB in 2min 6s (981 B/s)
debian laptop results from apt-get update
Code:
Fetched 301 kB in 26s (11.2 kB/s)
They both accessed the debian servers at ftp.debian.org. So... I'm not sure where this leaves me.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Thanks for that connection speed info.
Can't help you on vertual environments and connections, hope you get it going.
You have helped me. Folks tell me I have a slow connection. Never seems that way to me. We ran on dial up with 4.6 kB/sec on a great day for a long time. Moved and have dsl now and it may be slow but it is blazing in comparison. Is compared to yours too. 300kB/sec +/- 30kB.
I could live with your 11. That less than 1 truly does suck.
Can't help you on vertual environments and connections, hope you get it going.
You have helped me. Folks tell me I have a slow connection. Never seems that way to me. We ran on dial up with 4.6 kB/sec on a great day for a long time. Moved and have dsl now and it may be slow but it is blazing in comparison. Is compared to yours too. 300kB/sec +/- 30kB.
I could live with your 11. That less than 1 truly does suck.
My average download speed for day to day things is around 9-11Mb/s. I'm not sure why that shows the way it is, perhaps because it's only a few hundred kB so it didn't have time to get up to full speed? I was reading an article about it somewhere else today how smaller packages will download at a slower speed compared to larger ones, but that doesn't mean a small package will take longer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.